Tweakr
    Preparing search index...

    Interface WaitForOptions

    Options for the waitFor function.

    interface WaitForOptions {
        errorMessage?: string;
        interval?: number | (() => number | Promise<number>);
        timeoutMs?: number;
    }
    Index

    Properties

    errorMessage?: string

    Optional error message to throw on timeout.

    interval?: number | (() => number | Promise<number>)

    Delay between condition checks in milliseconds, or a function returning the next delay. Can also be async. Defaults to 100.

    timeoutMs?: number

    Maximum time to wait before throwing an error, in milliseconds. Defaults to 5000.