From 14edb0ff59d1a4572c49822fe0b43ab759f346f1 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Fri, 8 Mar 2019 20:45:46 +0000 Subject: [PATCH 1/4] Fix `DeepPartial` type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 2059493512..631925a213 100644 --- a/index.d.ts +++ b/index.d.ts @@ -211,7 +211,7 @@ export interface Store { replaceReducer(nextReducer: Reducer): void } -export type DeepPartial = { [K in keyof T]?: DeepPartial } +export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P] }; /** * A store creator is a function that creates a Redux store. Like with From 7e00f137d8aced3f578000703c75c3e232531b18 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Fri, 8 Mar 2019 20:54:39 +0000 Subject: [PATCH 2/4] Format --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 631925a213..b39c4047f4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -211,7 +211,7 @@ export interface Store { replaceReducer(nextReducer: Reducer): void } -export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P] }; +export type DeepPartial = { [K in keyof T]?: T[K] extends object ? DeepPartial : T[K] } /** * A store creator is a function that creates a Redux store. Like with From af7223b4b7171724d90751822c063987c0c0f3e1 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Fri, 8 Mar 2019 21:01:59 +0000 Subject: [PATCH 3/4] Update index.d.ts --- index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b39c4047f4..45463b7e76 100644 --- a/index.d.ts +++ b/index.d.ts @@ -211,7 +211,9 @@ export interface Store { replaceReducer(nextReducer: Reducer): void } -export type DeepPartial = { [K in keyof T]?: T[K] extends object ? DeepPartial : T[K] } +export type DeepPartial = { + [K in keyof T]?: T[K] extends object ? DeepPartial : T[K] +} /** * A store creator is a function that creates a Redux store. Like with From 622dec729708e61c08fc20d929370e5f64b66674 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Tue, 19 Mar 2019 15:52:37 -0400 Subject: [PATCH 4/4] Limit node version for now. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8f5e52c523..240018726d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "node" + - "11.10.1" install: - npm i -g npm@5.8.0 - npm ci