Automatically add missing "async/await" keywords to your TypeScript code

https://news.ycombinator.com/rss Hits: 1
Summary

TypeScript Autoawait This VScode extension automatically add missing 'async/await' keywords when you save a typescript file. Usage There must be a "tsconfig.json" in your project folder. Example add "await" and/or "async" 1 async function test(){ someAsyncFn() } 2 function test(){ someAsyncFn() } 3 function test(){ await someAsyncFn() } the above 3 scripts will be converted to async function test(){ await someAsyncFn() } If you do not want some async function to be added "await", use "no-await" comment at the end of the call: function test(){ someAsyncFn() // no-await } Performance The first converting is slow. Then it will be fast.

First seen: 2025-05-05 21:53

Last seen: 2025-05-05 21:53