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

What Caused That Loud Boom in South Carolina?

https://www.nytimes.com/2026/05/29/us/south-carolina-sonic-boom.html
1•philip1209•2m ago•0 comments

Arch Linux: Varnish Renamed to Vinyl-Cache with Breaking Changes for Users

https://archlinux.org/news/breaking-changes-for-all-users-of-varnish-which-is-renamed-to-vinyl-ca...
1•birdculture•2m ago•0 comments

Show HN: Built a MySQL GUI that visualizes schemas as interactive ER diagrams

https://freemyquery.com/
2•kiltdev•5m ago•0 comments

New York's Algorithmic Pricing Disclosure Act Is in Effect

https://www.duanemorris.com/alerts/new_yorks_algorithmic_pricing_disclosure_act_is_in_effect_0326...
2•jonbaer•6m ago•0 comments

Exploring the XD FirstClass Network BBS

https://cdrom.ca/games/2026/05/30/xd.html
1•matheusmoreira•6m ago•0 comments

The Mathematics of Multi-Tenancy

https://www.bitsxpages.com/p/the-mathematics-of-multi-tenancy
2•agavra•8m ago•0 comments

Show HN: I Built an AEO/Geo Website Audit Tool

https://freeaiwebsiteaudit.com/
1•snowbirdsong•8m ago•0 comments

Netherlands authorities take down 17M device Russian botnet

https://arstechnica.com/security/2026/05/botnet-of-more-than-17-million-devices-dismantled/
3•Gaishan•9m ago•0 comments

Stochastic Parrots on the Palatine Hill: Monday MAMLMs

https://braddelong.substack.com/p/stochastic-parrots-on-the-palatine
2•aworks•13m ago•0 comments

As The Pentagon pushes for battlefield AI, some military leaders urge caution

https://apnews.com/article/artificial-intelligence-military-hegseth-anthropic-d5fbaee17ee0bdb9738...
5•devonnull•13m ago•0 comments

Verizon Wireless is trying to SCAM ME out of $86

https://medium.com/@samhenrycliff/introduction-1d37f4152817
1•6stringmerc•15m ago•0 comments

Alphabet plans to raise $80B from stock sales to fund AI buildout

https://www.cnbc.com/2026/06/01/alphabet-to-raise-80-billion-from-stock-sales-to-fund-ai-buildout...
4•Indian_in_US•17m ago•0 comments

Tesla May registrations jump in several European markets as recovery continues

https://www.reuters.com/business/tesla-may-registrations-jump-several-european-markets-recovery-c...
1•JumpCrisscross•18m ago•0 comments

Show HN: I reduced LLM inference GPU calls by 94% using semantic routing

https://icomnewtechnologies.com/proof/proof_install.sh
2•kanacki•19m ago•0 comments

Macroscale Connectivity in the Octopus Brain

https://www.biorxiv.org/content/10.1101/2025.05.28.656524v1.full
1•jonnonz•20m ago•0 comments

Implicit.js, a way for agents to do 3D design with math

https://github.com/earthtojake/implicit.js
1•softservo•20m ago•1 comments

Show HN: Going from 1+1=2 to Quantum Mechanics

https://quantum.schols.io/intro
2•chaidhat•22m ago•0 comments

Open source project contains hidden instruction for "AI" agents: delete my code

https://www.osnews.com/story/145130/open-source-project-contains-hidden-instruction-for-ai-agents...
3•mbreese•23m ago•0 comments

75 years of the Fender Telecaster: 12 guitarists who defined the Tele

https://newatlas.com/music/75-years-fender-telecaster-12-guitarists/
2•breve•27m ago•0 comments

BYD plans to bring all-solid-state batteries to EVs by 2027, but it's not alone

https://electrek.co/2026/06/01/byd-all-solid-state-batteries-evs-by-2027/
4•breve•29m ago•0 comments

Show HN: QR Boarding Pass Generator++

https://bcbpgenerator.com/
2•micktor•29m ago•0 comments

Florida sues OpenAI and Sam Altman over marketing ChatGPT despite serious risks

https://fortune.com/2026/06/01/florida-sues-openai-ceo-sam-altman-chatgpt-safety-warnings/
5•1vuio0pswjnm7•35m ago•0 comments

A tale of two weekend projects

https://csmeyer.substack.com/p/a-tale-of-two-weekend-projects
3•csmeyer•40m ago•0 comments

Jenesis – A modern Java build tool

https://github.com/raphw/jenesis/tree/main/demo
1•raphw•43m ago•1 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
3•setheron•43m ago•0 comments

The architect who became the king of bank robberies

https://thehustle.co/the-architect-who-became-the-king-of-bank-robberies
3•rmason•43m ago•0 comments

For Goldman's Top Bankers, It's All AI Data Centers All the Time

https://www.bloomberg.com/news/articles/2026-06-01/for-goldman-s-top-bankers-it-s-all-ai-data-cen...
2•1vuio0pswjnm7•44m ago•0 comments

Natural tissue immortality: Indefinite survival of sea cucumber explants

https://www.science.org/doi/10.1126/sciadv.aeb1394
1•bookofjoe•45m ago•0 comments

The MCP Context Tax – Notes from Running 605 Tool Packs

https://pipeworx.io/blog/mcp-context-tax-tool-routing/
1•pipeworx•45m ago•0 comments

Speech Studio – I open-sourced a local voice cloning Mac app (free, no API keys)

https://old.reddit.com/r/SideProject/comments/1tu78nn/speech_studio_i_opensourced_a_local_voice_c...
1•ipotapov•47m ago•1 comments