@types/redux-actions
Advanced tools
Comparing version 1.2.8 to 2.2.0
@@ -1,4 +0,6 @@ | ||
// Type definitions for redux-actions 1.2 | ||
// Type definitions for redux-actions 2.2 | ||
// Project: https://github.com/acdlite/redux-actions | ||
// Definitions by: Jack Hsu <https://github.com/jaysoo>, Alex Gorbatchev <https://github.com/alexgorbatchev> | ||
// Definitions by: Jack Hsu <https://github.com/jaysoo>, | ||
// Alex Gorbatchev <https://github.com/alexgorbatchev>, | ||
// Alec Hill <https://github.com/alechill> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -28,3 +30,3 @@ | ||
export interface ReducerMapMeta<State, Payload, Meta> { | ||
[actionType: string]: Reducer<State, Payload> | ReducerNextThrow<State, Payload>; | ||
[actionType: string]: ReducerMeta<State, Payload, Meta> | ReducerNextThrowMeta<State, Payload, Meta>; | ||
} | ||
@@ -97,6 +99,30 @@ | ||
actionType: string, | ||
payloadCreator: (...args: any[]) => Payload, | ||
metaCreator: (...args: any[]) => Meta | ||
): (...args: any[]) => ActionMeta<Payload, Meta>; | ||
payloadCreator: ActionFunctionAny<Payload>, | ||
metaCreator: ActionFunctionAny<Meta> | ||
): ActionFunctionAny<ActionMeta<Payload, Meta>>; | ||
export function createAction<Payload, Meta, Arg1>( | ||
actionType: string, | ||
payloadCreator: ActionFunction1<Arg1, Payload>, | ||
metaCreator: ActionFunction1<Arg1, Meta> | ||
): ActionFunction1<Arg1, ActionMeta<Payload, Meta>>; | ||
export function createAction<Payload, Meta, Arg1, Arg2>( | ||
actionType: string, | ||
payloadCreator: ActionFunction2<Arg1, Arg2, Payload>, | ||
metaCreator: ActionFunction2<Arg1, Arg2, Meta> | ||
): ActionFunction2<Arg1, Arg2, ActionMeta<Payload, Meta>>; | ||
export function createAction<Payload, Meta, Arg1, Arg2, Arg3>( | ||
actionType: string, | ||
payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>, | ||
metaCreator: ActionFunction3<Arg1, Arg2, Arg3, Meta> | ||
): ActionFunction3<Arg1, Arg2, Arg3, ActionMeta<Payload, Meta>>; | ||
export function createAction<Payload, Meta, Arg1, Arg2, Arg3, Arg4>( | ||
actionType: string, | ||
payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>, | ||
metaCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Meta> | ||
): ActionFunction4<Arg1, Arg2, Arg3, Arg4, ActionMeta<Payload, Meta>>; | ||
export function handleAction<State, Payload>( | ||
@@ -124,2 +150,7 @@ actionType: string | ActionFunctions<Payload>, | ||
export function handleActions<State, Payload, Meta>( | ||
reducerMap: ReducerMapMeta<State, Payload, Meta>, | ||
initialState: State | ||
): ReducerMeta<State, Payload, Meta>; | ||
export function combineActions(...actionTypes: Array<ActionFunctions<any> | string>): string; | ||
@@ -126,0 +157,0 @@ |
{ | ||
"name": "@types/redux-actions", | ||
"version": "1.2.8", | ||
"version": "2.2.0", | ||
"description": "TypeScript definitions for redux-actions", | ||
@@ -9,7 +9,14 @@ "license": "MIT", | ||
"name": "Jack Hsu", | ||
"url": "https://github.com/jaysoo" | ||
"url": "https://github.com/jaysoo", | ||
"githubUsername": "jaysoo" | ||
}, | ||
{ | ||
"name": "Alex Gorbatchev", | ||
"url": "https://github.com/alexgorbatchev" | ||
"url": "https://github.com/alexgorbatchev", | ||
"githubUsername": "alexgorbatchev" | ||
}, | ||
{ | ||
"name": "Alec Hill", | ||
"url": "https://github.com/alechill", | ||
"githubUsername": "alechill" | ||
} | ||
@@ -24,5 +31,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "ac987f3c7f20d9647c9fc54d83d5c69f2c49f1e278ed697530649baed52477c1", | ||
"typesPublisherContentHash": "9489f5d997cac44bc3f879de9e7f52978b6a7aa214da4e65a51fa32670796b10", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 14 Aug 2017 20:37:50 GMT | ||
* Last updated: Thu, 07 Sep 2017 22:03:13 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: ReduxActions | ||
# Credits | ||
These definitions were written by Jack Hsu <https://github.com/jaysoo>, Alex Gorbatchev <https://github.com/alexgorbatchev>. | ||
These definitions were written by Jack Hsu <https://github.com/jaysoo>, Alex Gorbatchev <https://github.com/alexgorbatchev>, Alec Hill <https://github.com/alechill>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8892
136