From e5b3078d7b8b5cb9cb83e3a355b1426ed0ca22f4 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 17 Apr 2017 09:36:40 -0700 Subject: [PATCH] redux-batched-actions: Provides its own types (#15650) --- notNeededPackages.json | 6 +++++ types/redux-batched-actions/index.d.ts | 20 ----------------- types/redux-batched-actions/package.json | 5 ----- .../redux-batched-actions-tests.ts | 14 ------------ types/redux-batched-actions/tsconfig.json | 22 ------------------- types/redux-batched-actions/tslint.json | 1 - 6 files changed, 6 insertions(+), 62 deletions(-) delete mode 100644 types/redux-batched-actions/index.d.ts delete mode 100644 types/redux-batched-actions/package.json delete mode 100644 types/redux-batched-actions/redux-batched-actions-tests.ts delete mode 100644 types/redux-batched-actions/tsconfig.json delete mode 100644 types/redux-batched-actions/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 44dd010b0e..560780a31a 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -396,6 +396,12 @@ "sourceRepoURL": "https://github.com/reactjs/redux", "asOfVersion": "3.6.0" }, + { + "libraryName": "redux-batched-actions", + "typingsPackageName": "redux-batched-actions", + "sourceRepoURL": "https://github.com/tshelburne/redux-batched-actions", + "asOfVersion": "0.1.5" + }, { "libraryName": "redux-persist", "typingsPackageName": "redux-persist", diff --git a/types/redux-batched-actions/index.d.ts b/types/redux-batched-actions/index.d.ts deleted file mode 100644 index ad90e7d9fd..0000000000 --- a/types/redux-batched-actions/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Type definitions for redux-batched-actions 0.1 -// Project: https://github.com/tshelburne/redux-batched-actions -// Definitions by: Chad Burggraf -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -import { Action, Reducer } from 'redux'; - -export as namespace ReduxBatchedActions; - -/** - * Batching action creator that creates a higher-order - * action from an array of actions. - */ -export function batchActions(actions: A[]): Action; - -/** - * Creates a higher-order reducer that enables batching - * actions for the given reducer. - */ -export function enableBatching(reducer: Reducer): Reducer; diff --git a/types/redux-batched-actions/package.json b/types/redux-batched-actions/package.json deleted file mode 100644 index 6cfd8dc05c..0000000000 --- a/types/redux-batched-actions/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "dependencies": { - "redux": "^3.6.0" - } -} \ No newline at end of file diff --git a/types/redux-batched-actions/redux-batched-actions-tests.ts b/types/redux-batched-actions/redux-batched-actions-tests.ts deleted file mode 100644 index 51e6966010..0000000000 --- a/types/redux-batched-actions/redux-batched-actions-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Reducer, createStore } from 'redux'; -import { Action, createAction } from 'redux-actions'; -import { enableBatching, batchActions } from 'redux-batched-actions'; - -const doThing = createAction('DO_THING'); -const doOther = createAction('DO_OTHER'); - -const reducer = (state: any = {}, action: Action): any => { - return state; -}; - -const store = createStore(enableBatching(reducer), {}); - -store.dispatch(batchActions([doThing(), doOther()])); diff --git a/types/redux-batched-actions/tsconfig.json b/types/redux-batched-actions/tsconfig.json deleted file mode 100644 index 195278b1ea..0000000000 --- a/types/redux-batched-actions/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "redux-batched-actions-tests.ts" - ] -} \ No newline at end of file diff --git a/types/redux-batched-actions/tslint.json b/types/redux-batched-actions/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/redux-batched-actions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }