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/

Why are all LLMs obsessed with Japanese culture?

https://arxiv.org/abs/2604.21751
1•surprisetalk•1m ago•0 comments

Show HN: An AI workspace with shared procedural memory as reusable skills

https://github.com/TheWariend/CleanSlate
1•maaaz•2m ago•0 comments

Laid off 60 days in: what is the tech industry doing to developers?

https://samueleast.co.uk/playground/laid-off-from-plex-60-days-in
1•CharlesW•2m ago•0 comments

Cisco open sources tool for detecting AI agents on hacking sprees

https://www.theregister.com/security/2026/10/28/cisco-open-sources-tool-for-detecting-ai-agents-o...
1•DemiGuru•4m ago•0 comments

Pine Tree Riot of 1772

https://en.wikipedia.org/wiki/Pine_Tree_Riot
1•burnt-resistor•4m ago•0 comments

Meta's Muse Realtime Avatar turns any image into a talking AI character

https://research.meta.ai/blog/bringing-your-muse-to-life
2•javiercr•5m ago•0 comments

Tesla Semi catches fire on I-880

https://electrek.co/2026/10/28/tesla-semi-fire-i-880-hayward-no-crash/
2•metadat•7m ago•0 comments

ContextWatcher, a Rust context compiler and KV-cache optimizer for agents

1•gionag•8m ago•0 comments

Artificial Analysis Intelligence Index v5

https://artificialanalysis.ai/#intelligence-efficiency-tabs
1•thefourthchime•8m ago•1 comments

It doesn't matter what's right, it matters what's left

https://minhanhday.substack.com/p/it-doesnt-matter-whats-right-it-matters
2•mday404•8m ago•0 comments

Anthropic now lets Claude users jump out of plane without parachute

https://www.theregister.com/ai-and-ml/2026/10/27/anthropic-now-lets-claude-users-jump-out-of-plan...
1•DemiGuru•9m ago•0 comments

Show HN: I made an interactive Sakura tree that runs in the browser

https://nozomi-xi.vercel.app
2•mohabbat_vlx•9m ago•0 comments

Musk's xAI offered to buy homes if they don't sue over datacentre noise

https://uk.news.yahoo.com/elonville-mississippi-residents-musk-xai-113001859.html
3•nephihaha•9m ago•0 comments

The New Age of Reading

https://www.newyorker.com/magazine/2026/10/26/james-daunt-profile
3•Amorymeltzer•9m ago•0 comments

A world that no longer exists: preserving family legacy and travel experience

https://arceri.netlify.app/?lang=en
2•tcsenpai•11m ago•2 comments

A safety checklist in the prompt didn't measurably help frontier models

https://theagentforge.io/lab/4/results
2•djayamaha•11m ago•0 comments

China rushes to shore up markets as AI trade sours

https://www.ft.com/content/2bb82c45-04b2-4ccc-9002-f54483fb044e
1•JumpCrisscross•11m ago•0 comments

Show HN: Chopstick – Mac notch widgets built by your coding agent

https://chopstick.sh/
2•joshuaknauber•12m ago•0 comments

Show HN: Parley – coding-agent sessions that collaborate over IRC

https://github.com/colinsurprenant/parley
2•colinsurprenant•12m ago•1 comments

Studio 3e8: Mesa 1, Metal 3D Printer

https://www.studio3e8.com/post/studio-3e8-launch
2•danthompson41•13m ago•0 comments

Is It O.K. To Be a Luddite?

https://archive.nytimes.com/www.nytimes.com/books/97/05/18/reviews/pynchon-luddite.html
2•lifeisloving•13m ago•0 comments

Show HN: Algeon – Compose GPU graph, vector, and ML algorithms in SQL

https://github.com/algeon-dev/algeon
2•morristai•13m ago•0 comments

Gta.js – The Original 1997 Grand Theft Auto Engine in JavaScript and WebG

https://gtajs.wtf/#demo
2•rmason•14m ago•0 comments

Opus 5.5 is awesome

https://alexkras.com/opus-5-5-is-awesome/
3•akras14•14m ago•0 comments

The AI cost of JavaScript frameworks

https://nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks/
2•notfried•14m ago•0 comments

Show HN: Arketum – MCP server that makes coding agents stop for human approval

https://www.npmjs.com/package/@rlabs-cl/arketum
1•rlabbe•14m ago•0 comments

Keep the Changelog, Avoid the Conflicts

https://devenv.sh/blog/2026/10/28/keep-the-changelog-avoid-the-conflicts/
1•domenkozar•15m ago•0 comments

Psychometrics, vaccines, meat, Kowloon, luggage destruction

https://dynomight.net/shorts-8/
1•surprisetalk•16m ago•0 comments

Size matters: South Korea spared iPad mini image's potentially offensive gesture

https://appleinsider.com/articles/26/10/28/size-matters-south-korea-spared-ipad-mini-images-poten...
1•docdeek•16m ago•0 comments

GPU vs. CPU. How to Cut Live Streaming and AI Processing Costs?

https://www.red5.net/blog/gpu-vs-cpu-how-to-cut-live-streaming-ai-processing-costs/
1•mondainx•17m ago•0 comments