@nevware21/ts-utils
    Preparing search index...

    Type Alias TimeoutOverrideFn

    TimeoutOverrideFn: <TArgs extends any[]>(
        callback: (...args: TArgs) => void,
        ms?: number,
        ...args: TArgs,
    ) => number | any

    The signature of the override timeout function used to create a new timeout instance, it follows the same signature as the native setTimeout API.

    Type declaration

      • <TArgs extends any[]>(
            callback: (...args: TArgs) => void,
            ms?: number,
            ...args: TArgs,
        ): number | any
      • Type Parameters

        • TArgs extends any[]

        Parameters

        • callback: (...args: TArgs) => void

          A function to be executed after the timer expires.

        • Optionalms: number

          The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle.

        • ...args: TArgs

          Additional arguments which are passed through to the function specified by callback.

        Returns number | any

        The returned timeoutID is a positive integer value which identifies the timer created by the call to setTimeout(). This value can be passed to clearTimeout() to cancel the timeout.

    0.4.4