From 6dd27e6d3450680d955bc5c296d6a3a3353cdf2c Mon Sep 17 00:00:00 2001 From: Christian Flach Date: Sun, 20 Jan 2019 15:47:26 +0100 Subject: [PATCH] Export BatchEnhancer to allow custom action types --- index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2d5b587..0794fa1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,9 @@ declare module "@manaflair/redux-batch" { - import { AnyAction, StoreEnhancer } from "redux"; + import { Action, AnyAction, StoreEnhancer } from "redux"; - export const reduxBatch: StoreEnhancer<{ - dispatch: (actions: AnyAction[]) => AnyAction[], + export type BatchEnhancer = StoreEnhancer<{ + dispatch: (actions: A[]) => A[]; }>; + + export const reduxBatch: BatchEnhancer; }