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/

Electricity Mid-Year Update 2026

https://www.iea.org/reports/electricity-mid-year-update-2026/executive-summary
1•measurablefunc•2m ago•0 comments

Ass Kicking Clause

https://hec.works/blog/ass-kicking-clause/
1•dividedcomet•2m ago•0 comments

Microsoft Plugs Nearly 400 Security Holes

https://krebsonsecurity.com/2026/08/microsoft-plugs-nearly-400-security-holes/
1•DemiGuru•2m ago•0 comments

Soniox Text-to-Speech v2

https://soniox.com/text-to-speech
1•easwee•3m ago•0 comments

How the "censorship-industrial complex" is changing the Internet and US policy

https://www.technologyreview.com/2026/08/11/1141635/how-the-censorship-industrial-complex-is-chan...
1•mdp2021•4m ago•0 comments

Pay a dollar. Your name goes up in moulded plastic

https://the-wall-lime.vercel.app/
1•Fungle•11m ago•0 comments

Ask HN: Anyone else getting unsolicited spam from "ApplyBoost"?

1•LoganDark•14m ago•0 comments

Suzanne: AI tool for designing and manufacturing physical products

https://www.suzanne3d.com/
3•Samanthajeanneb•16m ago•0 comments

We set up our cloud agent environment

https://cursor.com/blog/cloud-agent-environment
1•gmays•17m ago•0 comments

Show HN: Microfeed – open-source agentic CMS on Cloudflare

https://github.com/microfeed/microfeed
1•wenbin•18m ago•0 comments

Great Locomotive Chase

https://en.wikipedia.org/wiki/Great_Locomotive_Chase
2•lifeisstillgood•19m ago•0 comments

Recovery Key storage transition highlights Apple's privacy and obscurity

https://sixcolors.com/post/2026/08/recovery-key-storage-transition-hightlights-apples-privacy-and...
2•CharlesW•21m ago•0 comments

Towards Expert-Level Medical AI for Real-Time Video Consultations

https://arxiv.org/abs/2608.09861
2•tcp_handshaker•22m ago•0 comments

Meta glasses banned from courts in England and Wales

https://www.theguardian.com/technology/2026/aug/11/meta-glasses-banned-from-courts-in-england-and...
3•cdrnsf•24m ago•0 comments

Vibe coded UI CI runner for your agent

https://github.com/hamza221/ActUi
1•hamza22111•24m ago•0 comments

FDA report reveals where Taylor Farms sent its lettuce–and it raises questions

https://arstechnica.com/health/2026/08/less-than-2-5-of-taylor-farms-recalled-lettuce-went-to-tac...
5•tnash•25m ago•1 comments

Asked AI to do a mini math breakthrough. It did a mini breakthrough

https://github.com/learademacher/ai-refines-ai-zeta-bound
4•learademacher•27m ago•1 comments

Track data centers and power projects from the first permit to final completion

https://cleanview.co
1•skadamat•27m ago•0 comments

Spotify says it won't recommend music from 'AI Personas'

https://www.theverge.com/entertainment/977815/spotify-ai-persona-label-recommendations
3•ilamont•27m ago•0 comments

Temporal Shirt Sponsor for a Football Club (Crystal Palace)

https://temporal.io/blog/why-temporal-is-front-of-shirt-sponsor-crystal-palace
1•dzonga•27m ago•0 comments

A log of which repositories the UK Government has deleted

https://github.com/uk-gov-mirror/deleted-repo-report
2•mooreds•28m ago•0 comments

Best Agent Gateways for Healthcare Organizations 2026

https://www.mintmcp.com/blog/agent-gateways-healthcare-organizations
1•baroiall•28m ago•0 comments

Attestable: From Verifiability to Model-Weight Security

https://attestable.com/blog/model-weights-security
2•Caseee•28m ago•0 comments

Show HN: Log-decisions – an append-only decision journal for AI agents

https://github.com/swe-workflow/log-decisions
2•soulmachine•28m ago•0 comments

Emergent Introspective Awareness in Large Language Models

https://arxiv.org/abs/2601.01828
3•doener•30m ago•0 comments

AI Is Solving CTF Challenges in Minutes

https://www.simulationslabs.com/blogs/AI_Is_Solving_CTF_Challenges_in_Minutes
15•therepanic•30m ago•5 comments

Nvidia partners with money managers to create new asset class

https://www.youtube.com/watch?v=40BRC6puc6Y
2•tcp_handshaker•31m ago•0 comments

Default router passwords: the pattern is not the weakness

https://ssx360.com/research/001
2•ssx360•32m ago•0 comments

ChatGPT Cigarettes Trademark Abandoned

https://tmsearch.uspto.gov/search/search-results/97807667
2•CraftianAI•32m ago•0 comments

Is Netflix Washed Now?

https://sharptext.net/2026/is-netflix-washed-now/
3•CharlesW•32m ago•1 comments