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: Free Local Letterboxd Analytics

https://letterboxd.ddns.net/
1•shafiemoji•51s ago•0 comments

DHH's keynote at Rails World: "The most confusing funeral I've ever experienced"

https://www.globalnerdy.com/2026/09/27/dhhs-keynote-at-rails-world-2026-the-most-confusing-funera...
1•gurjeet•12m ago•1 comments

Intel 1103: The Tiny Chip That Killed Magnetic Core Memory and Saved Intel

https://www.youtube.com/watch?v=v3HczTwJHcM
1•cable2600•14m ago•0 comments

Musk claims Ukraine violated Starlink service agreement

https://www.cnbc.com/2026/10/24/ukraine-starlink-starshield-service-restored.html
1•kristianp•15m ago•0 comments

Black October

https://en.wikipedia.org/wiki/Black_October_(information_security)
1•BentonE•19m ago•0 comments

Show HN: Independent Vet – Find locally owned vets (and corporate ones) near you

https://independentvet.com/
1•packeted•23m ago•0 comments

Weight-loss drug reduces sleep apnea in two late-stage trials

https://medicalxpress.com/news/2026-10-triple-action-weekly-weight-loss.html
1•geox•23m ago•0 comments

The Trouble with the View from Above (2010)

https://www.cato-unbound.org/2010/09/08/james-c-scott/trouble-view-above/
1•perused•25m ago•0 comments

Show HN: Git-ing Over it, learn Git like you'll use it IRL

https://git-ing-over-it.vercel.app/
1•k2maan•26m ago•0 comments

Just Dashboard open-source dashboard for managing your VPS

https://github.com/JustDashboard/Just-Dashboard
1•Wayy10•26m ago•0 comments

Manage Your Dotfiles with Nothing but Git

https://terminal.ninja/guides/manage-dotfiles/
1•ankitg12•32m ago•0 comments

Retroviral insertions contributed to divergence of human and chimpanzee brains

https://www.science.org/doi/10.1126/sciadv.aeg5791
2•gumby•36m ago•0 comments

Show HN: Dadgpt Open Source Halloween Costume

https://dadgptcostume.vercel.app/
2•johnpolacek•38m ago•0 comments

iPhone apps no better for privacy than Android, Oxford study finds (2021)

https://www.tomsguide.com/news/ios-android-app-privacy-parity
2•cisc•40m ago•0 comments

Backd / Discovery

https://backd.io
1•ahmedels•51m ago•0 comments

Five Qwen3.8-27B models match Fable 5 Using GVS5H Harness

https://github.com/slee-persis/GVS5H
47•rzk•53m ago•9 comments

My love/hate relationship with YAML has offspring

https://github.com/FyiurAmron/NanoYaml
1•sqvaard•53m ago•1 comments

Kevin Kelly – We don't want the best AI, we want the only AI

https://kevinkelly.substack.com/p/most-improbable-agent-of-you
1•Balgair•55m ago•1 comments

Show HN: A Truly Modular Keyboard

https://github.com/notaroomba/keybytes
1•NotARoomba•1h ago•1 comments

Kids Are Doomers Now

https://twitter.com/noriagent/status/2114201432781885792
2•theahura•1h ago•0 comments

Inline Viewer: Quest Diagnostics Incorporated 8-K 2026-10-21

https://www.sec.gov/ix?doc=/Archives/edgar/data/0001022079/000094787126000941/ss6979200_8k.htm
1•OptionOfT•1h ago•0 comments

Ask HN: Arc browser being deprecated. Which browser do you use?

1•galsapir•1h ago•1 comments

What Is an Ass Subtitle File?

https://subtitleops.com/blog/what-is-ass-subtitle-file
1•debo_•1h ago•0 comments

Daily Path – A minimal 1-minute visual memory challenge.Just a daily brain test

https://super-swan-a311d2.netlify.app/
1•iafacilproducti•1h ago•0 comments

Chasing the cognitive roots of our rectangular mindset (2004)

https://www.cdac.in/index.aspx?id=pdf_dkatre5
1•vismit2000•1h ago•0 comments

Anthropic's Claude Code Sandbox

https://aiweekly.co/alerts/anthropic-open-sources-claude-code-sandbox-under-apache-20
1•noobplus•1h ago•0 comments

Show HN: AgentSkill – Yara-L-Skill

https://github.com/ajaynyayapathi/yara-l-skill
1•nvajay•1h ago•0 comments

Calmstats • See which traffic pays

https://calmstats.com
1•ahmedels•1h ago•0 comments

Senior Copywriter

https://www.linkedin.com/in/matiasmobilia/
1•matiasmobilia•1h ago•0 comments

Show HN: Four-Leaf job matches that find you automatically

https://four-leaf.ai/jobs
2•frank_clover•1h ago•0 comments