mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
417 B
Plaintext
11 lines
417 B
Plaintext
awaitCallExpressionInSyncFunction.ts(2,16): error TS2311: Cannot find name 'await'. Did you mean to write this in an async function?
|
|
|
|
|
|
==== awaitCallExpressionInSyncFunction.ts (1 errors) ====
|
|
function foo() {
|
|
const foo = await(Promise.resolve(1));
|
|
~~~~~
|
|
!!! error TS2311: Cannot find name 'await'. Did you mean to write this in an async function?
|
|
return foo;
|
|
}
|
|
|