From 129d87ca0ee63af83efba593dce75911cd85157f Mon Sep 17 00:00:00 2001 From: Alexandro Date: Mon, 21 Nov 2016 03:40:02 +0700 Subject: [PATCH] make params optional --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index ac84236..ad15255 100644 --- a/index.ts +++ b/index.ts @@ -4,7 +4,7 @@ import check from "./check"; export interface IParams { timeout?: number; } -const upself = (params: IParams) => { +const upself = (params?: IParams) => { params = params || {}; params.timeout = params.timeout || 15000; const packageJSONPath = path.join(path.resolve(