Type alias ValueOrPromise<T>

ValueOrPromise<T>: T | PromiseLike<T>

Representing a value or promise. This type is used to represent results of synchronous/asynchronous resolution of values.

Type Parameters

  • T

Generated using TypeDoc