From 3474fa2c8e6ce91c28460775eddda93ef1aef5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 30 May 2020 23:11:48 +0800 Subject: [PATCH] Work around for reducers typing problem (#2) --- examples/counter/actions.ts | 2 ++ examples/counter/types.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/counter/actions.ts b/examples/counter/actions.ts index d050100..ce298e1 100644 --- a/examples/counter/actions.ts +++ b/examples/counter/actions.ts @@ -23,7 +23,9 @@ import * as types from './types' const prepareTimes = (times = 1) => ({ times }) const tap = createAction(types.TAP, prepareTimes)() +const noop = createAction(types.NOOP)() export { + noop, tap, } diff --git a/examples/counter/types.ts b/examples/counter/types.ts index 6c56f93..e48e651 100644 --- a/examples/counter/types.ts +++ b/examples/counter/types.ts @@ -17,7 +17,9 @@ * */ const TAP = 'ducks/examples/counter/TAP' +const NOOP = 'ducks/examples/counter/NOOP' export { + NOOP, TAP, }