typings: add app to app.use cb (#665)
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user