@types/redux-saga-routines
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -11,3 +11,2 @@ // Type definitions for redux-saga-routines 3.1 | ||
ActionMeta, | ||
createAction, | ||
ActionFunction0, | ||
@@ -21,3 +20,2 @@ ActionFunction1, | ||
import { FormSubmitHandler } from 'redux-form'; | ||
import { string } from 'prop-types'; | ||
@@ -29,3 +27,3 @@ export function routinePromiseWatcherSaga(): IterableIterator<any>; | ||
export type ActionCreatorFunction<Payload = any, Meta = any> = ActionFunctionAny< | ||
Action<Payload> | ActionMeta<Payload, Meta> | ||
Action<Payload> | ActionMeta<Payload, Meta> | ||
>; | ||
@@ -39,11 +37,12 @@ | ||
TFulfillActionCreator = ActionCreatorFunction | ||
> = TTriggerActionCreator & { | ||
[key in RoutineStages]: string; | ||
} & { | ||
trigger: TTriggerActionCreator; | ||
request: TRequestActionCreator; | ||
success: TSuccessActionCreator; | ||
failure: TFailureActionCreator; | ||
fulfill: TFulfillActionCreator; | ||
}; | ||
> = TTriggerActionCreator & | ||
{ | ||
[key in RoutineStages]: string; | ||
} & { | ||
trigger: TTriggerActionCreator; | ||
request: TRequestActionCreator; | ||
success: TSuccessActionCreator; | ||
failure: TFailureActionCreator; | ||
fulfill: TFulfillActionCreator; | ||
}; | ||
@@ -58,16 +57,32 @@ export type UnifiedRoutine<TActionCreator = ActionCreatorFunction> = Routine< | ||
export type ResolveFunctionReturnType<TFunction> = | ||
TFunction extends (...args: any[]) => infer TReturn ? TReturn : undefined; | ||
export type ResolveFunctionReturnType<TFunction> = TFunction extends (...args: any[]) => infer TReturn | ||
? TReturn | ||
: undefined; | ||
export type ResolveFunctionArg1Type<TFunction> = | ||
TFunction extends (arg1: infer TArg1, ...args: any[]) => any ? TArg1 : undefined; | ||
export type ResolveFunctionArg1Type<TFunction> = TFunction extends (arg1: infer TArg1, ...args: any[]) => any | ||
? TArg1 | ||
: undefined; | ||
export type ResolveFunctionArg2Type<TFunction> = | ||
TFunction extends (arg1: any, arg2: infer TArg1, ...args: any[]) => any ? TArg1 : undefined; | ||
export type ResolveFunctionArg2Type<TFunction> = TFunction extends (arg1: any, arg2: infer TArg1, ...args: any[]) => any | ||
? TArg1 | ||
: undefined; | ||
export type ResolveFunctionArg3Type<TFunction> = | ||
TFunction extends (arg1: any, arg2: any, arg3: infer TArg1, ...args: any[]) => any ? TArg1 : undefined; | ||
export type ResolveFunctionArg3Type<TFunction> = TFunction extends ( | ||
arg1: any, | ||
arg2: any, | ||
arg3: infer TArg1, | ||
...args: any[] | ||
) => any | ||
? TArg1 | ||
: undefined; | ||
export type ResolveFunctionArg4Type<TFunction> = | ||
TFunction extends (arg1: any, arg2: any, arg3: any, arg4: infer TArg1, ...args: any[]) => any ? TArg1 : undefined; | ||
export type ResolveFunctionArg4Type<TFunction> = TFunction extends ( | ||
arg1: any, | ||
arg2: any, | ||
arg3: any, | ||
arg4: infer TArg1, | ||
...args: any[] | ||
) => any | ||
? TArg1 | ||
: undefined; | ||
@@ -81,8 +96,13 @@ export type ResolveActionCreatorByPayload< | ||
TArg4 = ResolveFunctionArg4Type<TPayloadCreator> | ||
> = | ||
TPayloadCreator extends ActionFunction0<TPayload> ? ActionFunction0<Action<TPayload>> : | ||
TPayloadCreator extends ActionFunction1<TArg1, TPayload> ? ActionFunction1<TArg1, Action<TPayload>> : | ||
TPayloadCreator extends ActionFunction2<TArg1, TArg2, TPayload> ? ActionFunction2<TArg1, TArg2, Action<TPayload>> : | ||
TPayloadCreator extends ActionFunction3<TArg1, TArg2, TArg3, TPayload> ? ActionFunction3<TArg1, TArg2, TArg3, Action<TPayload>> : | ||
TPayloadCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TPayload> ? ActionFunction4<TArg1, TArg2, TArg3, TArg4, Action<TPayload>> : ActionFunctionAny<Action<TPayload>>; | ||
> = TPayloadCreator extends ActionFunction0<TPayload> | ||
? ActionFunction0<Action<TPayload>> | ||
: TPayloadCreator extends ActionFunction1<TArg1, TPayload> | ||
? ActionFunction1<TArg1, Action<TPayload>> | ||
: TPayloadCreator extends ActionFunction2<TArg1, TArg2, TPayload> | ||
? ActionFunction2<TArg1, TArg2, Action<TPayload>> | ||
: TPayloadCreator extends ActionFunction3<TArg1, TArg2, TArg3, TPayload> | ||
? ActionFunction3<TArg1, TArg2, TArg3, Action<TPayload>> | ||
: TPayloadCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TPayload> | ||
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, Action<TPayload>> | ||
: ActionFunctionAny<Action<TPayload>>; | ||
@@ -96,8 +116,13 @@ export type ResolveActionCreatorByMeta< | ||
TArg4 = ResolveFunctionArg4Type<TMetaCreator> | ||
> = | ||
TMetaCreator extends ActionFunction0<TMeta> ? ActionFunction0<ActionMeta<any, TMeta>> : | ||
TMetaCreator extends ActionFunction1<TArg1, TMeta> ? ActionFunction1<TArg1, ActionMeta<any, TMeta>> : | ||
TMetaCreator extends ActionFunction2<TArg1, TArg2, TMeta> ? ActionFunction2<TArg1, TArg2, ActionMeta<any, TMeta>> : | ||
TMetaCreator extends ActionFunction3<TArg1, TArg2, TArg3, TMeta> ? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<any, TMeta>> : | ||
TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta> ? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<any, TMeta>> : ActionFunctionAny<ActionMeta<any, TMeta>>; | ||
> = TMetaCreator extends ActionFunction0<TMeta> | ||
? ActionFunction0<ActionMeta<any, TMeta>> | ||
: TMetaCreator extends ActionFunction1<TArg1, TMeta> | ||
? ActionFunction1<TArg1, ActionMeta<any, TMeta>> | ||
: TMetaCreator extends ActionFunction2<TArg1, TArg2, TMeta> | ||
? ActionFunction2<TArg1, TArg2, ActionMeta<any, TMeta>> | ||
: TMetaCreator extends ActionFunction3<TArg1, TArg2, TArg3, TMeta> | ||
? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<any, TMeta>> | ||
: TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta> | ||
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<any, TMeta>> | ||
: ActionFunctionAny<ActionMeta<any, TMeta>>; | ||
@@ -113,9 +138,20 @@ export type ResolveActionCreatorByPayloadMeta< | ||
TArg4 = ResolveFunctionArg4Type<TPayloadCreator> | ||
> = | ||
TMetaCreator extends ActionFunction0<TMeta> ? ActionFunction0<ActionMeta<TPayload, TMeta>> : | ||
TMetaCreator extends ActionFunction1<TArg1, TMeta> ? ActionFunction1<TArg1, ActionMeta<TPayload, TMeta>> : | ||
TMetaCreator extends ActionFunction2<TArg1, TArg2, TMeta> ? ActionFunction2<TArg1, TArg2, ActionMeta<TPayload, TMeta>> : | ||
TMetaCreator extends ActionFunction3<TArg1, TArg2, TArg3, TMeta> ? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<TPayload, TMeta>> : | ||
TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta> ? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<TPayload, TMeta>> : ActionFunctionAny<ActionMeta<TPayload, TMeta>>; | ||
> = TMetaCreator extends ActionFunction0<TMeta> | ||
? ActionFunction0<ActionMeta<TPayload, TMeta>> | ||
: TMetaCreator extends ActionFunction1<TArg1, TMeta> | ||
? ActionFunction1<TArg1, ActionMeta<TPayload, TMeta>> | ||
: TMetaCreator extends ActionFunction2<TArg1, TArg2, TMeta> | ||
? ActionFunction2<TArg1, TArg2, ActionMeta<TPayload, TMeta>> | ||
: TMetaCreator extends ActionFunction3<TArg1, TArg2, TArg3, TMeta> | ||
? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<TPayload, TMeta>> | ||
: TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta> | ||
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<TPayload, TMeta>> | ||
: ActionFunctionAny<ActionMeta<TPayload, TMeta>>; | ||
export type ResolvePayloadByActionCreator<TActionCreator> = TActionCreator extends ( | ||
...args: any[] | ||
) => Action<infer TPayload> | ||
? TPayload | ||
: undefined; | ||
export interface ReduxFormPayload<TFormData = {}, TProps = {}> { | ||
@@ -126,28 +162,38 @@ values: TFormData; | ||
export function bindRoutineToReduxForm< | ||
TFormData = {}, | ||
TProps = {}, | ||
>( | ||
routine: Routine< | ||
ActionFunction1<ReduxFormPayload<TFormData, TProps>, | ||
Action<ReduxFormPayload<TFormData, TProps>>> | ||
> | Routine< | ||
ActionFunction1<ReduxFormPayload<TFormData, TProps>, | ||
ActionMeta<ReduxFormPayload<TFormData, TProps>, any>> | ||
>, | ||
export function bindRoutineToReduxForm<TFormData = {}, TProps = {}>( | ||
routine: | ||
| Routine<ActionFunction1<ReduxFormPayload<TFormData, TProps>, Action<ReduxFormPayload<TFormData, TProps>>>> | ||
| Routine< | ||
ActionFunction1<ReduxFormPayload<TFormData, TProps>, ActionMeta<ReduxFormPayload<TFormData, TProps>, any>> | ||
>, | ||
noSuccessPayload?: boolean, | ||
): FormSubmitHandler<TFormData, TProps>; | ||
export type PromiseCreator< | ||
TPayload = {}, | ||
> = (payload: TPayload, dispatch: Dispatch) => PromiseLike<any>; | ||
export type PayloadTypeOrUndefinable<TPayload> = { _: {} } extends { _: TPayload } ? {} | undefined : TPayload; | ||
export function promisifyRoutine( | ||
routine: Routine, | ||
): PromiseCreator; | ||
export type PromiseCreator<TPayload = {}> = ( | ||
payload: PayloadTypeOrUndefinable<TPayload>, | ||
dispatch: Dispatch, | ||
) => PromiseLike<any>; | ||
export type BoundPromiseCreator< | ||
TPayload = {}, | ||
> = (payload: TPayload) => PromiseLike<any>; | ||
export function promisifyRoutine< | ||
TTriggerActionCreator = ActionCreatorFunction, | ||
TRequestActionCreator = ActionCreatorFunction, | ||
TSuccessActionCreator = ActionCreatorFunction, | ||
TFailureActionCreator = ActionCreatorFunction, | ||
TFulfillActionCreator = ActionCreatorFunction | ||
>( | ||
routine: Routine< | ||
TTriggerActionCreator, | ||
TRequestActionCreator, // tslint:disable-line: no-unnecessary-generics | ||
TSuccessActionCreator, // tslint:disable-line: no-unnecessary-generics | ||
TFailureActionCreator, // tslint:disable-line: no-unnecessary-generics | ||
TFulfillActionCreator // tslint:disable-line: no-unnecessary-generics | ||
>, | ||
): PromiseCreator<ResolvePayloadByActionCreator<TTriggerActionCreator>>; | ||
export type BoundPromiseCreator<TPayload = {}> = { _: {} } extends { _: TPayload } | ||
? (payload?: TPayload) => PromiseLike<any> | ||
: (payload: TPayload) => PromiseLike<any>; | ||
export function bindPromiseCreators<TPayload>( | ||
@@ -172,151 +218,78 @@ promiseCreator: PromiseCreator<TPayload>, | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload = any | ||
>( | ||
typePrefix: string | ||
): UnifiedRoutine< | ||
(payload?: Payload) => Action<Payload | undefined> | ||
>; | ||
export function createRoutine<Payload = any>( | ||
typePrefix: string, | ||
): UnifiedRoutine<(payload?: Payload) => Action<Payload | undefined>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload | ||
>( | ||
export function createRoutine<Payload>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction0<Payload> | ||
): UnifiedRoutine< | ||
ActionFunction0<Action<Payload>> | ||
>; | ||
payloadCreator: ActionFunction0<Payload>, | ||
): UnifiedRoutine<ActionFunction0<Action<Payload>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Arg1 | ||
>( | ||
export function createRoutine<Payload, Arg1>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction1<Arg1, Payload>, | ||
): UnifiedRoutine< | ||
ActionFunction1<Arg1, Action<Payload>> | ||
>; | ||
): UnifiedRoutine<ActionFunction1<Arg1, Action<Payload>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Arg1, | ||
Arg2 | ||
>( | ||
export function createRoutine<Payload, Arg1, Arg2>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction2<Arg1, Arg2, Payload>, | ||
): UnifiedRoutine< | ||
ActionFunction2<Arg1, Arg2, Action<Payload>> | ||
>; | ||
): UnifiedRoutine<ActionFunction2<Arg1, Arg2, Action<Payload>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Arg1, | ||
Arg2, | ||
Arg3 | ||
>( | ||
export function createRoutine<Payload, Arg1, Arg2, Arg3>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>, | ||
): UnifiedRoutine< | ||
ActionFunction3<Arg1, Arg2, Arg3, Action<Payload>> | ||
>; | ||
): UnifiedRoutine<ActionFunction3<Arg1, Arg2, Arg3, Action<Payload>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Arg1, | ||
Arg2, | ||
Arg3, | ||
Arg4 | ||
>( | ||
export function createRoutine<Payload, Arg1, Arg2, Arg3, Arg4>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>, | ||
): UnifiedRoutine< | ||
ActionFunction4<Arg1, Arg2, Arg3, Arg4, Action<Payload>> | ||
>; | ||
): UnifiedRoutine<ActionFunction4<Arg1, Arg2, Arg3, Arg4, Action<Payload>>>; | ||
// NOTE: Default payloadCreator is identity (x => x) | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Meta | ||
>( | ||
export function createRoutine<Meta>( | ||
typePrefix: string, | ||
payloadCreator: null | undefined, | ||
metaCreator: ActionFunctionAny<Meta>, | ||
): UnifiedRoutine< | ||
(payload?: any) => ActionMeta<any, Meta> | ||
>; | ||
): UnifiedRoutine<(payload?: any) => ActionMeta<any, Meta>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Meta | ||
>( | ||
export function createRoutine<Payload, Meta>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunctionAny<Payload>, | ||
metaCreator: ActionFunctionAny<Meta>, | ||
): UnifiedRoutine< | ||
ActionFunctionAny<ActionMeta<Payload, Meta>> | ||
>; | ||
): UnifiedRoutine<ActionFunctionAny<ActionMeta<Payload, Meta>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Meta, | ||
Arg1 | ||
>( | ||
export function createRoutine<Payload, Meta, Arg1>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction1<Arg1, Payload>, | ||
metaCreator: ActionFunction1<Arg1, Meta>, | ||
): UnifiedRoutine< | ||
ActionFunction1<Arg1, ActionMeta<Payload, Meta>> | ||
>; | ||
): UnifiedRoutine<ActionFunction1<Arg1, ActionMeta<Payload, Meta>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Meta, | ||
Arg1, | ||
Arg2 | ||
>( | ||
export function createRoutine<Payload, Meta, Arg1, Arg2>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction2<Arg1, Arg2, Payload>, | ||
metaCreator: ActionFunction2<Arg1, Arg2, Meta>, | ||
): UnifiedRoutine< | ||
ActionFunction2<Arg1, Arg2, ActionMeta<Payload, Meta>> | ||
>; | ||
): UnifiedRoutine<ActionFunction2<Arg1, Arg2, ActionMeta<Payload, Meta>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Meta, | ||
Arg1, | ||
Arg2, | ||
Arg3 | ||
>( | ||
export function createRoutine<Payload, Meta, Arg1, Arg2, Arg3>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>, | ||
metaCreator: ActionFunction3<Arg1, Arg2, Arg3, Meta>, | ||
): UnifiedRoutine< | ||
ActionFunction3<Arg1, Arg2, Arg3, ActionMeta<Payload, Meta>> | ||
>; | ||
): UnifiedRoutine<ActionFunction3<Arg1, Arg2, Arg3, ActionMeta<Payload, Meta>>>; | ||
// NOTE: Same payloadCreator is used for all actions of the routine | ||
export function createRoutine< | ||
Payload, | ||
Meta, | ||
Arg1, | ||
Arg2, | ||
Arg3, | ||
Arg4 | ||
>( | ||
export function createRoutine<Payload, Meta, Arg1, Arg2, Arg3, Arg4>( | ||
typePrefix: string, | ||
payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>, | ||
metaCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Meta>, | ||
): UnifiedRoutine< | ||
ActionFunction4<Arg1, Arg2, Arg3, Arg4, ActionMeta<Payload, Meta>> | ||
>; | ||
): UnifiedRoutine<ActionFunction4<Arg1, Arg2, Arg3, Arg4, ActionMeta<Payload, Meta>>>; | ||
@@ -332,13 +305,13 @@ export function createRoutine< | ||
payloadCreator: { | ||
TRIGGER?: TTriggerPayloadCreator, | ||
trigger?: TTriggerPayloadCreator, | ||
REQUEST?: TRequestPayloadCreator, | ||
request?: TRequestPayloadCreator, | ||
SUCCESS?: TSuccessPayloadCreator, | ||
success?: TSuccessPayloadCreator, | ||
FAILURE?: TFailurePayloadCreator, | ||
failure?: TFailurePayloadCreator, | ||
FULFILL?: TFulfillPayloadCreator, | ||
fulfill?: TFulfillPayloadCreator | ||
} | ||
TRIGGER?: TTriggerPayloadCreator; | ||
trigger?: TTriggerPayloadCreator; | ||
REQUEST?: TRequestPayloadCreator; | ||
request?: TRequestPayloadCreator; | ||
SUCCESS?: TSuccessPayloadCreator; | ||
success?: TSuccessPayloadCreator; | ||
FAILURE?: TFailurePayloadCreator; | ||
failure?: TFailurePayloadCreator; | ||
FULFILL?: TFulfillPayloadCreator; | ||
fulfill?: TFulfillPayloadCreator; | ||
}, | ||
): Routine< | ||
@@ -362,13 +335,13 @@ ResolveActionCreatorByPayload<TTriggerPayloadCreator>, | ||
metaCreator: { | ||
TRIGGER?: TTriggerMetaCreator, | ||
trigger?: TTriggerMetaCreator, | ||
REQUEST?: TRequestMetaCreator, | ||
request?: TRequestMetaCreator, | ||
SUCCESS?: TSuccessMetaCreator, | ||
success?: TSuccessMetaCreator, | ||
FAILURE?: TFailureMetaCreator, | ||
failure?: TFailureMetaCreator, | ||
FULFILL?: TFulfillMetaCreator, | ||
fulfill?: TFulfillMetaCreator | ||
} | ||
TRIGGER?: TTriggerMetaCreator; | ||
trigger?: TTriggerMetaCreator; | ||
REQUEST?: TRequestMetaCreator; | ||
request?: TRequestMetaCreator; | ||
SUCCESS?: TSuccessMetaCreator; | ||
success?: TSuccessMetaCreator; | ||
FAILURE?: TFailureMetaCreator; | ||
failure?: TFailureMetaCreator; | ||
FULFILL?: TFulfillMetaCreator; | ||
fulfill?: TFulfillMetaCreator; | ||
}, | ||
): Routine< | ||
@@ -396,25 +369,25 @@ ResolveActionCreatorByMeta<TTriggerMetaCreator>, | ||
payloadCreator: { | ||
TRIGGER?: TTriggerPayloadCreator, | ||
trigger?: TTriggerPayloadCreator, | ||
REQUEST?: TRequestPayloadCreator, | ||
request?: TRequestPayloadCreator, | ||
SUCCESS?: TSuccessPayloadCreator, | ||
success?: TSuccessPayloadCreator, | ||
FAILURE?: TFailurePayloadCreator, | ||
failure?: TFailurePayloadCreator, | ||
FULFILL?: TFulfillPayloadCreator, | ||
fulfill?: TFulfillPayloadCreator | ||
TRIGGER?: TTriggerPayloadCreator; | ||
trigger?: TTriggerPayloadCreator; | ||
REQUEST?: TRequestPayloadCreator; | ||
request?: TRequestPayloadCreator; | ||
SUCCESS?: TSuccessPayloadCreator; | ||
success?: TSuccessPayloadCreator; | ||
FAILURE?: TFailurePayloadCreator; | ||
failure?: TFailurePayloadCreator; | ||
FULFILL?: TFulfillPayloadCreator; | ||
fulfill?: TFulfillPayloadCreator; | ||
}, | ||
metaCreator: { | ||
TRIGGER?: TTriggerMetaCreator, | ||
trigger?: TTriggerMetaCreator, | ||
REQUEST?: TRequestMetaCreator, | ||
request?: TRequestMetaCreator, | ||
SUCCESS?: TSuccessMetaCreator, | ||
success?: TSuccessMetaCreator, | ||
FAILURE?: TFailureMetaCreator, | ||
failure?: TFailureMetaCreator, | ||
FULFILL?: TFulfillMetaCreator, | ||
fulfill?: TFulfillMetaCreator | ||
} | ||
TRIGGER?: TTriggerMetaCreator; | ||
trigger?: TTriggerMetaCreator; | ||
REQUEST?: TRequestMetaCreator; | ||
request?: TRequestMetaCreator; | ||
SUCCESS?: TSuccessMetaCreator; | ||
success?: TSuccessMetaCreator; | ||
FAILURE?: TFailureMetaCreator; | ||
failure?: TFailureMetaCreator; | ||
FULFILL?: TFulfillMetaCreator; | ||
fulfill?: TFulfillMetaCreator; | ||
}, | ||
): Routine< | ||
@@ -421,0 +394,0 @@ ResolveActionCreatorByPayloadMeta<TTriggerPayloadCreator, TTriggerMetaCreator>, |
{ | ||
"name": "@types/redux-saga-routines", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "TypeScript definitions for redux-saga-routines", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -23,3 +23,2 @@ "type": "git", | ||
"dependencies": { | ||
"@types/prop-types": "*", | ||
"@types/redux-actions": "*", | ||
@@ -29,4 +28,4 @@ "@types/redux-form": "*", | ||
}, | ||
"typesPublisherContentHash": "4078fc8e2e4743b8fdbdb79ecef9cde6d4a894ee1bb361440b9cde5579dfbddf", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "f1e28fa0d7f04600e9ad41dd93bb33f8547c81bcfdb502956225372eaf05c31a", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -5,13 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for redux-saga-routines ( https://github.com/afitiskin/redux-saga-routines ). | ||
This package contains type definitions for redux-saga-routines (https://github.com/afitiskin/redux-saga-routines). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-saga-routines | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-saga-routines. | ||
Additional Details | ||
* Last updated: Wed, 17 Apr 2019 22:20:05 GMT | ||
* Dependencies: @types/redux, @types/redux-actions, @types/redux-form, @types/prop-types | ||
### Additional Details | ||
* Last updated: Mon, 18 Jan 2021 14:32:16 GMT | ||
* Dependencies: [@types/redux](https://npmjs.com/package/@types/redux), [@types/redux-actions](https://npmjs.com/package/@types/redux-actions), [@types/redux-form](https://npmjs.com/package/@types/redux-form) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Alexey Pelykh <https://github.com/alexey-pelykh>. | ||
These definitions were written by [Alexey Pelykh](https://github.com/alexey-pelykh). |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17701
3
346
- Removed@types/prop-types@*
- Removed@types/prop-types@15.7.14(transitive)