UNPKG

@dfinity/pic

Version:

An Internet Computer Protocol canister testing library for TypeScript and JavaScript.

6 lines (5 loc) 214 B
export interface PollOptions { intervalMs: number; timeoutMs: number; } export declare function poll<T extends (...args: any) => any>(cb: T, { intervalMs, timeoutMs }: PollOptions): Promise<ReturnType<T>>;