typings: add app to app.use cb (#665)

This commit is contained in:
Sean Genabe
2018-06-11 10:51:56 +02:00
committed by Renée Kooi
parent 1d9b544626
commit 61ff2978c3
Vendored
+1 -1
View File
@@ -6,7 +6,7 @@ export = Choo
declare class Choo { declare class Choo {
constructor (opts?: Choo.IChoo) 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 route (routeName: string, handler: (state: Choo.IState, emit: (name: string, ...args: any[]) => void) => void): void
mount (selector: string): void mount (selector: string): void
start (): HTMLElement start (): HTMLElement