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/

Show HN: I indexed court dockets and county liens for every US HOA

https://hoaspy.com
1•lovewins•37s ago•0 comments

The Case for Bringing Your LLMs Home

https://www.wwt.com/blog/bringing-your-llms-home
1•mooreds•52s ago•0 comments

Writing the Cyclone Scheme Compiler

https://justinethier.github.io/cyclone/docs/Writing-the-Cyclone-Scheme-Compiler-Revised-2017
1•fanf2•1m ago•0 comments

Show HN: Claude Mods – Minesweeper

https://github.com/reporails/arcade
1•cleverhoods•3m ago•0 comments

Singapore builds most accurate clock ever, leaves US and China in dust

https://www.scmp.com/news/china/science/article/3369532/david-vs-goliaths-singapore-builds-most-a...
2•ValentineC•3m ago•0 comments

Do Spammers Deserve Death?

https://www.gojiberries.io/do-spammers-deserve-death/
1•speckx•3m ago•0 comments

Ask HN: I have 1 Claude and 2 Codex resets plus credits – help me spend them

1•kurinikku•6m ago•0 comments

Show HN: Automating my 35mm film scanning pipeline

https://shannadige.com/blog/darkroom/
1•shannadige•7m ago•0 comments

When Normal Becomes the Extreme

https://slingingbits.com/when-normal-becomes-the-extreme/
1•awestley•7m ago•0 comments

Show HN: UI for answering agent questions async

https://docs.plannotator.ai/open-source/workflows/questions
2•ramoz•9m ago•0 comments

AI safety is mostly a sex cult in Berkeley, CA [pdf]

https://ams3.digitaloceanspaces.com/urbits3/sitful-hatred/2026.9.24..22.31.54..beb8.51eb.851e.b85...
2•Anon84•13m ago•0 comments

Pyronaut – Pyronaut Blog

https://pyronaut.io/2026/10/02/introducing-pyronaut/
1•rbanffy•19m ago•0 comments

Vx – One Language, Every Chip

https://vxlang.org/
2•elffjs•19m ago•1 comments

Kolibri – Tech Report [pdf]

https://aleph-alpha.com/downloads/tech-report.pdf
1•yu3zhou4•20m ago•0 comments

Koreans Left with Spoiled Food Due to Borked Samsung Firmware Update for Fridges

https://www.techdirt.com/2026/10/02/koreans-left-with-spoiled-food-due-to-borked-samsung-firmware...
1•speckx•21m ago•0 comments

Our Solar System Is Terminally Unstable and Will Be Completely Destroyed

https://www.404media.co/our-solar-system-is-terminally-unstable-and-will-be-completely-destroyed-...
1•croes•21m ago•0 comments

ShinyHunters hacker in FBI data theft detained in Jordan

https://www.reuters.com/world/middle-east/key-shinyhunters-hacker-detained-jordan-is-cooperating-...
1•jbegley•21m ago•0 comments

Tobi Xu – a trilingual GNU/Linux distro for scientists and artists

https://tobixu.xyz/
1•mlmateos•21m ago•0 comments

Modernizing Variolation, Part 2

https://prestonestep.substack.com/p/modernizing-variolation-part-2
1•delton137•24m ago•1 comments

Hacks of 2 federal agencies in a month have spilled a bonanza of sensitive data

https://arstechnica.com/security/2026/10/hacks-of-2-federal-agencies-in-a-month-have-spilled-a-bo...
1•joozio•26m ago•0 comments

Florida AG seeks injunction to hamper OpenAI development

https://www.politico.com/news/2026/09/28/florida-injunction-openai-development-01095061
1•ForHackernews•28m ago•1 comments

Open Source Rust clean-room replacements for 7 of Adobe's apps

https://www.reddit.com/r/SaaS/comments/1wwnhbt/ive_created_open_source_100_rust_cleanroom/
1•wiradikusuma•30m ago•3 comments

Apple removes Bitchat from India app store;Twitter co-founder Jack Dorsey reacts

https://www.livemint.com/technology/apple-removes-bitchat-from-app-store-in-india-twitter-co-foun...
2•thunderbong•32m ago•0 comments

Will A.I. Make Your Brain Lazy? Here's What the New Research Shows

https://www.nytimes.com/interactive/2026/09/29/magazine/ai-chatbots-brain-development-study.html
2•kingcauchy•32m ago•1 comments

We diffed all 66 release pairs of the official MCP servers, 140 silent changes

https://github.com/Paraphern/rugsnare
3•paraphern•33m ago•0 comments

Chat in Private

https://motemsg.online
2•robgunner•33m ago•0 comments

Foundations of Metrology(1981) [pdf]

https://nvlpubs.nist.gov/nistpubs/jres/086/jresv86n3p281_A1b.pdf
2•pillars•34m ago•0 comments

EmbedCatalog is participating in Hacktoberfest 2026

https://embedcatalog.com/hacktoberfest-2026
2•aanthonymax•36m ago•0 comments

The $2M+ Travel Advisor: How Top Advisors Build Their Books

https://www.foratravel.com/join/resources/2-million-dollar-travel-advisor
3•memset•36m ago•0 comments

Show HN: I made a MMO-style citybuilder using the Micropolis open source assets

https://globalcity.evertpot.com/
3•treve•36m ago•0 comments