diff --git a/package.json b/package.json index 470f33b..71fefdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wayofjs", - "version": "2.0.3", + "version": "2.0.4", "description": "A library for managing models and views", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/core/views/View.ts b/src/core/views/View.ts index 4988b12..b91df55 100644 --- a/src/core/views/View.ts +++ b/src/core/views/View.ts @@ -28,7 +28,7 @@ export abstract class View, K extends HasId> { this.bindModel(); } - abstract template(): string | HTMLElement; + abstract template(): string | HTMLElement | HTMLElement[]; protected html = html;