Declare that T may or may not be a Promise. This should be used only for consumers of arguments and declarations; return values should specifically be Promise<T> or T itself.
T
Promise<T>
Declare that
T
may or may not be a Promise. This should be used only for consumers of arguments and declarations; return values should specifically bePromise<T>
orT
itself.