|
|
|
|
|
by bcherny
2433 days ago
|
|
Right, but there will be an error where you consume myIntValue: const myIntValue = f()
// Error TS2365: Operator '+' cannot be applied to types 'Promise<number>' and '2'
const myResult = myIntValue + 2
async function f() {
return 42
}
|
|