Type alias Awaitable<T>

Awaitable<T>: T | Promise<T>

Type alias for something that may or may not be wrapped in a promise.

Type Parameters

  • T