Made a type to indicate that await should be used

This commit is contained in:
Kir_Antipov 2022-12-23 09:15:42 +00:00
parent 09d0d25fdc
commit 6e27f6c851

View file

@ -0,0 +1,6 @@
/**
* Represents a type that can either be a value of type `T` or a promise of type `T`.
*
* @template T - The type of value that may be awaited.
*/
export type Awaitable<T> = T | Promise<T>;