Glossary: TypeScript Beyond the Basics
Top-level await
Using `await` directly in a module, outside any `async` function. It lets a script wait for a promise, such as a `fetch` call, without wrapping the code in a function.
Glossary: TypeScript Beyond the Basics
Using `await` directly in a module, outside any `async` function. It lets a script wait for a promise, such as a `fetch` call, without wrapping the code in a function.