frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/stanNthe5/typescript-autoawait
7•theThree•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•1y ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: CarGame.Club

https://cargame.club/
1•wfme•1m ago•0 comments

Chinese brain implants used to treat depression achieve 100% efficacy

https://www.scmp.com/news/china/science/article/3376818/chinese-brain-implants-used-treat-depress...
2•kartik147•5m ago•0 comments

Show HN: Six Sides – A world atlas of basalt columns

https://cl3m.github.io/six-sides/
2•cl3m•8m ago•0 comments

Slim Binaries (Communications of the ACM, December 1997)

https://dl.acm.org/doi/10.1145/265563.265576
1•QuantumNomad_•9m ago•0 comments

Philipp Emanuel Weidmann, developer of Heretic, is dead

https://indianexpress.com/article/india/german-ai-researcher-philipp-emanuel-weidmann-heretic-fou...
1•eternaut•12m ago•0 comments

Software got simpler when I took the cloud out of the middle

https://peterretief.org/posts/build-without-the-cloud/
1•peter_retief•13m ago•0 comments

The End of Consensus Research?

https://arxiv.org/abs/2610.30114
1•devos50•14m ago•0 comments

Why put a certificate inside a certificate?

https://unmitigatedrisk.com/2026/12/why-put-a-certificate-inside-a-certificate/
1•threeme3•14m ago•0 comments

Quite Handy free macOS app

https://quitehandy.app/
1•esreverse•15m ago•0 comments

Growth Footnotes: Your app is live. Find why it isn't selling

https://growthfootnotes.com/
1•eateriinc•17m ago•0 comments

Meet Blades, a Worthy Successor to Pico CSS

https://thathtml.blog/2026/12/meet-blades-the-successor-to-pico-css/
1•anydigital•17m ago•1 comments

RFC 9669: BPF Instruction Set Architecture (ISA)

https://www.rfc-editor.org/info/rfc9669/
1•peter_d_sherman•18m ago•1 comments

Stop linking by symbol: from O(symbols) to O(store paths)

https://fzakaria.com/2026/12/03/stop-linking-by-symbol
1•ingve•20m ago•0 comments

I'm No Longer the Debugging Guy

https://medium.com/ai-advances/im-no-longer-the-debugging-guy-e4f81b6d699a
1•memsranga•21m ago•1 comments

Show HN: Ultra-Low Latency C++23 HFT Engine and Lock-Free Ring Buffers

https://github.com/grfdsasdvef/awesome-hft-cpp23-internals
1•snowdensay•23m ago•0 comments

What We Learned Reading 579 Retail Return Policies Across 20 Countries

https://pricemend.com/notes/reading-return-policies
2•buildingbuildin•27m ago•0 comments

Show HN: NiceScribe – Word-synced audio/video transcription (99 languages)

https://nicescribe.com
1•quillzhou•28m ago•0 comments

Sans AI – The machine resistant font

https://www.rmit.edu.au/about/schools-colleges/media-and-communication/industry/sans-ai
2•haunter•30m ago•1 comments

The LessWrong House Style

https://borretti.me/article/the-lesswrong-house-style
1•pr337h4m•31m ago•0 comments

Show HN: Android input method that turns textfields into Vim

https://github.com/tnelsond/tnevi
1•tnelsond4•32m ago•0 comments

Inference startup Baseten raises $3B at $30B valuation

https://techcrunch.com/2026/12/03/inference-startup-baseten-raises-3b-at-30b-valuation/
1•doppp•32m ago•0 comments

Volumetric 3D based on two-frequency upconversion of Er3-doped Tellurite (2024)

https://opg.optica.org/ao/abstract.cfm?uri=ao-63-31-8054
1•peter_d_sherman•32m ago•0 comments

Hands-On Demo and Release Post (Hacker News, Forums, or Technical Communities)

https://exponential.earth/
1•Vincent_Opar•32m ago•0 comments

Freehand: The Bitter Lesson Comes to Agent Harnesses

https://arxiv.org/abs/2612.02442
1•ToJans•33m ago•0 comments

Elon Musk Gave Record $486M to Super PACs in US Midterm Elections

https://www.bloomberg.com/news/articles/2026-12-04/musk-gave-record-486-million-to-super-pacs-in-...
1•williamhartley•34m ago•0 comments

Looking for new people for fun tg.sara26kp

1•saramiller•38m ago•0 comments

The index, part 1: the table you write and the index you don't

https://infino.ai/blog/hidden-index-part-1/
1•ashishmishra262•40m ago•0 comments

Functional testing: what it checks, its types, and functional vs. non-functional

https://keploy.io/blog/community/functional-testing-an-in-depth-overview
1•Keployio•40m ago•0 comments

NSA reportedly asks OpenAI and Anthropic to pause cryptography research

https://vectorwire.ai/article/national-security-agency-reportedly-asks-openai-and-anthropic-to-pa...
3•netfortius•40m ago•0 comments

Picoballoon Flight Updates – 5 Flights, 140 Days Aloft, 11 Circumnavigation

https://reverea.dev/picoballoon-flight-updates-5-flights-140-days-aloft-11-circumnavigations/
1•rbanffy•42m ago•0 comments