A value that might be coming from a Promise.
Promise
type MaybeStringPromise = MaybePromise<string>;const promisedValue: MaybeStringPromise = Promise.resolve("🟢");const plainValue: MaybeStringPromise = "🟩";Promise.all([promisedValue, plainValue]).then(console.log); // ["🟢", "🟩"]
A value that might be coming from a
Promise
.Example