From 8d49cf6705f6debd70ea8389408b3a2181cceff7 Mon Sep 17 00:00:00 2001 From: yhpnorra Date: Tue, 12 Dec 2017 11:18:57 +0800 Subject: [PATCH] fix the code review --- types/mirrorx/index.d.ts | 2 +- types/mirrorx/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/mirrorx/index.d.ts b/types/mirrorx/index.d.ts index 1ffcd20925..9cea8531dc 100644 --- a/types/mirrorx/index.d.ts +++ b/types/mirrorx/index.d.ts @@ -124,7 +124,7 @@ declare namespace mirror { interface defaultOptions { initialState?:{}, historyMode?:string, - middlewares:[any], + middlewares:any[], reducers:{}, addEffect(name:string,handler:()=>any):any } diff --git a/types/mirrorx/tsconfig.json b/types/mirrorx/tsconfig.json index c6dab55976..561f5cdab4 100644 --- a/types/mirrorx/tsconfig.json +++ b/types/mirrorx/tsconfig.json @@ -11,7 +11,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "jsx": "react",