Represents a function that returns a promise or a value.
The type of the value returned by the function.
A promise or a value of type T.
const myFunction: Awaitable<number> = async () => { const result = await someAsyncOperation(); return result + 1;}; Copy
const myFunction: Awaitable<number> = async () => { const result = await someAsyncOperation(); return result + 1;};
Generated using TypeDoc
Represents a function that returns a promise or a value.