Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Promise

Global promise store allowing user-provided promises

deprecated

Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.

Hierarchy

  • Promise

Index

Constructors

Methods

Constructors

Methods

  • get(): null | PromiseConstructor
  • Get the stored promise library, or resolves passed in

    deprecated

    Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.

    Returns null | PromiseConstructor

  • set(lib: null | PromiseConstructor): void
  • Sets the promise library

    deprecated

    Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.

    Parameters

    • lib: null | PromiseConstructor

    Returns void

  • validate(lib: unknown): lib is PromiseConstructor
  • Validates the passed in promise library

    deprecated

    Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.

    Parameters

    • lib: unknown

    Returns lib is PromiseConstructor

Generated using TypeDoc