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/

RSS2BSKY

https://codeberg.org/nesges/rss2bsky
1•mooreds•1m ago•0 comments

Is it too soon to built software factories?

1•Bnowako•1m ago•0 comments

I Eavesdrop on Frog Conversations

https://www.nature.com/articles/d41586-026-01621-6
1•Brajeshwar•5m ago•0 comments

Icon Network shuts down on December 31, 2026

https://www.icon.foundation/blog/2026/final-date-set-for-sodax-migration-icon-network-to-shut-dow...
1•matonias•5m ago•1 comments

Lessons I Learned from Creating Searx

https://hister.org/posts/lessons-i-learned-from-creating-searx
2•theanonymousone•6m ago•0 comments

I was likely targeted by DPRK in a sophisticated developer malware campaign

https://blog.denv.it/posts/i-was-likely-targeted-by-dprk-in-a-sophisticated-developer-malware-cam...
1•denysvitali•7m ago•0 comments

Is AI flattening your team's creativity?

https://www.atlassian.com/blog/ai-at-work/is-ai-flattening-your-teams-creativity-heres-how-to-tell
1•ilalex•7m ago•0 comments

Show HN: Feynman AI research Assistant plugin for Obsidian

https://community.obsidian.md/plugins/feynman-research-agent
1•arogers17•10m ago•0 comments

Show HN: SynapCores – AI-native database (vector, graph, SQL, AutoML, LLM)

https://synapcores.com
1•SQLv2•12m ago•0 comments

Dimensions of the Geiger-Muller Tube Holder on the GGreg20_V3 Geiger Counter PCB

https://iot-devices.com.ua/en/ggreg20-v3-j305-tube-mounting-dimensions/
1•iotdevicesdev•12m ago•0 comments

Show HN: Complete Family Tree Viewer

https://github.com/erikshelley/complete-family-tree-viewer
2•shellerik•13m ago•0 comments

Persistent multiplayer state without chaos

https://packagemain.tech/p/persistent-multiplayer-state-without
1•der_gopher•16m ago•0 comments

Free Quick Developer Online Tools

https://quickfix.tools/developer/
1•mlongo•18m ago•1 comments

Founder of 7/11 Japan, Toshifumi Suzuki, has died at age 93

https://www.referenceforbusiness.com/biography/S-Z/Suzuki-Toshifumi-1932.html
3•L_Rahman•20m ago•1 comments

How the engineer behind Claude Cowork uses Claude

https://www.lennysnewsletter.com/p/how-i-ai-how-the-engineer-behind
1•simonebrunozzi•20m ago•1 comments

Evaluating Large Language Models in a Complex Hidden Role Game

https://arxiv.org/abs/2605.22826
1•Brajeshwar•22m ago•0 comments

Ask HN: How are you managing cloud cost?

https://getnable.com/
1•chaandannn•24m ago•0 comments

David Blackwells Enduring Legacy

https://simons.berkeley.edu/news/david-blackwells-enduring-legacy
1•nothrowaways•24m ago•0 comments

Nordtheme/Nord: An Arctic, north-bluish color palette

https://github.com/nordtheme/nord
1•ankitg12•25m ago•0 comments

Show HN: AutoMaxFix – controlled AI repair loop that won't eat your migrations

https://github.com/Noumenon-ai/AutoMaxFix
1•Noumenon_AI•25m ago•0 comments

I'm the CEO of Goldman Sachs. The AI Job Apocalypse Is Overblown

https://www.nytimes.com/2026/05/22/opinion/ai-job-crisis-goldman-sachs.html
8•ent101•26m ago•1 comments

After automation: what if the work of tasking LLMs stays?

https://every.to/p/after-automation
1•ersiees•26m ago•0 comments

Local USA Small Business AEO / Geo / SEO

https://localpicks.ai
2•lior_mechlovich•28m ago•1 comments

Show HN: Plonk – Spotlight Search style Python interpreter

https://github.com/JosephRedfern/plonk
1•JosephRedfern•31m ago•0 comments

Possession (1981 Film)

https://en.wikipedia.org/wiki/Possession_(1981_film)
3•mooreds•32m ago•0 comments

Modern passport systems leave little room for bureaucratic heroism

https://reason.com/2026/05/20/the-modern-passport-has-eliminated-fraud-forgery-and-heroes-who-can...
2•leephillips•33m ago•0 comments

Blind Waymo Users Revel in the Joy of Riding Alone

https://www.nytimes.com/2026/05/24/us/waymo-robot-taxis-blind.html
2•bookofjoe•33m ago•1 comments

Ask HN: Who uses Aurora Store here?

2•g-b-r•33m ago•1 comments

So, Where Does Next-Token Prediction Leave Us?

https://pop.rdi.sh/where-does-next-token-prediction-leave-us/
2•0x5FC3•35m ago•0 comments

Pope Leo XIV's Magnifica Humanitas, Markdown Version

https://github.com/cucho/magnifica-humanitas/blob/master/markdown/en.md
3•cucho•37m ago•1 comments