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

Comments

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

NASA Tests Magnetoplasmadynamic Thruster in Milestone for Crewed Mars Propulsion

https://theopenreader.org/Journalism:NASA_Tests_High-Power_Magnetoplasmadynamic_Thruster_in_Miles...
3•TORcicada•2m ago•0 comments

KarmaRace - Get Users - A reciprocity-based testing network.

https://karmarace.com
1•vicnas•3m ago•0 comments

Show HN: SSL certificate discovery from CT logs

https://www.tidelock.dev/ssl/certificate-discovery
1•vojtechrichter•6m ago•0 comments

We're shipping more code than ever, but understand less of it

https://www.fbritoferreira.com/blog/were-shipping-more-code-than-ever-we-understand-less-of-it
2•fbritoferreira•7m ago•0 comments

Why AI Agents are either the best or worst thing we've ever built [video]

https://www.youtube.com/watch?v=WnzR5aOElvw
1•mnem•11m ago•0 comments

Will human minds still be special in an age of AI?

https://www.theguardian.com/books/2026/may/03/will-human-minds-still-be-special-in-an-age-of-ai
1•giuliomagnifico•11m ago•0 comments

Show HN: I built a tool that helps predict HN front page success

https://wannalaunch.com/
2•margotli•12m ago•0 comments

Notes on the Vulnerable World Hypothesis

https://michaelnotebook.com/vwh/index.html
1•thunderbong•12m ago•0 comments

Show HN: A strict-maintenance fork of ingress-Nginx

https://github.com/forkline/ingress-nginx
1•pando85•17m ago•0 comments

Show HN: Event-Sourced Domain Modeling

https://www.esdm.io
1•goloroden•17m ago•0 comments

Show HN: I built a RISC-V emulator that runs DOOM

https://github.com/lalitshankarch/rvcore
2•Flex247A•18m ago•0 comments

Madagascar: AI Trainers – Arte.tv Documentary [video]

https://www.youtube.com/watch?v=Q7NZK6h9Tvo
1•greenchair•18m ago•0 comments

Intelligence And Compression (2025)

https://lewish.io/posts/intelligence-and-compression
1•optimalsolver•21m ago•0 comments

Welcoming Nimbus: Event-Driven Development for TypeScript

https://docs.eventsourcingdb.io/blog/2026/05/04/welcoming-nimbus-event-driven-development-for-typ...
1•goloroden•27m ago•0 comments

AI's Supply Crunch Is Here

https://www.economist.com/leaders/2026/04/30/the-ai-supply-crunch-is-here
1•hasheddan•27m ago•0 comments

Richard Dawkins and the Claude Delusion

https://plus.flux.community/p/richard-dawkins-and-the-claude-delusion
1•hansmayer•29m ago•0 comments

Ask HN: How to Sell as a Software Engineer?

2•vmsp•34m ago•0 comments

Hibana: Protocol Choreography for Rust

https://crates.io/crates/hibana
1•o8vm•38m ago•0 comments

Free Trial of HogPocket

https://apps.apple.com/us/app/hogpocket/id6760708657
1•omardakelbab1•41m ago•1 comments

Japan is deploying ultra-cheap cardboard drones built for swarm warfare

https://www.tomshardware.com/tech-industry/japan-is-deploying-ultra-cheap-cardboard-drones-built-...
2•giuliomagnifico•42m ago•0 comments

Ask HN: Can I trust GitHub not to use my code for LLM training?

1•tikotus•45m ago•0 comments

Startups challenge Apple over curbs on AI 'vibe coding' apps

https://www.ft.com/content/92c19ed5-2a76-4356-84e9-6c2725865eaa
1•JumpCrisscross•45m ago•0 comments

I freed a pool heat pump from an unencrypted Chinese cloud server

https://thomas-witt.com/blog/how-to-free-a-pool-heat-pump-from-an-unencrypted-chinese-server/
2•thomas_witt•45m ago•0 comments

What are tarpit ideas in the AI era?

1•maxim_bg•46m ago•3 comments

Iran war accelerates 'Regrexit' as wealthy UK expats weigh a return

https://www.ft.com/content/b57d34ac-807e-4106-b319-56f91c617a1c
1•JumpCrisscross•47m ago•0 comments

Show HN: How to build CLI for agents – Loxone CLI as an example

https://github.com/eisber/lox-cli
1•eisber•52m ago•0 comments

Universal Bug Discovery Algorithm

https://ir3-ethereum-4ca4c2.gitlab.io/posts/post-004/
1•machardmachard•52m ago•1 comments

Ask HN: Alternatives to VSCode?

2•baobabKoodaa•52m ago•5 comments

All Four Sentinel-1 Satellites Are Now Live

https://orbitaltoday.com/2026/05/03/all-four-sentinel-1-satellites-are-now-live-and-europes-earth...
2•cgeier•55m ago•0 comments

The Fog, a New Encrypted Cloud Platform, Rolls In

https://spectrum.ieee.org/the-fog-cloud-encryption
1•pseudolus•1h ago•0 comments