From 0101d412e59294895480874fc8e6da34f8d88937 Mon Sep 17 00:00:00 2001 From: Roychoi Date: Fri, 22 Sep 2017 15:11:49 +0900 Subject: [PATCH 1/3] add index.d.ts --- src/index.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/index.d.ts diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..50f5be0 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,21 @@ +declare module 'redux-action-batcher' { + import { Action, Dispatch, Middleware, Reducer } from 'redux'; + export const enableBatching: (reducer : Reducer) => (state: S, action: any) => S; + export const batchingMiddleware: Middleware; + export function batchActions + (actions: A): Action; + export function batchActions + (action1: A, action2: B): Action; + export function batchActions + (action1: A, action2: B, action3: C): Action; + export function batchActions + (action1: A, action2: B, action3: C, action4: D): Action; + export function batchActions + (action1: A, action2: B, action3: C, action4: D, action5: E): Action; + export function batchActions + (action1: A, action2: B, action3: C, action4: D, action5: E, action6: F): Action; + export function batchActions + (action1: A, action2: B, action3: C, action4: D, action5: E, action6: F, action7: G): Action; + export function batchActions + (action1: A, action2: B, action3: C, action4: D, action5: E, action6: F, action7: G, action8: H): Action; + } From f1d49116489daf39d02085101071fd20b37f9217 Mon Sep 17 00:00:00 2001 From: Roychoi Date: Fri, 22 Sep 2017 15:14:00 +0900 Subject: [PATCH 2/3] update types --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 16c3170..40ee064 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "actions", "middleware" ], + "types": "./src/index.d.ts" "author": "Ostap Maliuvanchuk", "license": "MIT", "devDependencies": { From c2caf188f03f8e8d745eca7e267903c3c0e4f090 Mon Sep 17 00:00:00 2001 From: Roychoi Date: Fri, 22 Sep 2017 15:15:00 +0900 Subject: [PATCH 3/3] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40ee064..67dae12 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "actions", "middleware" ], - "types": "./src/index.d.ts" + "types": "./src/index.d.ts", "author": "Ostap Maliuvanchuk", "license": "MIT", "devDependencies": {