ipull
Version:
The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.
8 lines (7 loc) • 322 B
TypeScript
import retry from "async-retry";
export declare function promiseWithResolvers<Resolve = void>(): {
promise: Promise<Resolve>;
resolve: (value: Resolve) => void;
reject: (reason: unknown) => void;
};
export declare function retryAsyncStatementSimple(options?: retry.Options): (reason?: Error) => Promise<void>;