frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•12mo ago
Is this a problem that people actually have?
xeromal•12mo ago
Fun side project man!
primitivesuave•12mo 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•12mo 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•12mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•12mo 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•12mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

New study shows how Nazi-era propaganda influences present-day attitudes

https://www.psypost.org/new-study-shows-how-nazi-era-propaganda-influences-present-day-attitudes/
1•giuliomagnifico•2m ago•0 comments

Brockman Says Musk Vowed on Trial's Eve to Make Him 'Hated'

https://www.bloomberg.com/news/articles/2026-05-04/openai-s-brockman-to-testify-after-musk-s-text...
1•1vuio0pswjnm7•3m ago•0 comments

Anthropic quietly nerfed Claude Code's 1-hour cache

https://www.xda-developers.com/anthropic-quietly-nerfed-claude-code-hour-cache-token-budget/
2•mikhael•3m ago•0 comments

Qwem Meetup Presentation: Function Calling Harness, from 6.75% to 100%

https://typia.io/blog/function-calling-harness-qwen-meetup-korea/
1•autobe•6m ago•0 comments

The week my AI assistant deleted my production model (and made it better)

https://medium.com/@cmitre/the-week-my-ai-assistant-tried-to-end-me-and-accidentally-helped-me-bu...
2•ceemite•6m ago•1 comments

What Is Authorship When Machines Can Write?

https://thereader.mitpress.mit.edu/what-is-authorship-when-machines-can-write/
2•Hooke•7m ago•0 comments

Anthropic entering AI services business

https://www.anthropic.com/news/enterprise-ai-services-company
1•darshanmakwana•9m ago•0 comments

Wolfgang Koeppen's Structural Musicality

https://www.theparisreview.org/blog/2026/05/04/wolfgang-koeppens-structural-musicality/
1•prismatic•14m ago•0 comments

What Silicon Valley layoffs hide about the future of the job market

https://www.washingtonpost.com/technology/2026/05/01/ai-jobs-tech-layoffs-austerity/
1•1vuio0pswjnm7•14m ago•1 comments

Major Ubuntu Outage

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQEbtT2eC1f61ywPf...
2•NiekvdMaas•15m ago•0 comments

I built a WordPress AI agent that handles sales and support (No monthly fees)

https://www.indiehackers.com/post/i-built-a-wordpress-ai-agent-that-handles-sales-and-support-no-...
1•shahisoft•18m ago•0 comments

Why Does a Single Firefox Tab Take Almost 1.5GB RAM?

3•syeare•20m ago•0 comments

Kavya – A local-first Markdown writing app for macOS

https://kavya-app.com/
1•juanmanuelf•22m ago•0 comments

OpenAI president defends motives in for-profit restructuring, reveals $30B stake

https://www.ft.com/content/5c24fa13-ae43-4d5a-9b68-b6ebae227dce
1•1vuio0pswjnm7•28m ago•1 comments

Anthropic co-founder Jack Clark: 60%+ chance of automated AI R&D by 2029

https://importai.substack.com/p/import-ai-455-automating-ai-research
5•thoughtpeddler•30m ago•1 comments

Kenya: AI was used to load Health System costs onto poorest

https://sha.africauncensored.online/
2•gmargari•31m ago•0 comments

Apple Plans to Let Users Build Their Own Passes in iOS 27 Wallet App

https://www.bloomberg.com/news/articles/2026-05-04/ios-27-features-apple-plans-to-let-users-build...
3•petethomas•31m ago•0 comments

Why Your Country Sucks-A World Cup Satire from Mexico City

https://almaasfalto.com/why-your-country-sucks/
3•JFWFTW•33m ago•0 comments

Halley's Comet Meteor Shower (Eta Aquariids) About to Peak

https://www.sciencealert.com/look-up-the-halleys-comet-meteor-shower-is-just-about-to-peak
2•Gaishan•33m ago•0 comments

'Engineer' is so 2025. In AI land, everyone's a 'builder' now

https://sfstandard.com/2026/03/05/engineer-2025-ai-land-everyone-s-builder-now/
2•geetee•34m ago•0 comments

OpenClaw Got Safer in Public

https://openclaw.ai/blog/openclaw-security-in-public
3•drippurp•34m ago•0 comments

Ask HN: Why would we care about "extended time horizons" and LLMs?

2•ozozozd•38m ago•1 comments

Why China Didn't Colonise the World

https://twitter.com/petruch10/status/2051127478132113892
2•MrBuddyCasino•40m ago•0 comments

Taiwan Could Learn from Ukraine. Informally, Connections Are Growing

https://www.nytimes.com/2026/05/05/world/europe/ukraine-taiwan-drones.html
3•mikhael•44m ago•0 comments

Ask HN:How's you experience building an app on Cloudflare? (Workers, D1,R2 etc.)

4•indieDevAttempt•46m ago•0 comments

Why is Apple's R&D run rate suddenly $40B/yr.?

https://asymco.com/2026/05/04/why-is-apples-rd-run-rate-suddenly-40-billion-yr/
3•ndr42•46m ago•0 comments

OpenAI can't build working RSS feeds

https://openai.com/news/rss.xml
6•johnnyAghands•46m ago•2 comments

Cybercrime investigations in practice: Insights from the LockerGoga case

https://www.sciencedirect.com/science/article/pii/S2666281726000685
2•Manheim•47m ago•0 comments

Anthropic Unveils $1.5B Joint Venture with Wall Street Firms

https://www.wsj.com/business/deals/anthropic-nears-1-5-billion-joint-venture-with-wall-street-fir...
3•erhuve•50m ago•0 comments

Kids bypass age verification with fake moustaches

https://www.theregister.com/2026/05/04/uk_online_safety_act_age_checks_subvert/
10•dreadsword•51m ago•0 comments