From 0d3925b9392b31a25ddbff79f9c16cbca7884387 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Sat, 6 Apr 2024 21:44:26 -0700 Subject: [PATCH] FIX types --- src/index.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;