Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/redux-saga-routines

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/redux-saga-routines - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

91

redux-saga-routines/index.d.ts

@@ -7,6 +7,5 @@ // Type definitions for redux-saga-routines 3.1

import { Dispatch } from 'redux';
import { Dispatch } from "redux";
import {
Action,
ActionMeta,
ActionFunction0,

@@ -18,8 +17,9 @@ ActionFunction1,

ActionFunctionAny,
} from 'redux-actions';
import { FormSubmitHandler } from 'redux-form';
ActionMeta,
} from "redux-actions";
import { FormSubmitHandler } from "redux-form";
export function routinePromiseWatcherSaga(): IterableIterator<any>;
export type RoutineStages = 'TRIGGER' | 'REQUEST' | 'SUCCESS' | 'FAILURE' | 'FULFILL';
export type RoutineStages = "TRIGGER" | "REQUEST" | "SUCCESS" | "FAILURE" | "FULFILL";

@@ -35,7 +35,9 @@ export type ActionCreatorFunction<Payload = any, Meta = any> = ActionFunctionAny<

TFailureActionCreator = ActionCreatorFunction,
TFulfillActionCreator = ActionCreatorFunction
> = TTriggerActionCreator &
{
TFulfillActionCreator = ActionCreatorFunction,
> =
& TTriggerActionCreator
& {
[key in RoutineStages]: string;
} & {
}
& {
trigger: TTriggerActionCreator;

@@ -56,8 +58,6 @@ request: TRequestActionCreator;

export type ResolveFunctionReturnType<TFunction> = TFunction extends (...args: any[]) => infer TReturn
? TReturn
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
export type ResolveFunctionArg1Type<TFunction> = TFunction extends (arg1: infer TArg1, ...args: any[]) => any ? TArg1
: undefined;

@@ -74,4 +74,3 @@

...args: any[]
) => any
? TArg1
) => any ? TArg1
: undefined;

@@ -85,4 +84,3 @@

...args: any[]
) => any
? TArg1
) => any ? TArg1
: undefined;

@@ -96,13 +94,10 @@

TArg3 = ResolveFunctionArg3Type<TPayloadCreator>,
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>>
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>>
? ActionFunction3<TArg1, TArg2, TArg3, Action<TPayload>>
: TPayloadCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TPayload>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, Action<TPayload>>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, Action<TPayload>>
: ActionFunctionAny<Action<TPayload>>;

@@ -116,13 +111,10 @@

TArg3 = ResolveFunctionArg3Type<TMetaCreator>,
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>>
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>>
? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<any, TMeta>>
: TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<any, TMeta>>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<any, TMeta>>
: ActionFunctionAny<ActionMeta<any, TMeta>>;

@@ -138,13 +130,11 @@

TArg3 = ResolveFunctionArg3Type<TPayloadCreator>,
TArg4 = ResolveFunctionArg4Type<TPayloadCreator>
> = TMetaCreator extends ActionFunction0<TMeta>
? ActionFunction0<ActionMeta<TPayload, TMeta>>
: TMetaCreator extends ActionFunction1<TArg1, TMeta>
? ActionFunction1<TArg1, ActionMeta<TPayload, TMeta>>
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>>
? ActionFunction2<TArg1, TArg2, ActionMeta<TPayload, TMeta>>
: TMetaCreator extends ActionFunction3<TArg1, TArg2, TArg3, TMeta>
? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<TPayload, TMeta>>
? ActionFunction3<TArg1, TArg2, TArg3, ActionMeta<TPayload, TMeta>>
: TMetaCreator extends ActionFunction4<TArg1, TArg2, TArg3, TArg4, TMeta>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<TPayload, TMeta>>
? ActionFunction4<TArg1, TArg2, TArg3, TArg4, ActionMeta<TPayload, TMeta>>
: ActionFunctionAny<ActionMeta<TPayload, TMeta>>;

@@ -154,4 +144,3 @@

...args: any[]
) => Action<infer TPayload>
? TPayload
) => Action<infer TPayload> ? TPayload
: undefined;

@@ -168,4 +157,4 @@

| Routine<
ActionFunction1<ReduxFormPayload<TFormData, TProps>, ActionMeta<ReduxFormPayload<TFormData, TProps>, any>>
>,
ActionFunction1<ReduxFormPayload<TFormData, TProps>, ActionMeta<ReduxFormPayload<TFormData, TProps>, any>>
>,
noSuccessPayload?: boolean,

@@ -186,3 +175,3 @@ ): FormSubmitHandler<TFormData, TProps>;

TFailureActionCreator = ActionCreatorFunction,
TFulfillActionCreator = ActionCreatorFunction
TFulfillActionCreator = ActionCreatorFunction,
>(

@@ -303,3 +292,3 @@ routine: Routine<

TFailurePayloadCreator,
TFulfillPayloadCreator
TFulfillPayloadCreator,
>(

@@ -332,3 +321,3 @@ typePrefix: string,

TFailureMetaCreator,
TFulfillMetaCreator
TFulfillMetaCreator,
>(

@@ -367,3 +356,3 @@ typePrefix: string,

TFailureMetaCreator,
TFulfillMetaCreator
TFulfillMetaCreator,
>(

@@ -370,0 +359,0 @@ typePrefix: string,

{
"name": "@types/redux-saga-routines",
"version": "3.1.4",
"version": "3.1.5",
"description": "TypeScript definitions for redux-saga-routines",

@@ -27,4 +27,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-saga-routines",

},
"typesPublisherContentHash": "0b2b2dbf8ec9dc4ddd3a3a0be40f5ace7bc5ff04c07ef01fcb572653c4b4292e",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "0fd2ff43824916ee3a8494c67ab2da7af28b724c2981e5ea5f40988edfb131df",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 22 Aug 2023 18:04:40 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 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)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc