mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
adding 'delay' definition to redux-saga DT
This commit is contained in:
4
redux-saga/redux-saga.d.ts
vendored
4
redux-saga/redux-saga.d.ts
vendored
@@ -45,6 +45,10 @@ declare module 'redux-saga' {
|
||||
|
||||
export function takeLatest(pattern: Pattern, saga: Saga, ...args: any[]): { [Symbol.iterator](): IterableIterator<any> };
|
||||
|
||||
export function delay(ms: number): Promise<boolean>;
|
||||
|
||||
export function delay<T>(ms: number, val: T): Promise<T>;
|
||||
|
||||
export function isCancelError(e: any): boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user