Type Alias ResolvedPromiseHandler<T, TResult1>

ResolvedPromiseHandler<T, TResult1>: ((value: T) => TResult1 | IPromise<TResult1> | PromiseLike<TResult1>) | undefined | null

This defines the handler function for when a promise is resolved.

Type Parameters

  • T
  • TResult1 = T

This is the value passed as part of resolving the Promise

This may return a value, another Promise or void.

IPromise.then for how the value is handled.