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/

Tools to understand how content was created and edited

https://blog.google/innovation-and-ai/products/identifying-ai-generated-media-online/
1•7777777phil•52s ago•0 comments

Big Tech's AI Trap

https://crib.social/notice/B6SoGrSEip75oKAcGO
1•gslepak•1m ago•0 comments

Depression linked to bacterium-chemical interaction in personal care products

https://tech-paper.com/new-research-found-that-depression-may-begin-in-your-gut-when-a-common-bac...
1•cachecrab•2m ago•0 comments

The Sunk Cost Fallacy and How It Influences Our Decisions

https://almossawi.substack.com/p/the-sunk-cost-fallacy
1•anarbadalov•2m ago•0 comments

Andrej Karpathy Joins Anthropic

https://www.thevccorner.com/p/breaking-andrej-karpathy-joins-anthropic
2•vinni2•4m ago•0 comments

Google Antigravity CLI

https://antigravity.google/blog/introducing-google-antigravity-cli
2•jbirnick•4m ago•0 comments

Google introduces Gemini Spark, a 24/7 agentic assistant with Gmail integration

https://techcrunch.com/2026/05/19/google-introduces-gemini-spark-a-24-7-agentic-assistant-with-gm...
1•gfortaine•5m ago•0 comments

Show HN: Logbox – let Claude monitor your dev logs

https://github.com/struct-dot-ai/logbox
2•nimeshmc•6m ago•0 comments

Likely AI-generated short story won a major prize

https://twitter.com/nabeelqu/status/2056397504824963296
2•thatoneengineer•6m ago•0 comments

Show HN: Melogen – Generate MIDI melodies for free

https://www.melogen.ai/
1•squirrelon•8m ago•0 comments

Show HN: FastBack end – schema-first back end runtime with OpenAPI output

https://github.com/darula-hpp/fastbackend
1•ombedzi•9m ago•0 comments

The Gemini app becomes more agentic, delivering proactive, 24/7 help

https://blog.google/innovation-and-ai/products/gemini-app/next-evolution-gemini-app/
2•gfortaine•12m ago•0 comments

Disney Erased FiveThirtyEight

https://www.natesilver.net/p/disney-erased-fivethirtyeight
5•7777777phil•13m ago•0 comments

Which campaigns actually drive your leads?

https://www.digitalpilot.app/
1•iamjeylabrecque•14m ago•0 comments

Show HN: Coding agent where a second agent QAs every PR in a real browser

https://www.notesasm.com/
1•kavin_key•15m ago•0 comments

The missing men of the American marriage market

https://www.npr.org/sections/planet-money/2026/05/19/g-s1-122695/the-missing-men-of-the-american-...
2•sizzle•15m ago•0 comments

Scientists worried about de-extinction ethics as biotech co. touts breakthrough

https://www.rnz.co.nz/news/science-and-technology/595719/scientists-concerned-about-de-extinction...
3•billybuckwheat•16m ago•0 comments

Automate your computer using real code – not drag-and-drop blocks

https://github.com/hassananayi/codeonix
1•hassananayi•16m ago•1 comments

The Trouble with Emotion AI

https://www.computerworld.com/article/4171382/the-trouble-with-emotion-reading-ai.html
2•mikelgan•16m ago•1 comments

Lapdog: Local Coding Agent Assistant

https://lapdog.datadoghq.com/
1•astuyvenberg•17m ago•1 comments

Ruby vs. Java vs. TypeScript: Building Claude Cowork Docx Plugin

https://tanin.nanakorn.com/ruby-java-typescrip-claude-docx-plugin/
2•tanin•18m ago•0 comments

Mistral AI Python package compromised on PyPI [2026-05-12]

https://github.com/mistralai/client-python/issues/523
2•r2vcap•18m ago•0 comments

Finding Unpinned and Unpinnable GitHub Actions Across Your Org

https://www.pavel.gr/blog/finding-unpinned-and-unpinnable-github-actions
1•howlett•19m ago•0 comments

From Compute Overhang to Compute Crunch

https://secondthoughts.ai/p/the-ai-race
1•speckx•20m ago•0 comments

Chrome Dev Blog: Declarative Partial Updates (Interleaved HTML Streaming)

https://bsky.app/profile/did:plc:ilj6i6evo5xxl5iixp2y76nt/post/3mm7rxrubqs2v
1•avarev•20m ago•0 comments

Show HN: Search 67K .AI domains by AI-extracted tags and descriptions

https://ratemyaisite.com/explore
1•prolly97•22m ago•0 comments

Gemini Omni Flash is coming soon

https://gemini-omni-flash.net/
1•Jenny249•23m ago•0 comments

A case against the case against full-body MRI screening

https://medium.com/the-tideline/why-the-smartest-people-i-know-are-ignoring-their-doctors-on-full...
1•biancaleeman•24m ago•1 comments

TinyFish Vault: Your Web Agent Can Now Log in Without Touching Your Passwords

https://www.tinyfish.ai/blog/tinyfish-vault-your-web-agent-can-now-log-in-without-touching-your-p...
1•gargigupta•24m ago•0 comments

AI slop is flooding maths YouTube [video]

https://www.youtube.com/watch?v=mRO_QonhC2c
5•Imustaskforhelp•27m ago•1 comments