Add optionality to 'opts' in Choo constructor (#584)
This commit is contained in:
committed by
Yoshua Wuyts
parent
ae6de94896
commit
b317abc3f9
Vendored
+1
-1
@@ -5,7 +5,7 @@ import * as EventEmitter from 'events'
|
||||
export = Choo
|
||||
|
||||
declare class Choo {
|
||||
constructor (opts: Choo.IChoo)
|
||||
constructor (opts?: Choo.IChoo)
|
||||
use (callback: (state: Choo.IState, emitter: EventEmitter) => void): void
|
||||
route (routeName: string, handler: (state: Choo.IState, emit: (name: string, ...args: any[]) => void) => void): void
|
||||
mount (selector: string): void
|
||||
|
||||
Reference in New Issue
Block a user