Skip to content

Commit

Permalink
FIX types
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Apr 7, 2024
1 parent 7e9aee1 commit 0d3925b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
* } TonicComponent
*/

interface ITonicComponent extends Tonic {
}
interface ITonicComponent extends Tonic {}

type TonicComponent<T = {}> = ITonicComponent | ((T)=>TonicTemplate|Element)
type TonicComponent = (()=>TonicTemplate|HTMLElement)|typeof Tonic<T>

/**
* Class Tonic
Expand Down Expand Up @@ -50,7 +49,7 @@ export class Tonic<T = {}> 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;
Expand Down

0 comments on commit 0d3925b

Please sign in to comment.