redux-saga-tools
Version:
A set of utility functions to write saga and reducers easily
16 lines (15 loc) • 1.14 kB
TypeScript
export interface SagaConfiguration {
processor?: Function;
successActionType?: string;
failureActionType?: string;
}
export interface Handlers {
[id: string]: Function | [Function, String] | [Function, String, String];
}
export declare function createSaga(actionType: any, processor: Function, successActionType?: any, failureActionType?: any): import("redux-saga/effects").ForkEffect;
export declare function createSagaForEvery(actionType: any, processor: Function, successActionType?: any, failureActionType?: any): import("redux-saga/effects").ForkEffect;
export declare function createSagaStream(callback: Function, saga: any, action?: any): IterableIterator<import("redux-saga/effects").CallEffect | import("redux-saga/effects").TakeEffect | import("redux-saga/effects").PutEffect<{
type: string;
payload: any;
}> | import("redux-saga/effects").CancelledEffect>;
export declare function createSagaChannel(actionType: string | string[], callback: Function, saga: any): IterableIterator<import("redux-saga/effects").ForkEffect | import("redux-saga/effects").TakeEffect | import("redux-saga/effects").CancelEffect>;