Top-level await in TypeScript 3.8
New FeaturesTypeScript 3.8 introduces a new functionality which is called top-level await. It allows developers to use the await
keyword without a surrounding async
function at the top level of a module.
TypeScript 3.8 introduces a new functionality which is called top-level await. It allows developers to use the await
keyword without a surrounding async
function at the top level of a module.