diff --git a/index.d.ts b/index.d.ts index 590da2b..22946c8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -8,7 +8,7 @@ export declare class Component { html: WiredTemplateFunction; svg: WiredTemplateFunction; state: T; - readonly defaultState: T; + get defaultState(): T; setState(state: Partial | ((this: this, state: T) => Partial), render?: boolean): this; dispatch(type: string, detail?: any): boolean; } @@ -32,7 +32,7 @@ export declare const hyper: { // hyper('html')`HTML` (type: 'html' | 'svg'): WiredTemplateFunction; - + // hyper(element)`HTML` (element: T): BoundTemplateFunction;