From c2d10f35ef2076c45465087635b00b90cf8055a8 Mon Sep 17 00:00:00 2001 From: yk Date: Tue, 6 Nov 2018 22:43:14 +0100 Subject: [PATCH] Added missing dispatch() method to the component type definition --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 0dde6118..590da2b5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,6 +10,7 @@ export declare class Component { state: T; readonly defaultState: T; setState(state: Partial | ((this: this, state: T) => Partial), render?: boolean): this; + dispatch(type: string, detail?: any): boolean; } export declare function bind(element: T): BoundTemplateFunction;