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/

Anthropic Alleges Largest-Ever Claude Distillation Attack by Alibaba

https://twitter.com/MTSlive/status/2070141140607832353
1•seviu•52s ago•1 comments

Mapping Networks: CVPR 2026 Best Paper Award Nominee

https://arxiv.org/abs/2602.19134
3•aurenvale•2m ago•0 comments

Samsung readies $648B bet, report says, as AI boom reshapes South Korea

https://www.reuters.com/world/asia-pacific/samsung-invest-1000-trillion-won-south-korea-media-rep...
1•JumpCrisscross•2m ago•0 comments

Top DOJ Official Tells Staff He Wants to Avoid Antitrust Trials

https://www.wsj.com/politics/policy/top-doj-official-tells-staff-he-wants-to-avoid-antitrust-tria...
1•JumpCrisscross•3m ago•0 comments

A curated, non-BS library of the best resources for evaluating agents

https://github.com/benchflow-ai/awesome-evals
1•xdotli•4m ago•0 comments

Gemini Spark

https://gemini.google/overview/agent/spark/
1•czeizel•4m ago•1 comments

A Structured Generation Framework for Transforming Scientific Papers into Patent

https://arxiv.org/abs/2601.02589
1•teleforce•5m ago•0 comments

Rage Against the Dying of Critical Thinking

https://mmaksimovic.dev/rage-against-the-dying-of-critical-thinking
1•Liriel•5m ago•0 comments

PatentScore: Multi-Dimensional Evaluation of LLM-Generated Patent Claims

https://aclanthology.org/2025.emnlp-main.1564/
1•teleforce•6m ago•0 comments

Notion killing Skiff-influenced email app since most users use AI agents instead

https://arstechnica.com/gadgets/2026/06/notion-killing-skiff-influenced-email-app-since-most-user...
1•joozio•8m ago•0 comments

Worldwide X (Twitter) Trends for last 24 hours

https://trends24.in/
3•aurenvale•13m ago•0 comments

List of all UK universities currently having redundancies/restructuring

https://qmucu.org/qmul-transformation/uk-he-shrinking/
1•theanonymousone•16m ago•0 comments

The food science behind designing an ice cream

https://altermag.com/articles/designing-a-summer-ice-cream-for-india
1•trojanalert•18m ago•0 comments

Position: Stop Anthropomorphizing Intermediate Tokens as Reasoning/Thinking Trac

https://arxiv.org/abs/2504.09762
1•xiaoyu2006•24m ago•0 comments

My BASB Implementation in Org Mode

https://ftwynn.com/posts/my-basb-implementation-in-org-mode-v2023-06/
1•ankitg12•25m ago•0 comments

The largest scorpion lived 415M years ago

https://www.sciencenews.org/article/largest-scorpion-lived-415-million-years-ago
4•celadonceladon•25m ago•0 comments

Fintech Engineering Handbook

https://w.pitula.me/fintech-engineering-handbook/
1•krever•25m ago•0 comments

Ask HN: Why does every AI demo sound perfect but real world deployment always

1•VaderAi•26m ago•0 comments

A graph-based IDE for understanding and working with large codebases

https://vnoc.vercel.app/project/claudecode
2•yared_seed•27m ago•0 comments

I made a Claude Code skill to check if AI crawlers can read your site

https://github.com/MerqryLabs/ai-crawler-visibility
2•novaesystems•28m ago•0 comments

Fivy – AI review management for small businesses (Google reviews)

https://www.fivy.com.au
1•mesqfel•29m ago•0 comments

MCP Authorization with Dynamic Client Registration

https://blog.christianposta.com/understanding-mcp-authorization-with-dynamic-client-registration/
1•ankitg12•29m ago•0 comments

Ask HN: How are you solving long-term memory for production AI agents in 2026?

1•xSingh16•29m ago•1 comments

When a Gift Becomes a Pain

https://medium.com/whatsnextwray/when-a-gift-becomes-a-pain-0a854c47589e
1•raynchad•30m ago•1 comments

We Rewrote WAL-G for Postgres Backups in Rust: Meet WAL-RUS

https://clickhouse.com/blog/walrus-postgres-backups-in-rust
1•thunderbong•31m ago•0 comments

Mapping London – All Sorts of Interesting Maps of London

https://mappinglondon.co.uk
1•akashwadhwani35•32m ago•1 comments

Open Source Low Tech

https://opensourcelowtech.org/
1•grep_it•35m ago•0 comments

Bumble dating app explores sale

https://www.reuters.com/business/bumble-dating-app-explores-sale-sources-say-2026-06-25/
1•JimsonYang•36m ago•0 comments

Fossil fuel emissions have rapidly worsened European heatwaves in a few decades

https://www.worldweatherattribution.org/fossil-fuel-emissions-have-rapidly-worsened-european-heat...
1•tcumulus•36m ago•0 comments

The many journeys of learning Rust

https://blog.rust-lang.org/2026/06/25/vision-doc-journeys-to-learning-rust/
1•TangerineDream•37m ago•0 comments