Thenable class that behaves like a Promise and follows it's interface but is not async internally

Type Parameters

  • T

Hierarchy

  • SyncPromise

Implements

  • PromiseLike<T>

Methods

Methods

  • JSDoc

    Type Parameters

    • TResult = never

    Parameters

    • Optional onrejected: null | ((reason) => TResult | PromiseLike<TResult>)

    Returns PromiseLike<T | TResult>

  • JSDoc

    Type Parameters

    • TResult

    Parameters

    • Optional onfinally: null | (() => void)

    Returns PromiseLike<TResult>

  • JSDoc

    Type Parameters

    • TResult1 = T

    • TResult2 = never

    Parameters

    • Optional onfulfilled: null | ((value) => TResult1 | PromiseLike<TResult1>)
    • Optional onrejected: null | ((reason) => TResult2 | PromiseLike<TResult2>)

    Returns PromiseLike<TResult1 | TResult2>

Generated using TypeDoc