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/

Pugilistic Florida billionaire plots law firm stake sale to private equity

https://www.ft.com/content/ac309e7b-b5eb-43d4-a668-d9090b2bceaa
1•petethomas•1m ago•0 comments

World Railway Map [pdf]

https://zhaoxusui.github.io/Earth_Transit.pdf
1•cainxinth•3m ago•0 comments

Show HN: I built free VoiceToText app with local LLM polish to save 60 min/day

https://vox.rizenhq.com/
1•serhiiklymenko•6m ago•0 comments

Waymo getaway a likely S.F. first

https://eedition.sfchronicle.com/infinity/article_popover_share.aspx?guid=c9428237-c353-4f22-a196...
1•tmp10423288442•14m ago•1 comments

NYU's 'Dean of Valuation': Elon Musk's SpaceX Isn't Worth $1.77T

https://www.wsj.com/video/series/wsj-take-on-the-week/nyus-dean-of-valuation-elon-musks-spacex-is...
1•doener•15m ago•0 comments

The Man Who Buried His Teacher

https://kitchencloset.com/realstuff/essays/the_man_who_buried_his_teacher/
1•bcRIPster•17m ago•1 comments

The Lump of Law Fallacy

https://artificialauthority.ai/p/the-lump-of-law-fallacy
1•paulpauper•18m ago•0 comments

US troops, families adjust to new normal of Iran war

https://www.reuters.com/business/aerospace-defense/us-troops-families-adjust-to-new-normal-iran-w...
2•petethomas•18m ago•0 comments

A for Effort: How AI Upends Copyright Law

https://srajagopalan.substack.com/p/a-for-effort-how-ai-upends-copyright
2•paulpauper•18m ago•0 comments

The Last of the D-Day Veterans

https://www.theatlantic.com/national-security/2026/06/dday-survivor-world-war-ii-history/687392/
3•paulpauper•19m ago•0 comments

TaskbarQuota – Real-time AI quota tracker in the Windows taskbar

https://github.com/zioder/TaskbarQuota
1•zioder•25m ago•0 comments

Chaotic fluctuations mark mental activity in task-based heart rate variability

https://www.nature.com/articles/s41598-026-43385-z
1•PaulHoule•28m ago•0 comments

White House considers buying Chagos Islands

https://www.telegraph.co.uk/us/news/2026/06/07/white-house-plan-chagos-islands/
3•JumpCrisscross•29m ago•1 comments

Consensus Time

https://xkcd.com/2594/
2•Velocifyer•29m ago•1 comments

Why no one cares about your Twitter posts (what I learned about the algo)

https://kylejeong.substack.com/p/why-no-one-cares-about-your-twitter
1•Kylejeong21•30m ago•0 comments

Control Your Avatar with Your Mind [video]

https://www.tiktok.com/@pieeg_official/video/7648791781416389910?is_from_webapp=1&sender_device=p...
1•Christiangmer•30m ago•0 comments

More bad advice from AI

https://orchidfiles.com/more-bad-advice-from-ai/
1•theorchid•33m ago•0 comments

Don Valentine Remembering:Sequoia-Stanford-Insights

https://www.gsb.stanford.edu/insights/sequoias-don-valentine-what-problem-are-you-solving
1•girl_web•39m ago•0 comments

AxonASP: Run Asp Classic on Linux, macOS, and Windows

https://github.com/guimaraeslucas/axonasp
1•lucasguimaraes•40m ago•0 comments

Show HN: A canvas-like workspace where you design your own knowledge archive

https://strata.ws
1•sf_ws•43m ago•0 comments

NY judge stays lawsuit seeking ownership of nearly 40k Bitcoin wallets

https://www.theblock.co/post/403910/ny-judge-stays-lawsuit-seeking-ownership-of-nearly-40000-bitc...
1•hippich•49m ago•0 comments

Living in the Time of Dying

https://www.livinginthetimeofdying.com
3•rendx•49m ago•1 comments

U.S. attorney accuses California of blocking voter roll audit amid legal battle

https://ktla.com/news/california/u-s-attorney-accuses-california-of-blocking-voter-roll-audit-ami...
2•Bender•50m ago•0 comments

SpaceX IPO deck says "Deploy orbital AI compute at scale"

https://www.sec.gov/Archives/edgar/data/1181412/000162828026040610/spacexfwp.htm
1•Lihh27•53m ago•2 comments

The Nerdy Escorts Cashing in on Silicon Valley's AI Boom

https://www.forbes.com/sites/annatong/2026/06/07/the-nerdy-escorts-cashing-in-on-silicon-valleys-...
1•hilux•55m ago•0 comments

Who Killed SAAS? .... Opra.ai? .... GitHub-native governance

https://github.com/sabbanis/opra.ai
1•sabbanis•57m ago•0 comments

Will artificial intelligence soon escape human control?

https://www.economist.com/science-and-technology/2026/06/07/will-artificial-intelligence-soon-esc...
1•andsoitis•59m ago•0 comments

NodeRadar Pro v1.0.0 (Freeware Network Utility)

https://github.com/PyPie-Studio/NodeRadar-Pro
2•tryku•1h ago•0 comments

Navy sailor, 25, is arrested for twisted ISIS plot to wreak mass havoc

https://www.dailymail.com/news/article-15881297/california-man-arreted-isis-terroist-plot-navy-sa...
2•Bender•1h ago•0 comments

New Power Banks Released by BMX with Safer Semi-Solid-State Batteries

https://www.androidauthority.com/bmx-semi-solid-state-battery-power-banks-3674759/
1•m463•1h ago•0 comments