Skip to content

gunshi / default / Awaitable

Type Alias: Awaitable<T>

ts
type Awaitable<T> = T | Promise<T>;

Awaitable type.

Type Parameters

Type ParameterDescription
TThe type of the value that can be awaited.

Released under the MIT License.