Type Alias CancelIdleCallback

CancelIdleCallback: ((handle: number) => void)

Type that represents the global cancelIdleCallback function, which can be used to cancel a previously scheduled idle callback. Defined as a type alias for easier reference and to support older TypeScript versions.

Type declaration

    • (handle): void
    • Parameters

      • handle: number

        The handle returned by the requestIdleCallback function that identifies the idle callback to cancel.

      Returns void

0.11.2