Skip to content

Commit

Permalink
typings: add app to app.use cb (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
seangenabe authored and goto-bus-stop committed Jun 11, 2018
1 parent 1d9b544 commit 61ff297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61ff297

Please sign in to comment.