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/

Who will become the new mathematicians of Math 2.0?

https://proofsandprompts.com/2026/10/20/who-will-become-the-new-mathematicians-of-math-2-0/
1•the-mitr•2m ago•0 comments

Who Wrote This Byte?

https://fzakaria.com/2026/10/23/who-wrote-this-byte
1•Sighery•7m ago•0 comments

No Pussyfooting (1973)

https://www.discogs.com/master/9824-Fripp-Eno-No-Pussyfooting?srsltid=AYCX9vI4P8C-IiZyut0mu3GJd_l...
1•erottern•8m ago•0 comments

Yab, yet Another Browser

https://yetanotherbrowser.com/#arc
1•nmiv•18m ago•1 comments

Pi, the coding agent, compiled ahead of time to one native executable

https://github.com/opensec-git/Pi-Bolt
1•thunderbong•21m ago•0 comments

Julia Returns to Tiobe's Top 20

https://tech-insider.org/tiobe-index-october-2026-python-julia-rust/
1•sumnole•21m ago•1 comments

Oura sues rival Ultrahuman again, threatening its U.S. smart ring comeback

https://techcrunch.com/2026/10/22/oura-sues-rival-ultrahuman-again-threatening-its-u-s-smart-ring...
1•Brajeshwar•22m ago•0 comments

Tehran has detailed plans to hit Gulf undersea cables if war resumes

https://www.timesofisrael.com/liveblog_entry/iranian-officials-tehran-has-detailed-plans-to-hit-g...
1•ghost-pooper•24m ago•0 comments

Uringscope: eBPF Tracer and Analyzer for io_uring

https://github.com/rch0wdhury/uringscope
1•tanelpoder•26m ago•1 comments

Regular Expression Matching Can Be Simple and Fast (2007)

https://swtch.com/~rsc/regexp/regexp1.html
2•giancarlostoro•29m ago•0 comments

Hitler's Eagle's Nest retreat 'completely ablaze'

https://www.telegraph.co.uk/world-news/2026/10/24/fire-hitler-eagles-nest-germany/
3•giuliomagnifico•32m ago•1 comments

Security Infrastructure for Developers and Agents

https://infisical.com/
2•measurablefunc•32m ago•0 comments

Filekin – PDF tools with no signup, no limits and no watermark

https://filekin.io/
1•LlamaCode•34m ago•0 comments

Indian government sites are serving revoked eMudhra certificates

https://captnemo.in/blog/2026/10/23/emsign-revoked-gov-in/
2•adityaathalye•34m ago•0 comments

The Age of Reasoning [pdf]

https://metisreasoning.ai/whitepaper/the-age-of-reasoning-2026-10.pdf
2•gmays•36m ago•0 comments

Misure di sicurezza rafforzate NIS: stato e preparazione

https://cyberpath-hq.com/blog/misure-sicurezza-rafforzate-nis/
1•ebalo55•46m ago•0 comments

Mamdani Makes a Splash with His Bidets

https://www.nytimes.com/2026/10/23/nyregion/bidets-zohran-mamdani-gracie-mansion.html
2•osnium123•48m ago•0 comments

Sam Altman: 'I No Longer Think We're Gonna Be Able to Just Patch All the Bugs'

https://gizmodo.com/sam-altman-i-no-longer-think-were-gonna-be-able-to-just-patch-all-the-bugs-20...
4•CharlesW•48m ago•0 comments

Hardwood - modern lightweight Java reader and writer for Parquet file format

https://hardwood.dev/1.1.0.Beta3/
1•hiyer•52m ago•0 comments

The Colors of a Soap Film

https://aseemrb.me/blog/colors-of-a-soap-film/
2•gregsadetsky•53m ago•0 comments

How close can pure functional programming get to C?

https://rtfeldman.com/fp-vs-c
3•stmonty•55m ago•0 comments

Show HN: A map of outdoor gyms and pull-up bars

https://openairworkout.com/
2•hunvreus•57m ago•0 comments

Show HN: Inference Cooperative, user-governed AI

https://inference.coop/
1•ntnsndr•1h ago•0 comments

CowAgent – Open-Source Super AI Assistant

https://cowagent.ai/en/
1•ankitg12•1h ago•0 comments

The Anger Machine (Joan Kirner Social Justice Oration 2026)

https://www.andrewleigh.com/speech_the_anger_machine_rebuilding_community_in_the_age_of_outrage_2...
6•femto•1h ago•1 comments

Show HN: Web Bot Auth SDK and SSH Utilty

https://messh.io
1•malviyamukul•1h ago•0 comments

Show HN: CallFlow – VS Code REST client that also captures your terminal's HTTP

https://smallhours.works/callflow/
1•arexey•1h ago•0 comments

Ruliobiology and the Theoretical Foundations of Biological Form

https://writings.stephenwolfram.com/2026/10/endless-forms-most-beautiful-and-most-wonderful-rulio...
1•alok-g•1h ago•0 comments

Black October

https://mili.dev/writing/black-october/
4•dannygreer•1h ago•1 comments

Build your coding orchestrator from scratch part 1

https://wiilearn.substack.com/p/spurcode-build-your-coding-archestrator
1•mf_kevintruong•1h ago•0 comments