diff --git a/src/utils/types/awaitable.ts b/src/utils/types/awaitable.ts new file mode 100644 index 0000000..d7a4a84 --- /dev/null +++ b/src/utils/types/awaitable.ts @@ -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 | Promise;