Add optionality to 'opts' in Choo constructor (#584)

This commit is contained in:
Seiya IZUMI
2017-10-18 13:44:59 +02:00
committed by Yoshua Wuyts
parent ae6de94896
commit b317abc3f9
Vendored
+1 -1
View File
@@ -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