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

Comments

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

Nuclear Detonation: Weapons, Improvised Nuclear Devices

https://remm.hhs.gov/nuclearexplosion.htm
1•reconnecting•3m ago•0 comments

The Emerging Push to Extend Some US Benefits to IDF Soldiers

https://www.military.com/feature/2026/04/19/emerging-push-extend-some-us-benefits-idf-soldiers.ht...
1•cramsession•3m ago•0 comments

Databricks vs. Snowflake Weekly

https://claude.ai/public/artifacts/eb39f250-4869-4fb3-840d-d49620ee3b51
1•noashavit•6m ago•1 comments

How to remove One UI from a Samsung device?(2025)

https://tinygrab.com/how-to-remove-one-ui-from-a-samsung-device-note-this-is-likely-not-possible-...
1•rolph•6m ago•0 comments

I built a million-pixel canvas where strangers buy individual squares

https://pixel-wall-kofi-s1k3-production.up.railway.app/
1•matthewder•6m ago•0 comments

RLix: A scheduling layer for concurrent LLM RL

https://github.com/rlops/rlix
1•matt_d•7m ago•0 comments

AI as a Fascist Artifact – OSnews

https://www.osnews.com/story/144823/ai-as-a-fascist-artifact/
1•abdelhousni•7m ago•1 comments

It's time for the regular person to start testing local AI models

https://eeshans.com/writing/its-time-for-the-regular-person-to/
1•tipoffdosage904•7m ago•1 comments

Same algorithm, 16x faster: optimizing a vector search engine's hot path

https://dubeyKartikay.com/posts/sembed-engine-vector-search-performance/
1•birdculture•7m ago•0 comments

How the Kremlin's internet crackdown is frustrating Russians [video]

https://www.bbc.co.uk/news/videos/c75kpx2w452o
1•Cider9986•9m ago•0 comments

Mirror Field Operating System: a commit-boundary approach to AI governance

https://zippy-cucurucho-a24a3e.netlify.app/
1•tcook462•12m ago•0 comments

The Emerging Push to Extend Some US Benefits to IDF Soldiers

https://www.military.com/feature/2026/04/19/emerging-push-extend-some-us-benefits-idf-soldiers.html
1•tareqak•13m ago•0 comments

AI can cost more than human workers now

https://www.axios.com/2026/04/26/ai-cost-human-workers
3•Brajeshwar•15m ago•1 comments

Slay At Work – AI tool for freelancers to get more clients

https://slayatwork.com/
1•overplex•15m ago•1 comments

Self-Hosted Alternative to Telegra.ph

https://github.com/du82/nonograph
1•nohell•17m ago•0 comments

Show HN: Arktur – explore architecture and building history around you (iOS)

https://apps.apple.com/us/app/arktur/id6755520013
1•fjwater•19m ago•0 comments

FrontierSWE – Benchmark for long horizon coding tasks

https://github.com/Proximal-Labs/frontier-swe
1•pHequals7•22m ago•1 comments

The Underhanded C Contest

https://www.underhanded-c.org/
1•gregsadetsky•23m ago•0 comments

I learned Rust with rustlings, so I built the same thing for Go

https://github.com/Ichihiroy/golings
1•ichihiroy•23m ago•0 comments

Claude.md

https://gist.github.com/vinayakkulkarni/05954385ff86dd65ea8a21da6971add7
1•vinayakkulkarni•24m ago•0 comments

Show HN: <Hyper-frame> – an iframe element to embed any website

https://www.hyper-frame.art/
1•keepamovin•24m ago•0 comments

Checkers

https://checkers.page
1•I_hate_hn•24m ago•0 comments

Show HN: I replaced a memory app with two Markdown files and a Git repo

1•achiles•26m ago•0 comments

Media dinner shooting suspect wrote about targeting of administration officials

https://apnews.com/article/white-house-correspondents-dinner-trump-gunman-3cd1911ecc8a4f7d208ba5e...
2•m_nathan•26m ago•0 comments

I built an agent that breaks your AI agents before someone else does

https://fabraix.com/
3•zachdotai•27m ago•3 comments

The Effects of Emoji Use on Perceptions of Competence and Appropriateness

https://online.ucpress.edu/collabra/article/12/1/147309/217078/Emojis-at-Work-The-Effects-of-Emoj...
1•geox•28m ago•0 comments

NeurotecIO – Your Study AI Assistant

https://neurotec.io
1•areeshalam•28m ago•0 comments

Ask HN: Are interview questions getting harder?

2•mosfets•29m ago•1 comments

Waymo says expecting driverless taxis to stay out of bike lanes is unrealistic

https://road.cc/news/driverless-taxis-veering-into-cycle-lanes-normal-practice-says-waymo
12•randycupertino•29m ago•2 comments

High-Precision Software Sabotage 5 Years Before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
1•AndrewDucker•31m ago•0 comments