@ackee/antonio-utils
Advanced tools
Comparing version 4.0.6 to 4.0.7
import { AnyAction } from 'redux'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90eXBlcy50cyJdLCJuYW1lcyI6WyJBbnlBY3Rpb24iXSwibWFwcGluZ3MiOiJBQUFBLFNBQVNBLFNBQVQsUUFBMEIsT0FBMUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBbnlBY3Rpb24gfSBmcm9tICdyZWR1eCc7XG5pbXBvcnQgdHlwZSB7IEFjdGlvblBhdHRlcm4gfSBmcm9tICdyZWR1eC1zYWdhL2VmZmVjdHMnO1xuXG50eXBlIEZuID0gKC4uLmFyZ3M6IGFueVtdKSA9PiBhbnk7XG5cbmV4cG9ydCB0eXBlIFJlcXVlc3RIYW5kbGVyID0gKHJlcXVlc3RBY3Rpb246IEFueUFjdGlvbiwgc2lnbmFsOiBBYm9ydFNpZ25hbCkgPT4gYW55O1xuXG5leHBvcnQgaW50ZXJmYWNlIENhbmNlbGxhYmxlSGFuZGxlciB7XG4gICAgaGFuZGxlckFyZzogYW55O1xuICAgIENBTkNFTDogQWN0aW9uUGF0dGVybjtcbiAgICBoYW5kbGVyOiBSZXF1ZXN0SGFuZGxlcjtcbiAgICBvbkNvbXBsZXRlPzogRm47XG59XG5cbmV4cG9ydCB0eXBlIFJlcXVlc3RJZCA9IHN5bWJvbCB8IHN0cmluZyB8IG51bWJlcjtcblxuZXhwb3J0IGludGVyZmFjZSBUYWtlTGF0ZXN0UmVxdWVzdCB7XG4gICAgUkVRVUVTVDogQWN0aW9uUGF0dGVybjtcbiAgICBjYW5jZWxUYXNrOiAocmVxdWVzdElkOiBSZXF1ZXN0SWQsIGFjdGlvbjogQW55QWN0aW9uKSA9PiBBbnlBY3Rpb247XG4gICAgcmVxdWVzdElkU2VsZWN0b3I/OiAoYWN0aW9uOiBBbnlBY3Rpb24pID0+IFJlc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WN0aW9uID0gQW55QWN0aW9uPihyZXF1ZXN0SWQ6IFJlcXVlc3RJZCwgYWN0aW9uOiBBKTogQTtcbiAgICByZXF1ZXN0SWRTZWxlY3Rvcj88QSBleHRlbmRzIEFueUFjdGlvbiA9IEFueUFjdGlvbj4oYWN0aW9uOiBBKTogUmVxdWVzdElkO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFRha2VSZXF1ZXN0IHtcbiAgICBSRVFVRVNUOiBBY3Rpb25QYXR0ZXJuO1xuICAgIENBTkNFTDogQWN0aW9uUGF0dGVybjtcbn1cbiJdfQ== |
import { AnyAction } from 'redux'; | ||
import type { ActionPattern } from 'redux-saga/effects'; | ||
declare type Fn = (...args: any[]) => any; | ||
export declare type RequestHandler = (requestAction: AnyAction, signal: AbortSignal) => any; | ||
export declare type RequestHandler<A extends AnyAction = AnyAction> = (requestAction: A, signal: AbortSignal) => any; | ||
export interface CancellableHandler { | ||
@@ -14,4 +14,4 @@ handlerArg: any; | ||
REQUEST: ActionPattern; | ||
cancelTask: (requestId: RequestId, action: AnyAction) => AnyAction; | ||
requestIdSelector?: (action: AnyAction) => RequestId; | ||
cancelTask<A extends AnyAction = AnyAction>(requestId: RequestId, action: A): A; | ||
requestIdSelector?<A extends AnyAction = AnyAction>(action: A): RequestId; | ||
} | ||
@@ -18,0 +18,0 @@ export interface TakeRequest { |
"use strict"; | ||
var _redux = require("redux"); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQW55QWN0aW9uIH0gZnJvbSAncmVkdXgnO1xuaW1wb3J0IHR5cGUgeyBBY3Rpb25QYXR0ZXJuIH0gZnJvbSAncmVkdXgtc2FnYS9lZmZlY3RzJztcblxudHlwZSBGbiA9ICguLi5hcmdzOiBhb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9lZmZlY3RzJztcblxudHlwZSBGbiA9ICguLi5hcmdzOiBhbnlbXSkgPT4gYW55O1xuXG5leHBvcnQgdHlwZSBSZXF1ZXN0SGFuZGxlcjxBIGV4dGVuZHMgQW55QWN0aW9uID0gQW55QWN0aW9uPiA9IChyZXF1ZXN0QWN0aW9uOiBBLCBzaWduYWw6IEFib3J0U2lnbmFsKSA9PiBhbnk7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ2FuY2VsbGFibGVIYW5kbGVyIHtcbiAgICBoYW5kbGVyQXJnOiBhbnk7XG4gICAgQ0FOQ0VMOiBBY3Rpb25QYXR0ZXJuO1xuICAgIGhhbmRsZXI6IFJlcXVlc3RIYW5kbGVyO1xuICAgIG9uQ29tcGxldGU/OiBGbjtcbn1cblxuZXhwb3J0IHR5cGUgUmVxdWVzdElkID0gc3ltYm9sIHwgc3RyaW5nIHwgbnVtYmVyO1xuXG5leHBvcnQgaW50ZXJmYWNlIFRha2VMYXRlc3RSZXF1ZXN0IHtcbiAgICBSRVFVRVNUOiBBY3Rpb25QYXR0ZXJuO1xuICAgIGNhbmNlbFRhc2s8QSBleHRlbmRzIEFueUFjdGlvbiA9IEFueUFjdGlvbj4ocmVxdWVzdElkOiBSZXF1ZXN0SWQsIGFjdGlvbjogQSk6IEE7XG4gICAgcmVxdWVzdElkU2VsZWN0b3I/PEEgZXh0ZW5kcyBBbnlBY3Rpb24gPSBBbnlBY3Rpb24+KGFjdGlvbjogQSk6IFJlcXVlc3RJZDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUYWtlUmVxdWVzdCB7XG4gICAgUkVRVUVTVDogQWN0aW9uUGF0dGVybjtcbiAgICBDQU5DRUw6IEFjdGlvblBhdHRlcm47XG59XG4iXX0= |
{ | ||
"name": "@ackee/antonio-utils", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"gitHead": "37e1c245bce5bddea168c4d91e9bd0cc93ab112f" | ||
"gitHead": "7acce57a5cf37d9ce923915d18f4caad4d217b46" | ||
} |
@@ -70,5 +70,5 @@ ![ackee|Antonio](/assets/ackee_git_frontend_antonio.png) | ||
- `REQUEST: ActionPattern` - action type that launches the saga | ||
- `cancelTask: (requestId: RequestId, action: AnyAction) => AnyAction` - Redux action that will cancel the | ||
- `cancelTask<A extends AnyAction = AnyAction>(requestId: RequestId, action: A): A;` - Redux action that will cancel the | ||
running saga | ||
- `requestIdSelector?: (action: AnyAction) => RequestId` - A function that receives request action as 1st arg. and returns unique ID of this action, e.g. user ID. | ||
- `requestIdSelector?<A extends AnyAction = AnyAction>(action: A): RequestId;` - A function that receives request action as 1st arg. and returns unique ID of this action, e.g. user ID. | ||
- `saga(requestAction, signal: Signal): Function` - the actual API request is made here | ||
@@ -75,0 +75,0 @@ |
37119