Top-level await in TypeScript 3.8
Top-level await landed in TypeScript 3.8. This video tutorial shows how you use it with Node.js 13. https://typescript.tv/new-features/top-level-await-in-typescript-3-8/ *My FREE programming apps:* - https://apps.apple.com/app/id659282498 - https://play.google.com/store/apps/details?id=com.welovecoding.app *My FREE TypeScript Course:* - https://typescript.tv/ Speaker: Benny Neugebauer (@bennycode) Follow Us: 🌐 https://typescript.tv/ 🐦 https://twitter.com/typescripttv 📺 https://youtube.com/typescripttv TL;DW: ➜ Use Node.js v13.3+ ➜ Set "module" to "esnext" and "target" to "es2017" in "tsconfig.json" ➜ Set "type" to "module" in "package.json" ➜ Add flag "--harmony-top-level-await" to your "node" exec command Read more: ➜ https://github.com/tc39/proposal-top-level-await ➜ https://v8.dev/features/top-level-await ➜ https://2ality.com/2019/12/top-level-await.html ➜ https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#top-level-await Hashtags: #TypeScript #Programming #WebDev #TypeScriptTV
Download
0 formatsNo download links available.