Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LazyPromise<T>

Type parameters

  • T

Hierarchy

  • Promise<T>
    • LazyPromise

Index

Properties

Methods

Properties

Promise

Promise: PromiseConstructor

__@toStringTag

__@toStringTag: "Promise"

Methods

___then

  • ___then(onfulfilled?: function | undefined | null, onrejected?: function | undefined | null): Promise<T>
  • ___then<TResult>(onfulfilled: function | undefined | null, onrejected: function): Promise<T | TResult>
  • ___then<TResult>(onfulfilled: function, onrejected?: function | undefined | null): Promise<TResult>
  • ___then<TResult1, TResult2>(onfulfilled: function, onrejected: function): Promise<TResult1 | TResult2>
  • Parameters

    • Optional onfulfilled: function | undefined | null
    • Optional onrejected: function | undefined | null

    Returns Promise<T>

  • Type parameters

    • TResult

    Parameters

    • onfulfilled: function | undefined | null
    • onrejected: function
        • (reason: any): TResult | PromiseLike<TResult>
        • Parameters

          • reason: any

          Returns TResult | PromiseLike<TResult>

    Returns Promise<T | TResult>

  • Type parameters

    • TResult

    Parameters

    • onfulfilled: function
        • (value: T): TResult | PromiseLike<TResult>
        • Parameters

          • value: T

          Returns TResult | PromiseLike<TResult>

    • Optional onrejected: function | undefined | null

    Returns Promise<TResult>

  • Type parameters

    • TResult1

    • TResult2

    Parameters

    • onfulfilled: function
        • (value: T): TResult1 | PromiseLike<TResult1>
        • Parameters

          • value: T

          Returns TResult1 | PromiseLike<TResult1>

    • onrejected: function
        • (reason: any): TResult2 | PromiseLike<TResult2>
        • Parameters

          • reason: any

          Returns TResult2 | PromiseLike<TResult2>

    Returns Promise<TResult1 | TResult2>

catch

  • catch<TResult>(onrejected?: function | undefined | null): Promise<T | TResult>
  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult

    Parameters

    • Optional onrejected: function | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<T | TResult>

    A Promise for the completion of the callback.

then

  • then<TResult1, TResult2>(onfulfilled?: function | undefined | null, onrejected?: function | undefined | null): Promise<TResult1 | TResult2>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • Optional onfulfilled: function | undefined | null

      The callback to execute when the Promise is resolved.

    • Optional onrejected: function | undefined | null

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult1 | TResult2>

    A Promise for the completion of which ever callback is executed.

Generated using TypeDoc