Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Promise

Global promise store allowing user-provided promises允许用户提供承诺的全球承诺商店

Hierarchy层级

  • Promise

Index索引

Constructors构造函数

Methods方法

Constructors构造函数

constructor构造函数

Methods方法

Static get

  • get(): PromiseConstructor
  • Get the stored promise library, or resolves passed in获取存储的promise库,或传入解析

    Returns返回PromiseConstructor

Static set

  • set(lib: PromiseConstructor): void
  • Sets the promise library设定承诺库

    Parameters参数

    • lib: PromiseConstructor

    Returns返回void

Static validate

  • validate(lib: unknown): lib is PromiseConstructor
  • Validates the passed in promise library验证传入的承诺库

    Parameters参数

    • lib: unknown

    Returns返回lib is PromiseConstructor

Generated using TypeDoc