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/

Spherical Cow

https://en.wikipedia.org/wiki/Spherical_cow
1•kaycebasques•15s ago•0 comments

Ultima Online Retrospective – The Last Hurrah [video]

https://www.youtube.com/watch?v=35SKawn2SDI
1•danso•4m ago•0 comments

MiMo-v2.6-RL-OSS dataset

https://huggingface.co/datasets/XiaomiMiMo/MiMo-V2.6-RL-oss
1•miyuru•6m ago•0 comments

New in Chrome 154: iframes that automatically resize themselves to their content

https://www.bram.us/2026/09/23/responsive-iframes/
1•eustoria•6m ago•0 comments

Improving site performance by shipping more CSS

https://github.blog/engineering/architecture-optimization/improving-site-performance-by-shipping-...
1•torutofu•6m ago•0 comments

It all fits: wgpu, Metal, Vulkan, WebGL, WASM, WebGPU, Luau [video]

https://www.youtube.com/watch?v=CgcS2OxcV6k
1•cs1996•8m ago•1 comments

Show Keystrokes – Keystroke and Shortcut Visualizer Custom Element

https://show-keystrokes.netlify.app/
1•eustoria•8m ago•0 comments

How Work Network Works: A Multi-Activity Mobile Rewards Platform

https://work-networks.com/how-work-network-works.html
1•onlineiqbal•9m ago•0 comments

Codetta: High-Capacity, Keyless, and Undetectable Multi-Agent Collusion

https://arxiv.org/abs/2609.28900
1•sbulaev•9m ago•0 comments

Minecraft random seed world record (with a particle accelerator) [video]

https://www.youtube.com/watch?v=Kd5-1IXqiDQ
1•Zusor•9m ago•0 comments

Understanding the Impact of LLM Watermarking on AI Agent Behavior

https://www.lasso.security/blog/the-provenance-tax-understanding-the-impact-of-llm-watermarking-o...
3•nisosguy•11m ago•0 comments

Meta Expands Private Processing Confidential Computing to AI Glasses

https://www.unite.ai/meta-expands-private-processing-confidential-computing-to-ai-glasses/
1•eustoria•11m ago•0 comments

OpenAI Accuses Plaintiffs' Lawyers of Funding and Laundering Copyright Evidence

https://www.techdirt.com/2026/09/25/openai-accuses-plaintiffs-lawyers-of-paying-for-hiding-and-th...
1•m-hodges•11m ago•0 comments

No Blind Trust in AI-Generated Code

https://wearecommunity.io/communities/jacov/articles/8709
1•kvolque•18m ago•1 comments

CEO of Mistral: AI is software. It can be controlled

https://www.lemonde.fr/en/economy/article/2026/09/24/arthur-mensch-ceo-of-french-start-up-mistral...
5•thibaut_barrere•24m ago•2 comments

The Discovery Tax: Why Coding Agents Waste 2,500 Tokens Before Writing Code

https://blog.jarv.dev/the-discovery-tax
4•runtooldev•28m ago•0 comments

Google's orbital AI data center test packs four TPUs and 1,000W of solar power

https://www.tomshardware.com/tech-industry/data-centers/google-is-blasting-an-experimental-ai-dat...
3•pseudolus•29m ago•1 comments

How to Freelance Now?

4•Alexadar•30m ago•0 comments

Typed-lm: a Rust jev open source alternative

https://github.com/neurono-ml/typed-lm
2•andrelgcclaudin•32m ago•1 comments

LaserActive

https://en.wikipedia.org/wiki/LaserActive
3•tosh•33m ago•0 comments

Catching Rogue Agents in Real Time with Synchronous Control Monitoring

https://max.ax/writing/synchronous-control-monitoring/
2•k5hp•34m ago•0 comments

Enabling the next-generation trait solver on nightly

https://blog.rust-lang.org/2026/08/21/enabling-next-solver-on-nightly/
2•bucket2015•36m ago•0 comments

What Does Your Data Reveal About Sports Betting Apps? Help ProPublica Find Out

https://projects.propublica.org/sports-betting-uploader/
1•beatrixlockwood•37m ago•0 comments

Gameboy Macro (2016)

https://www.instructables.com/Gameboy-Macro/
1•tosh•38m ago•0 comments

Maze Toys

https://maze.toys
1•momentmaker•38m ago•0 comments

In Silicon Valley, the End of Humanity Has Always Been Part of the Plan

https://gizmodo.com/in-silicon-valley-the-end-of-humanity-has-always-been-part-of-the-plan-200081...
2•poopcat•39m ago•0 comments

How to Feel Good

https://evanjconrad.com/posts/how-to-feel-good
1•momentmaker•39m ago•0 comments

Many surgical interventions are little better than placebo

https://www.economist.com/science-and-technology/2026/09/23/many-surgical-interventions-are-littl...
1•sohkamyung•43m ago•0 comments

The computer hacker who tried to take down Man City

https://www.bbc.co.uk/sport/football/articles/cwywld5v28jo
2•birdmania•46m ago•1 comments

The use of humor in depression: An integration of benefits and risks

https://www.sciencedirect.com/science/article/pii/S0272735826000905?via%3Dihub
1•bookofjoe•47m ago•0 comments