frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Ferguson's Law: Debt Service, Military Spending, & Fiscal Limits of Power (2025)

https://www.hoover.org/research/fergusons-law-debt-service-military-spending-and-fiscal-limits-power
1•SanjayMehta•2m ago•0 comments

Hubble spotted a 'dark galaxy' that's at least 99.9% dark matter

https://www.science.org/content/article/hubble-spotted-dark-galaxy-s-least-99-9-dark-matter
1•rbanffy•3m ago•0 comments

Why Mars Astronauts Need More Than Just Space Greenhouses

https://www.universetoday.com/articles/why-mars-astronauts-need-more-than-just-space-greenhouses
1•rbanffy•3m ago•0 comments

Show HN: HushWork – A focus environment with ambient sounds and timer in one tab

https://hushwork.app
1•pgebski•4m ago•1 comments

Clonezilla Live (3.3.1-35)

https://sourceforge.net/p/clonezilla/news/2026/02/stable-clonezilla-live-331-35-released/
1•doener•5m ago•0 comments

Mazda Onboard Carbon Capture

https://newsroom.mazda.com/en/publicity/release/2025/202511/251117b.html
1•wolfi1•6m ago•1 comments

Why NVLink Is Nvidia's Secret Sauce Driving a 10x Performance Boost in MoEs

https://www.hpcwire.com/2026/02/23/why-nvlink-is-nvidias-secret-sauce-driving-a-10x-performance-b...
1•rbanffy•6m ago•0 comments

Pilot Human Factors Visualization

https://www.phase-aero.app/en/timeline
1•jcchrrr•7m ago•0 comments

Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering

https://github.com/zmactep/pymol-rs/releases/tag/v0.1.0
1•zmactep•10m ago•0 comments

A random color on every reload

https://randomcolour.com/
1•liquid99•15m ago•0 comments

Show HN: I built an AI that turns emailed PDFs into ledger entries in 60s

https://baguno.app
1•lakma•15m ago•1 comments

Why etcd breaks at scale in Kubernetes

https://learnkube.com/etcd-breaks-at-scale
1•mweibel•17m ago•0 comments

Rejecting Reality in the Age of AI

https://little-flying-robots.ghost.io/rejecting-reality-in-the-age-of-ai-2/
1•speckx•18m ago•0 comments

Local-first desktop utility to migrate chats from ChatGPT to Gemini

1•transferllm•19m ago•0 comments

Show HN: Autobs – Translate "fix: null ptr" into "Enhanced platform stability"

https://autobs.coolapso.sh
1•coolapso•21m ago•0 comments

Rerun 0.30: Plot Any Scalar and Custom GPU Visualizers

https://github.com/rerun-io/rerun/releases/tag/0.30.0
4•Tycho87•22m ago•1 comments

Bun v1.3.10

https://bun.com/blog/bun-v1.3.10
1•tosh•23m ago•0 comments

Cheaper and greener way to make high-quality graphene from waste peanut shells

https://www.unsw.edu.au/newsroom/news/2026/02/Peanut-waste-high-quality-graphene
1•jbotz•23m ago•0 comments

The Bet on Juniors Just Got Better

https://tidyfirst.substack.com/p/the-bet-on-juniors-just-got-better
1•futurecat•23m ago•0 comments

Show HN: Neo – Turn any web app into an API by capturing browser traffic

https://github.com/4ier/neo
1•4ier•26m ago•0 comments

Show HN: Grubl – AI and structured recipe generation

https://grubl.app
1•RossMorgan•26m ago•0 comments

Show HN: Better Hub – A better GitHub experience

https://www.better-hub.com/
3•bekacru•27m ago•0 comments

Norwegian state newspaper investigate AI psychosis

https://www.nrk.no/direkte/xl/ki-psykose_-vi-undersokte-hvordan-chatbotter-svarer-1.17770908
1•hallvard•29m ago•0 comments

Little about software engineering has changed over past last three months

https://twitter.com/Grady_Booch/status/2026736492488568955
1•tosh•30m ago•0 comments

Axelera: Cutting-edge hardware and software platform for accelerating inference

https://axelera.ai
1•amelius•33m ago•0 comments

WTF Happened in 2025?

https://wtfhappened2025.com/
2•myk-e•34m ago•1 comments

OpenClaw broadcasts its screen while I'm at the gym [video]

https://www.instagram.com/reel/DVN2zfSEXJj/
1•nomilk•36m ago•1 comments

Asura: Looped Language Models done better

https://neel04.github.io/my-website/projects/asura/
1•n7g•37m ago•1 comments

Facebook is now the EU law maker

https://thegoodlobby.eu/watchdogs-call-to-drop-ex-meta-lobbyist-as-digital-omnibus-rapporteur/
2•zoobab•38m ago•0 comments

Show HN: A Confidence Calibration Game

https://www.calibrategame.com/
1•SleepyJack•38m ago•0 comments