Type Alias ResolvePromiseHandler<T>

ResolvePromiseHandler<T>: ((value: T | IPromise<T> | PromiseLike<T>) => void)

Defines the signature of the resolve function passed to the resolverFunc (in the Promise constructor)

Type Parameters

  • T

Type declaration

    • (value): void
    • Parameters

      • value: T | IPromise<T> | PromiseLike<T>

        The value to resolve the Promise with

      Returns void

      Nothing