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/

The (Overdue) Collapse of Oracle's $900B Empire

https://www.youtube.com/watch?v=9Dne3rKiIn0
1•cable2600•43s ago•0 comments

Blocking AI-bot can be a double-edged Sword

https://www.theverge.com/ai-artificial-intelligence/1013195/ai-agents-blocked-web
1•zlu•2m ago•0 comments

Writing is no longer proof of work

https://www.seangoedecke.com/writing-is-no-longer-proof-of-work/
1•anotherevan•3m ago•0 comments

AI Reviews All-In

https://all-in-claim-check.pages.dev/
1•siliconc0w•4m ago•1 comments

We ran 53 open-source AI agents through behavioral tests and filed 37 bugs

https://defuzex.ai/blog/we-ran-53-open-source-ai-agents-through-behavioral-tests-and-filed-37-bugs
4•YaoAnthony•5m ago•1 comments

Show HN: MCPX – MCP server directory scanning for tool poisoning, leaked keys

https://www.mcpx.digital/
1•chaostheorx•9m ago•0 comments

Bringing USB 3 and USB4/Thunderbolt to Windows 98 to 7

https://yeokhengmeng.com/2026/10/xhci98-usb3-usb4/
1•cheeaun•11m ago•0 comments

Fable 5.5: SVG of a controller riding a bicyle riding a pelican riding a bicycle

https://twitter.com/dummerspast39/status/2111577334436319355
1•septisum•13m ago•0 comments

Novel brain activity under anesthesia challenges what we know re: consciousness

https://www.sciencedaily.com/releases/2026/10/261015003440.htm
1•bookofjoe•18m ago•0 comments

Electric Mercedes-AMG GT SUV unveiled with 1,153 HP and 710 kW charging

https://electrek.co/2026/10/17/mercedes-amg-gt-suv-electric-1153-hp-710-kw-charging/
1•cisc•23m ago•0 comments

NY announces game ownership bill requiring ownership rather than licensing

https://www.tomshardware.com/video-games/new-york-rep-announces-game-ownership-bill-that-would-re...
3•guiambros•27m ago•1 comments

Decision Architecture: Governing Cybersecurity at Machine Speed

https://sadb.com.br/
1•nivearibeiro•27m ago•0 comments

EU ENISA CVEs

https://euvd.enisa.europa.eu/
1•based2•31m ago•0 comments

Squeeze into those skinny jeans: millennial culture is back

https://www.economist.com/culture/2026/10/15/squeeze-into-those-skinny-jeans-millennial-culture-i...
1•Anon84•32m ago•0 comments

Romania names first AI minister: Bitdefender researcher Bogdan Dumitru

https://www.newsminimalist.com/articles/romania-names-first-ai-minister-bitdefender-researcher-bo...
1•jocker12•35m ago•0 comments

Comprehensive Agentic Infrastructure as Code

https://getintentric.com/
1•benzingtech•38m ago•0 comments

Fable 5.5: SVG of a controller riding a bicyle riding a pelican riding a bicycle

https://claude.ai/artifact/WiSwhxpKDRm1jyXbvTcAQy
2•sergiotapia•40m ago•0 comments

Show HN: NoBadge – Hide Dock Badges During macOS Focus

https://github.com/asdftq/NoBadge
2•flrngel•42m ago•0 comments

Zelensky says Musk-owned satellite system still restricted in Ukraine

https://www.axios.com/2026/10/17/zelensky-starlink-elon-musk-trump
6•mdp2021•45m ago•0 comments

AI Infrastructure Index

https://www.stockatomics.com/ai-infrastructure-index
1•happster•46m ago•0 comments

Show HN: HardwareOS - Turn a prompt into hardware project you can wire and flash

https://hardwareos.ai
1•singhvir943•46m ago•0 comments

Al, Automation and India's Workforce

https://glcfer.allforone.co.in/
1•cyb0rg0•50m ago•1 comments

Show HN: MoroccoAPI: An open source API for Moroccan public data

https://moroccoapi.dev/
1•benizizamohamed•52m ago•0 comments

Rogue 'jumping genes': Big dogs age faster than little ones

https://www.nature.com/articles/d41586-026-03199-5
1•cybermango•57m ago•0 comments

I run my one-person business with ~17 narrow AI agents

https://blakelapierre.substack.com/p/i-run-my-one-person-business-with
3•agentofone•58m ago•0 comments

Weak Links Start to Show in A.I. Borrowing

https://www.nytimes.com/2026/10/17/business/-debt-coreweave-oracle-softbank.htmlai
1•tangled•59m ago•0 comments

Overlooked Brown fat in our bodies linked to wide range of health benefits

https://www.nature.com/articles/d41586-026-03302-w
1•cybermango•1h ago•0 comments

Open Math Model: The OS for collaborative math research and scientific computing

https://www.openmathmodel.org/
2•JohnHammersley•1h ago•0 comments

Does code quality still matter when AI writes the code?

https://docspring.com/blog/posts/does-code-quality-still-matter-when-ai-writes-the-code/
4•nathan_f77•1h ago•3 comments

Doctors, Lawyers and Engineers joining AI's $400-an-Hour gig economy

https://www.bloomberg.com/news/articles/2026-10-16/ai-training-jobs-are-attracting-doctors-lawyer...
4•cybermango•1h ago•1 comments