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

    Interface IIdleDeadline

    The deadline passed to an idle callback, it describes how long the callback can run for. It has the same shape as the IdleDeadline provided by the DOM types of newer TypeScript versions, it is defined here so that the exported types can be used with earlier versions.

    0.20.0

    interface IIdleDeadline {
        didTimeout: boolean;
        timeRemaining(): number;
    }
    Index
    didTimeout: boolean

    True if the callback is being called because the timeout specified when it was scheduled expired.

    • Returns the estimated number of milliseconds remaining in the current idle period.

      Returns number