Type Alias PromiseCreatorFn

PromiseCreatorFn: (<T, TResult2>(newExecutor: PromiseExecutor<T>, ...extraArgs: any) => IPromise<T | TResult2>)

Defines the signature of a function that creates a Promise.

Type declaration

    • <T, TResult2>(newExecutor, ...extraArgs): IPromise<T | TResult2>
    • Type Parameters

      • T
      • TResult2 = never

      Parameters

      • newExecutor: PromiseExecutor<T>

        The executor to run in the context of the promise

      • Rest...extraArgs: any

        Any extra arguments that can be passed to the creator

      Returns IPromise<T | TResult2>

      A Promise IPromise implemenetation