You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
307 B

import { ErrorWithStack } from './helpers/errors';
export type WaitForOptions = {
timeout?: number;
interval?: number;
stackTraceError?: ErrorWithStack;
onTimeout?: (error: unknown) => Error;
};
export default function waitFor<T>(expectation: () => T, options?: WaitForOptions): Promise<T>;