diff --git a/src/index.d.ts b/src/index.d.ts index 04c7e63..0fb20b5 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -6,10 +6,9 @@ * } TonicComponent */ -interface ITonicComponent extends Tonic { -} +interface ITonicComponent extends Tonic {} -type TonicComponent = ITonicComponent | ((T)=>TonicTemplate|Element) +type TonicComponent = (()=>TonicTemplate|HTMLElement)|typeof Tonic /** * Class Tonic @@ -50,7 +49,7 @@ export class Tonic extends HTMLElement { * @param {string} [htmlName] Name of the element, default to the class name * @returns {void} */ - static add(c: typeof TonicComponent, htmlName?: string): void; + static add(c: TonicComponent, htmlName?: string): void; static registerStyles(stylesheetFn: any): void; static escape(s: any): any; static unsafeRawString(s: any, templateStrings: any): TonicTemplate;