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

Comments

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

Show HN: Courtyard – Open-source macOS app for local MLX fine-tuning Text

https://github.com/Mcourtyard/m-courtyard
1•tuwenbo0120•1m ago•0 comments

Anthropic faces Friday deadline in Defense AI clash with Hegseth

https://www.cnbc.com/2026/02/24/anthropic-ai-hegseth-spying-defense.html
3•gslin•8m ago•0 comments

Looking Forward to PGConf India in Bengaluru in March

https://techcommunity.microsoft.com/blog/adforpostgresql/microsoft-at-pgconf-india-2026/4496182
1•clairegiordano•11m ago•0 comments

Canva expands professional creative ecosystem with Cavalry

https://www.canva.com/newsroom/news/cavalry/
1•flashblaze•12m ago•0 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
1•jsomers•16m ago•0 comments

Intel Strikes Deal with a Chip Startup Its CEO Invested In

https://www.nytimes.com/2026/02/24/technology/intel-sambanova-ceo-lip-bu-tan.html
2•osnium123•18m ago•0 comments

MBC v0.2.0 – AI agent orchestration for Laravel (security hardening)

https://github.com/etazza2025/laravel-mbc
1•undergracelabs•19m ago•1 comments

Learning from Structure: Discord's Entity-Relationship Embeddings

https://discord.com/blog/learning-from-structure-discords-entity-relationship-embeddings
1•throwaway314155•23m ago•0 comments

An Elephant Is Blind Without the Hairs on Its Trunk

https://www.nytimes.com/2026/02/12/science/elephant-whiskers.html
1•bookofjoe•24m ago•1 comments

RFC Explorer – Explore over 9000 RFCs

https://rfcexplorer.net/
1•xillb•24m ago•0 comments

We Need to Stop Asking "Is This Better Than That"

https://doppelgangerdev.com/docs/software-isn-t-a-competition-it-s-a-map-of-our-frustrations
1•asernasr•27m ago•1 comments

Show HN: Built a news aggregator that collect AI news around the world

https://vvsearch.com/workspace/news-terminal
1•raugen•32m ago•0 comments

Will artificial snow save the ski industry in the long run, or curse it?

https://theconversation.com/will-artificial-snow-save-the-ski-industry-in-the-long-run-or-curse-i...
1•PaulHoule•32m ago•0 comments

Finding 100 Kernel Bugs Using Agent Swarms

https://ydinkin.substack.com/p/200-kernel-bugs-in-30-days
1•itkeman•32m ago•0 comments

Show HN: I made a 4D version of DOOM

https://hyperhell.itch.io/hyperhell
1•chronolitus•33m ago•0 comments

Tim Cook Warned by CIA That China Could Move on Taiwan by 2027

https://www.macrumors.com/2026/02/24/tim-cook-warned-by-cia-china-taiwan-2027/
4•mgh2•34m ago•1 comments

Show HN: Declare AI – open standard for AI content disclosure

https://declare-ai.github.io/declare-ai/declare-ai-devteam.html
1•BetterToBest•35m ago•1 comments

Apple Set a European iPhone Sales Record Last Year

https://www.macrumors.com/2026/02/24/apple-european-iphone-sales-record-2025/
1•mgh2•35m ago•0 comments

Show HN: Limits – Control layer for AI agents that take real actions

https://limits.dev
7•thesvp•35m ago•0 comments

Build a free job-winning resume and cover letter in minutes

https://resumecv.pro
1•pivlu•38m ago•1 comments

Data center outlook: half of 2026 pipeline may not materialize

https://www.sightlineclimate.com/research/data-center-outlook
1•toomuchtodo•39m ago•0 comments

Western Digital Sold Out All 2026 Hard Drive Production as AI Centers Scramble

https://247wallst.com/investing/2026/02/18/western-digital-sold-out-all-2026-hard-drive-productio...
1•vmg12•40m ago•0 comments

Being a Luddite Is Cool, but Have You Seen the Tapestries New Looms Are Making?

https://www.mcsweeneys.net/articles/being-a-luddite-is-cool-and-all-but-have-you-seen-the-hilario...
2•stmw•44m ago•0 comments

Show HN: Claude Automation Toolkit – 6 Python scripts for AI task automation

https://github.com/indoor47/summarize-docs
1•adamrunboy•45m ago•0 comments

The Weapons of Stargate [video]

https://www.youtube.com/watch?v=gMt6pzC_0dI
2•Kye•49m ago•0 comments

Capybara: A Unified Visual Creation Model

https://github.com/xgen-universe/Capybara
3•modinfo•51m ago•1 comments

secrets

https://github.com/umputun/secrets
1•indigodaddy•51m ago•0 comments

Programming is dead: a letter to junior and mid-level engineers

https://medium.com/@dbounds/programming-is-dead-a-letter-to-junior-and-mid-level-engineers-5b630f...
4•RobSpectre•51m ago•3 comments

Intelligence Yield: Efficiency of Frontier Models on METR Tasks

https://bmdragos.github.io/intelligence-yield/
2•gnopercept•52m ago•1 comments

Show HN: NeoShift BI – Build AI-analyzed data dashboards in minutes

2•DonWono•53m ago•0 comments