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/

Show HN: RAIF – an experimental structured I/O format for LLMs

https://github.com/skrrt-sh/raif-standard
1•truehazker•11s ago•0 comments

Abu Fanous

https://en.wikipedia.org/wiki/Abu_Fanous
1•joebig•2m ago•0 comments

Zinnia: A modular 64-bit Unix-like kernel written in Rust

https://zinnia-os.org/
1•mrunix•4m ago•0 comments

Brains And LLMs Converge On A Shared Conceptual Space Across Different Languages

https://arxiv.org/abs/2506.20489
2•optimalsolver•6m ago•0 comments

Proteus the Infinite Fractal Object

https://sand-morph.up.railway.app/proteus-2
1•echohive42•6m ago•0 comments

The Visa Empire: Borders as a Business

https://www.lighthousereports.com/investigation/the-visa-empire-borders-as-a-business/
1•karakoram•7m ago•0 comments

Angry Meta employee hijacks company presentation unleash profanity-laced tirade

https://www.dailymail.com/news/article-15897199/Meta-employee-hijacks-company-presentation-unleas...
1•Bender•7m ago•0 comments

More Expensive, Somehow Worse [video]

https://www.youtube.com/watch?v=5k-j4VVCVR8
1•Bender•8m ago•0 comments

Hillock – Local, brain-inspired AI memory using SQLite and HDC

https://github.com/roandejager/Hillock
1•roandejager•9m ago•0 comments

Fermat's last theorem in the natural ring of ordinals

https://www.infinitelymore.xyz/p/fermats-last-theorem-in-the-ordinals
1•FillMaths•9m ago•0 comments

Show HN: Buildtopia1 – A sandbox game where an AI builds for you with chat

https://buildtopia1.com
1•dtran24•10m ago•0 comments

SillyTavern provides a single unified interface for many LLM APIs

https://github.com/SillyTavern/SillyTavern
1•doener•11m ago•0 comments

Multimodal Neurons in Artificial Neural Networks

https://distill.pub/2021/multimodal-neurons/
1•montyanderson•12m ago•0 comments

Changing Careers, Cutting Expenses: Software Engineers Contend with AI

https://www.wsj.com/lifestyle/careers/changing-careers-cutting-expenses-software-engineers-conten...
2•variety8675•13m ago•1 comments

RhinoCollab a plugin for real-time editing for Rhino 3D

https://rhinocollab.com
1•Ashxius•25m ago•0 comments

The APLR(1) algorithm for compact LR(1) parsers is simpler and more capable than

https://branchtaken.com/reports/aplr1/aplr1
3•fanf2•27m ago•0 comments

Compiling Isn't Running: Functionally Testing DuckDB-WASM Extensions

https://rusty.today/blog/testing-duckdb-wasm-extensions/
1•rustyconover•30m ago•0 comments

Show HN: AI Cell Enrichment Workflow API

https://ampledata.io
1•blagoysimandoff•32m ago•0 comments

Grasping Exponentialism, Efficient AI, Talent Density, & the Pursuit of Together

https://www.implications.com/p/grasping-exponentialism-efficient
1•momentmaker•33m ago•0 comments

Smaller Code, Better Code

https://www.sacrideo.us/smaller-code-better-code/
2•tosh•36m ago•1 comments

The University in the AI Era

https://htmx.org/essays/universities-and-ai/
1•_doctor_love•39m ago•0 comments

Show HN: Folent – interpolate text between different font typefaces

https://mabugis.github.io/Folent/
1•mabugis•39m ago•0 comments

Agents as Code

https://destiner.io/blog/post/agents-as-code/
1•Destiner•40m ago•0 comments

Section 702 lapsed for the first time since 2008

https://www.axios.com/2026/06/14/trump-fisa-renewal-save-america-act
2•Arodex•40m ago•1 comments

Show HN: Tool for creating step-by-step tutorials from screen recordings. No AI

https://framepin.com/
3•aksuta•42m ago•0 comments

Condom-maker is getting squeezed

https://www.economist.com/business/2026/05/27/the-worlds-top-condom-maker-is-getting-squeezed
1•andsoitis•42m ago•0 comments

A thousand Postgres branches for $1

https://xata.io/blog/a-thousand-postgres-branches-for-1
1•tudorg•44m ago•0 comments

The Sign-Off Layer Is Becoming the Real Engineering System

https://newsletter.thelongcommit.com/p/the-sign-off-layer-is-becoming-the
2•jason_s•50m ago•0 comments

AI is code – and can't be prompted into being smarter

https://www.theregister.com/ai-and-ml/2026/06/14/ai-is-code-and-cant-be-prompted-into-being-smart...
3•wglb•51m ago•0 comments

Why Linux Still Feels Unstable

https://www.whileforloop.com/blog/2026/06/14/why-linux-still-feels-unstable/
3•wook__•52m ago•3 comments