TS1375
error TS1375: ‘await’ expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty ‘export {}’ to make this file a module.
Broken Code ❌
1 |
|
Fixed Code ✔️
1 |
|