From 158bd29b9b0ee4ffa7ca783e78eab3999ace72a1 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 30 Aug 2016 13:40:26 +0300 Subject: [PATCH] default value for options --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index ba8217a1..06eeef8a 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -16,7 +16,7 @@ if (IS_PRODUCTION) { export const version = LIB_VERSION; var moduleRef; -export function init(specUrl:string, options?) { +export function init(specUrl:string, options:any = {}) { if (moduleRef) { destroy(); }