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•10mo 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/

Warner Bros signs $110B deal with Paramount

https://www.reuters.com/sustainability/sustainable-finance-reporting/warner-bros-signs-110-billio...
1•Vitamin_Sushi•27s ago•0 comments

The Distillation Problem, It's Not a Cold War, It's Napster

https://www.stickybit.com.br/distillation-napster-en/
1•TiMagazine•59s ago•0 comments

Is This Waymo a Better Person Than You?

https://www.newyorker.com/humor/shouts-murmurs/is-this-waymo-a-better-person-than-you
1•mitchbob•1m ago•1 comments

Lasse Collin

https://liberapay.com/Larhzu/
1•pinkmuffinere•1m ago•0 comments

Ask HN: Apple locked me out of the developer program for a technical error

1•LoganDark•1m ago•0 comments

IronCurtain: A Personal AI Assistant Built Secure from the Ground Up

https://www.provos.org/p/ironcurtain-secure-personal-assistant/
1•jmort•2m ago•0 comments

Instant DB clones for AI agents

https://contextbits.com/
1•classx•4m ago•1 comments

Should everyone be taking statins?

https://www.worksinprogress.news/p/should-everyone-be-taking-statins
1•salonium_•4m ago•0 comments

Even with Coding Agents, You Still Can't Recreate StackOverflow in a Weekend

https://orischwartz.com/posts/even-with-fleet-of-coding-agents.html
1•fleaflicker•4m ago•0 comments

DOS Memory Management

http://www.os2museum.com/wp/dos-memory-management/
2•supermatou•5m ago•0 comments

Show HN: AO – Deploy Python agents without managing production infrastructure

https://aodeploy.com
1•mrtng•7m ago•0 comments

Show HN: DumpCleaner – Native macOS/iPadOS app to filter SQL dumps

https://dumpcleaner.app
1•marcelglaeser•8m ago•1 comments

Why every AI coding breakthrough feels normal within 90 days

https://www.augmentcode.com/blog/why-every-ai-coding-breakthrough-feels-normal-within-90-days
2•knes•8m ago•0 comments

Altadena asked Edison to bury lines. That could cost some fire victims $40k

https://www.latimes.com/business/story/2026-02-17/edison-altadena-residents-balk-at-costs-bury-po...
1•PaulHoule•9m ago•0 comments

Instant LLM Updates with Doc-to-LoRA and Text-to-LoRA

https://pub.sakana.ai/doc-to-lora/
2•yogthos•9m ago•0 comments

Launching the Agent Protocols Tech Tree

https://lil.law.harvard.edu/blog/2026/02/23/agent-protocols-tech-tree/
1•mixedmath•10m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•hackernj•10m ago•0 comments

Making Iceberg Work for Operational Data

https://materialize.com/blog/making-iceberg-work-for-operational-data/
1•pranshum•11m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
1•ohjeez•11m ago•0 comments

Why every scientist needs a librarian

https://www.nature.com/articles/d41586-026-00568-y
2•gnabgib•13m ago•0 comments

Against Land Value Capture

https://pedestrianobservations.com/2026/02/25/against-land-value-capture/
1•amadeuspagel•15m ago•0 comments

Show HN: OpenAI to Buy Babuger.com for $1B? (Just Kidding, I Built It)

1•lyuata•15m ago•0 comments

Coherence at 300K

https://www.symmetrybroken.com/coherence-at-300-kelvin/
1•riemannzeta•16m ago•0 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
10•shmublu•18m ago•1 comments

Hyprland 0.54 Released as a "Massive" Update to This Wayland Compositor

https://www.phoronix.com/news/Hyprland-0.54-Released
1•mikece•20m ago•0 comments

Will magnesium supplements help you relax?

https://www.economist.com/science-and-technology/2026/02/27/will-magnesium-supplements-help-you-r...
2•vinni2•21m ago•4 comments

Show HN: Dashboard – a runtime plugin-based desktop widget system for Linux

https://duh-dashboard.github.io
1•gzson79•24m ago•1 comments

I never estimate on the call. Best engineering rule I made for myself

https://read.perspectiveship.com/p/automatic-rules
2•birdculture•24m ago•0 comments

FBI was hacked and 100tb from the Epstein file deleted [pdf]

https://www.justice.gov/age-verify
4•Aeroi•24m ago•2 comments

Show HN: Night Watch, zero-dependency DevOps agent

https://github.com/samirkhoja/night-watch
1•sudoapps•25m ago•0 comments