From 793921feca85da2f605603e95d29d33c40ea474e Mon Sep 17 00:00:00 2001 From: cgvedant <40763859+cgvedant@users.noreply.github.com> Date: Wed, 15 Aug 2018 15:33:16 +0530 Subject: [PATCH] Make (Normalized)RPCReducersType an exact object This shows errors where one spells start, success, or failure incorrectly. --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 60548231..42bdb7bc 100644 --- a/src/index.js +++ b/src/index.js @@ -21,17 +21,17 @@ type RPCReactorsType = { failure: Reactor, }; -type RPCReducersType = { +type RPCReducersType = {| start?: Reducer, success?: Reducer, failure?: Reducer, -}; +|}; -type NormalizedRPCReducersType = { +type NormalizedRPCReducersType = {| start: Reducer, success: Reducer, failure: Reducer, -}; +|}; function camelUpper(key: string): string { return key.replace(/([A-Z])/g, '_$1').toUpperCase();