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/

DoltLite: A SQLite fork with Git-style version control, built with 2k agent PRs

https://www.dolthub.com/blog/2026-08-31-doltlite-beta/
1•lbw1215•5m ago•0 comments

Icelandic voters reject a resumption of EU membership negotiations

https://www.euronews.com/my-europe/2026/08/31/icelands-no-vote-deals-a-blow-to-brussels-security-...
1•delichon•8m ago•0 comments

Show HN: I rebuilt tank game with new style

https://www.battle-tank.com/
1•dutay05•10m ago•0 comments

Show HN: Chaosword – A Crossword?

https://chaosword.com
1•ghosts_•14m ago•0 comments

Breaking down Amazon's mega dropdown (2013)

https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown
1•TheAceOfHearts•24m ago•0 comments

Kubernetes v1.37: Pod Certificates and Cluster Trust Bundles

https://kubernetes.io/blog/2026/08/28/kubernetes-v1-37-pod-certificates-and-cluster-trust-bundles/
1•ahmedtd•28m ago•0 comments

Retatrutide – people risk the gray market for the newest weight-loss drug

https://www.theguardian.com/science/2026/aug/31/retatrutide-weight-loss-drug-gray-market
2•andsoitis•30m ago•0 comments

The Big Leak (1987)

https://www.americanheritage.com/big-leak
1•jhide•30m ago•0 comments

2004 RuneScape fit a multiplayer RPG into 56k dial-up

https://jkm.dev/posts/how-2004-runescape-fit-a-multiplayer-rpg-into-56k-dialup/
3•fagnerbrack•30m ago•1 comments

AWS Activate Credits

1•m4sk1994•30m ago•0 comments

Deadpan Photography: Enjoying the Pretence

https://photoni.st/index.php/2026/07/12/deadpan-photography-enjoying-the-pretence/
1•NaOH•32m ago•0 comments

Papercut SMTP – The Simple Desktop Email Server

https://github.com/ChangemakerStudios/Papercut-SMTP
1•l8rlump•32m ago•0 comments

Why 1M context windows won't solve agent memory (and a protocol that does)

https://github.com/zackemannen81/docs-first_continuity-protocol
1•mrwhite81•32m ago•0 comments

Release Release v26.8.1.2041-LTS · ClickHouse/ClickHouse

https://github.com/ClickHouse/ClickHouse/releases/tag/v26.8.1.2041-lts
1•kyisaiah47•34m ago•0 comments

The extraordinary rise of Miami's economy

https://www.economist.com/finance-and-economics/2026/08/31/the-extraordinary-rise-of-miamis-economy
1•andsoitis•41m ago•0 comments

OpenAI to Cut Off AI Models for SpaceX-Owned Cursor

https://www.reuters.com/business/media-telecom/openai-end-partnership-with-spacexs-cursor-2026-08...
4•m463•48m ago•1 comments

Young Builder Society Microgrant

https://www.youngbuildersociety.com
1•audreyfei•1h ago•0 comments

Linus Torvalds' uEmacs – the editor he has used since the 1980s

https://github.com/torvalds/uemacs
3•oumua_don17•1h ago•0 comments

Getting over the Nebulosity of Agents

https://text-incubation.com/getting-over-the-nebulosity-of-agents?2
1•krrishd•1h ago•0 comments

Inworld TTS Open Evaluation Toolkit: Reproducible TTS Evals

https://inworld.ai/blog/introducing-inworld-tts-open-evaluation-toolkit
5•rogilop•1h ago•0 comments

FDOT de-flocks: Automatic license plate reader permits revoked across Florida

https://www.msn.com/en-us/news/other/fdot-de-flocks-automatic-license-plate-reader-permits-revoke...
1•smalltorch•1h ago•0 comments

Arise – Agentic Runtime Identity Security Enforcement

https://requestrocket.com/blog/arise-api-gateway-isnt-ready
1•geoicons•1h ago•0 comments

Mu/TH/UR 6000 – An anonymous AI terminal styled as a 1979 mainframe

https://mu7hur.com/
1•pinkroro•1h ago•0 comments

New party school rankings are out. See where your school is

https://www.usatoday.com/story/sports/ncaaf/2026/08/31/best-party-schools-usa-new-2027-college-pa...
1•makerdiety•1h ago•0 comments

Edge City

https://www.edgecity.live
2•audreyfei•1h ago•0 comments

When declaring an incident becomes everyone's favorite workaround

https://greatcircle.com/blog/2026/08/11/declaring-incidents-for-side-effects/
2•bobbiechen•1h ago•0 comments

Apple Says OpenAI Is Destroying Evidence in Trade Secrets Case

https://www.bloomberg.com/news/articles/2026-08-31/apple-says-openai-is-destroying-evidence-in-tr...
5•sbulaev•1h ago•0 comments

Janet Verison 1.42.0 Out

https://github.com/janet-lang/janet/releases/tag/v1.42.0
3•veqq•1h ago•0 comments

LangLib: Esoteric Programming Languages, Formally

https://github.com/ilyasergey/langlib
2•matt_d•1h ago•0 comments

A video editor built for your codex/Claude Code

https://www.usekinara.com/
1•ebaad96•1h ago•2 comments