MaybePromise<T>
ts
type MaybePromise<T> = T | Promise<T>;Defined in: shared/types.ts:115
Utility type, that makes a type an optional promise.
Type Parameters
| Type Parameter |
|---|
T |
Since
1.0.0
Author
Simon Kovtyk