From b317abc3f9433ce386769d24359fa5e6371e13ed Mon Sep 17 00:00:00 2001 From: Seiya IZUMI Date: Wed, 18 Oct 2017 20:44:59 +0900 Subject: [PATCH] Add optionality to 'opts' in Choo constructor (#584) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 422d3ea..0563609 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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