From 61ff2978c36db05c576d3fae74be76d8dec829ee Mon Sep 17 00:00:00 2001 From: Sean Genabe Date: Mon, 11 Jun 2018 16:51:56 +0800 Subject: [PATCH] typings: add app to app.use cb (#665) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0563609b..27280d32 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ export = Choo declare class Choo { constructor (opts?: Choo.IChoo) - use (callback: (state: Choo.IState, emitter: EventEmitter) => void): void + use (callback: (state: Choo.IState, emitter: EventEmitter, app: this) => void): void route (routeName: string, handler: (state: Choo.IState, emit: (name: string, ...args: any[]) => void) => void): void mount (selector: string): void start (): HTMLElement