amis-rpc-design/node_modules/@redux-saga/deferred/index.d.ts

10 lines
228 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export interface Deferred<R> {
resolve(result: R): void
reject(error: any): void
promise: Promise<R>
}
export default function deferred<R>(): Deferred<R>
export function arrayOfDeferred<R>(length: number): Deferred<R>[]