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/

Morphe App: Transform Your Android Experience

https://morphe.software/
1•thunderbong•6s ago•0 comments

Commodore 77

https://commodore.net/store/commodore64/
1•doener•2m ago•0 comments

Put full images in QR codes with dithering

https://www.wowqr.app
1•alentodorov•8m ago•0 comments

A decision tree for picking attention

https://efficientagent.substack.com/p/a-decision-tree-for-picking-attention
2•bnayak25•8m ago•0 comments

1988-1994: Designated Driver Campaign

https://guides.library.harvard.edu/CHC/designateddriver
1•Michelangelo11•9m ago•0 comments

An official Linux version of the Grok bot is now available

https://twitter.com/m0nle0z/status/2093948285929353555
1•iamsyr•13m ago•0 comments

I Built a Free Printable Habit Tracker Because Most Habit Tracking Tools

https://www.indiehackers.com/post/i-built-a-free-printable-habit-tracker-because-most-habit-track...
2•ahmadhussain89•17m ago•0 comments

About Syria's Nightlife

https://twitter.com/i/status/2093806659868950549
1•Michelangelo11•20m ago•0 comments

Show HN: VelocityNote – A tiny Markdown notebook with local AI

https://velocitynote.app/
2•velocityNote•23m ago•0 comments

How the pre-Unicode Amharic encodings were mapped

https://ezra.et/how-amharic-encodings-were-mapped
1•tena_codes•26m ago•0 comments

A Cop's Case for Flock

https://worksinprogress.co/issue/a-cops-case-for-flock/
1•maxall4•29m ago•0 comments

Building Critical Infrastructure with Htmx: Network Automation

https://htmx.org/essays/paris-2024-olympics-htmx-network-automation/
1•rajtilakjee•40m ago•0 comments

The Hugging Face attack surprised me

https://www.planned-obsolescence.org/p/the-hugging-face-attack-surprised
1•tosh•41m ago•0 comments

Ask HN: Should we rename programming into herding?

1•sam_lowry_•41m ago•0 comments

The Implausibility of Intelligence Explosion (2017)

https://medium.com/@francois.chollet/the-impossibility-of-intelligence-explosion-5be4a9eda6ec
2•maxall4•44m ago•0 comments

JFK Conspiracy Lite

https://yarchive.net/blog/jfk/
1•Tomte•45m ago•0 comments

Every Time Larry David Appeared on Seinfeld [video]

https://www.youtube.com/watch?v=L4wWE5r0sPE
1•tzury•46m ago•0 comments

METR: Funding Update

https://metr.org/blog/2026-08-14-funding-update/
1•tosh•48m ago•0 comments

The infrastructure quartermaster: inside a China-nexus state enablement model

https://www.lumen.com/blog/en-us/the-infrastructure-quartermaster-inside-a-china-nexus-state-enab...
1•pir8life4me•52m ago•0 comments

Neural Amp Modeler (Nam) Architecture 2 (A2)

https://www.tone3000.com/blog/introducing-neural-amp-modeler-nam-architecture-2-a2
1•mariuz•56m ago•0 comments

Show HN: RunCoder – A Coding Workspace for Android

https://play.google.com/store/apps/details?id=com.runcode.app&hl=en_US
1•harshal_shinde•1h ago•1 comments

Show HN: ScriptTap – no-root Android automation with an AI script contract

https://play.google.com/store/apps/details?id=com.scripttap&hl=en_US
1•Romka2x•1h ago•1 comments

America's long march toward Chinese-style surveillance state

https://www.ocregister.com/2026/08/14/americas-long-march-toward-chinese-style-surveillance-state/
4•pir8life4me•1h ago•0 comments

How to Build a Thousand-Year-Old Tree

https://www.noemamag.com/how-to-build-a-thousand-year-old-tree/
3•ostacke•1h ago•0 comments

Google: Lake Ontario/Lake America name change in the U.S. will appear in Maps

https://blog.google/products-and-platforms/products/maps/gnis-lake-ontario-lake-america-name-change/
21•lr0•1h ago•10 comments

UK Households can save as plug-in solar panels come to market

https://www.gov.uk/government/news/households-can-save-as-plug-in-solar-panels-come-to-market
5•bryanrasmussen•1h ago•0 comments

Veryfront Code – Full-Stack AI Apps and Agents with TypeScript and React

https://github.com/veryfront/veryfront-code
3•kojiwakayama•1h ago•0 comments

Have We Seen an Acceleration in Discoveries?

https://metr.org/notes/2026-08-14-llm-contribution-to-discoveries/
2•tosh•1h ago•0 comments

Show HN: Masareef – Android expense tracker that reads bank alerts on-device

https://play.google.com/store/apps/details?id=com.mohamedgado.masareef&hl=en_US
2•mgado•1h ago•0 comments

Show HN: N8n community node for Shotium – screenshot and OG image API

https://github.com/shotium/n8n-nodes-shotium
2•foodpad•1h ago•0 comments