frontpage.
newsnewestaskshowjobs

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/

Medicare Will Pay $50k for Your Heart Attack. It Should Pay $100 to Prevent It

https://www.medpagetoday.com/opinion/second-opinions/123553?trw=no
2•brandonb•47s ago•0 comments

Tinycap, a tiny Mac screen recorder that makes PR-sized GIFs and MP4s

https://soleo.github.io/tinycap/
1•soleo•2m ago•0 comments

British intelligence misplaced 1000s of storage devices still can't say how many

https://www.theregister.com/security/2026/10/30/british-intelligence-agency-misplaced-thousands-o...
1•beardyw•2m ago•0 comments

Ghostly Cat's Head Nebula Lurks Within Sight of NASA's Hubble, Webb

https://science.nasa.gov/missions/hubble/ghostly-cats-head-nebula-lurks-within-sight-of-nasas-hub...
1•bookofjoe•2m ago•0 comments

Show HN: Claude Code guards built from my agent's repeated mistakes

https://github.com/hadiux0295/claude-code-mistake-guards
1•hunis•3m ago•1 comments

Krillion

https://krillion.io/
2•thunderbong•4m ago•0 comments

Anthropic Cracking Down on Video Game Rewrites

https://twitter.com/chasmmmmmmmmmmm/status/2116062991686721968
1•jacquesm•5m ago•0 comments

UI like Spiderverse

https://www.dnbls.com/blog/ui-at-12fps
1•unchar1•5m ago•0 comments

Show HN: Beolis – Manage your coding AI agents

https://beolis.com
2•fabioz•6m ago•0 comments

A Requiem for Bumble

https://residualthoughts.substack.com/p/a-requiem-for-bumble
1•whittle_away•6m ago•0 comments

Northflank PaaS: Security Incident - Disable/rotate all keys

https://status.northflank.com/cmvv0rn5a092f14rutwccodpp
1•scblzn•6m ago•0 comments

Bambu Studio MCP

https://dmontgomery40.github.io/bambu-printer-mcp/
1•malfist•6m ago•0 comments

Legal exploits may emerge at scale

https://www.felixringe.com/
1•nikwen•8m ago•1 comments

Does working less explain Europe's GDP per capita gap with America?

https://philippdubach.com/posts/us-europe-productivity-working-hours/
2•7777777phil•8m ago•0 comments

Gemini Computer Use API

https://ai.google.dev/gemini-api/docs/computer-use
1•thisisauserid•9m ago•0 comments

Neal Stephenson on AI and What Comes Next [video]

https://www.youtube.com/watch?v=Ii-aeW5pHPQ
3•justin66•9m ago•0 comments

Design the interface for functionality not familiarity

https://lapcatsoftware.com/articles/2026/10/10.html
2•dverlaeckt80•15m ago•0 comments

Autonomous drone chases a person through a forest without GPS, maps, or cloud

https://www.techspot.com/news/114361-watch-autonomous-drone-chase-person-through-forest-without.html
1•pseudalopex•16m ago•1 comments

Do At-Proto Users Know This Is Public?

https://melaniekat.com/blog/public-on-pds/
3•ibobev•17m ago•0 comments

Smart Audio for the Smart Home

https://computer.rip/2021-11-06-smart-audio-for-the-smart-home.html
1•ibobev•17m ago•0 comments

Show HN: Every Permutation of a Deck of Cards

https://mrrc.cc/52!/
1•mrrccc•17m ago•1 comments

Some Observations on Agent Coordination

https://align.lawyer/resources/agent-coordination
1•sam256•17m ago•1 comments

Mastering CSS Shapes with Border-Shape for Dynamic Designs

https://blog.master.dev/two-circles-one-connection-and-border-shape/
1•ibobev•18m ago•0 comments

VSCode delayed auto-updates don't apply to "trusted" publishers like Microsoft

https://code.visualstudio.com/updates/v1_123#_delayed-extension-auto-updates:~:text=Note%3A%20Thi...
2•sensanaty•18m ago•0 comments

Cisco gives engineer unlimited AI tokens to rewrite 98% of the company's code

https://www.tomshardware.com/tech-industry/big-tech/cisco-gives-27-year-old-engineer-unlimited-ai...
2•taubek•20m ago•0 comments

Mr. Robot: Red Wheelbarrow

https://archive.org/details/mrrobotredwheelb0000esma
1•tylerdane•20m ago•1 comments

Is a $100K salary good enough in your state?

https://salary-statistics.netlify.app/us
2•rlatkdrktkd•20m ago•0 comments

AI Panic Rhymes with Mercantilism, AI Payoff Anywhere? Food 4 Agile Thought 568

https://age-of-product.com/food-agile-thought-568-ai-panic/
1•swolpers•22m ago•0 comments

Show HN: Strim – a Swift/MLX model server for coding agents on Apple Silicon

https://github.com/megasoft1978/strim-engine
1•megasoft78•23m ago•0 comments

Local agent with multivendors, free, you own your context

https://safata.ai/
2•victorzhangeu•23m ago•1 comments