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•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/

Ask HN: Looking for experienced web dev to make math website

1•marysminefnuf•3m ago•0 comments

Researchers Warn of WiFi 7 Routers as 'A Potential Means for Surveillance'

https://gizmodo.com/researchers-issue-warning-about-tech-that-could-turn-every-router-into-a-pote...
2•transpute•7m ago•0 comments

Clanker: A Word for the Machine

https://lucumr.pocoo.org/2026/5/26/clankers/
3•doppp•9m ago•0 comments

Solo founder building SaaS. looking for partner

1•albedim•13m ago•0 comments

How to Build an API-First Front End with OpenAPI, Orval, TanStack Query, Zod

https://reactdevelopment.substack.com/p/how-to-build-an-api-first-frontend
1•javatuts•13m ago•0 comments

Gear Commit: Dev gadget box personalized from GitHub activity

https://gearcommit.nanocorp.app/
2•silversharck•15m ago•0 comments

I built a 28-tool AI video SaaS solo with Python, Flask and OpenAI APIs

https://snipforge.video
1•gandhamvimala•18m ago•0 comments

ACM Conference on AI and Agentic Systems – ACM CAIS 2026

https://www.caisconf.org/
1•ddl•19m ago•0 comments

Modos Flow – A paper-like monitor for reading, writing, and focused work

https://www.crowdsupply.com/modos-tech/modos-flow
2•nickt•19m ago•0 comments

TSDuck: Open-source toolkit for MPEG-TS analysis and manipulation

https://tsduck.io/
3•phantomathkg•22m ago•0 comments

Supercarrier to Act as Floating Nuclear Power Plant

https://www.twz.com/nuclear/supercarrier-uss-gerald-r-ford-to-act-as-floating-nuclear-power-plant...
2•Gaishan•22m ago•0 comments

AI Compliance Solution

https://app.clearcompli.com
1•brainstorm23•30m ago•0 comments

Jefferson's Republic

https://tkentlongrepublic.substack.com/p/jeffersons-republic-aeb
2•thehappypm•31m ago•0 comments

Steve Jobs in Exile: NeXT and the Making of a Comeback [video]

https://www.youtube.com/watch?v=WnZeiw8q4Wk
2•tambourine_man•33m ago•0 comments

Gardeners often hear about supposed hacks and quick fix. Here are some debunked

https://apnews.com/article/gardening-myths-vinegar-tilling-watering-c07faf7472e7a2dc40d3886b94f1b508
3•rawgabbit•37m ago•0 comments

Dubious Chinese Carbon Projects Expose Depth of European Market's Flaws

https://www.bloomberg.com/graphics/2026-europe-china-dubious-carbon-credits/
2•RestlessMind•40m ago•0 comments

TypeScript's number type is a lie

https://bluepnume.medium.com/typescripts-number-type-is-a-lie-6b3b10dd8f54
2•bluepnume•50m ago•1 comments

Scientists say they've reversed brain aging with a simple nasal spray

https://www.sciencedaily.com/releases/2026/05/260526022018.htm
26•bookmtn•52m ago•10 comments

A 3D Lattice Boltzmann solver with 200x compute acceleration

https://frontend-seven-delta-66.vercel.app/
2•kauai1•1h ago•0 comments

Ask HN: Would you buy a TRON: legacy neon line clothes?

1•alonsovm44•1h ago•2 comments

Hacker Dojo

https://en.wikipedia.org/wiki/Hacker_Dojo
2•Austin_Conlon•1h ago•0 comments

Apple, Google push for judicial oversight in Canada online safety bill

https://www.reuters.com/legal/litigation/apple-google-push-judicial-oversight-canada-online-safet...
2•Cider9986•1h ago•1 comments

Paxton Wins Texas Republican Primary After Trump Endorsement

https://www.reuters.com/world/us/cornyn-fights-political-life-against-trump-endorsed-paxton-texas...
4•Cider9986•1h ago•0 comments

Book the lakehouse – A beautiful OSS booking calendar for holiday homes

https://github.com/shrimbly/book-the-lakehouse
1•falloon•1h ago•0 comments

Mined in America Act Would Put Bitcoin Network at Risk

https://www.therage.co/mined-in-america-act-bitcoin-at-risk/
5•Cider9986•1h ago•0 comments

New Class of Gaming Systems (Hardware): Imagination Based Gaming [video]

https://www.youtube.com/shorts/TU0SFNk0hg0
3•AleBog•1h ago•1 comments

AV2 codec may be finalized on May 29

https://videocardz.com/newz/av2-codec-may-be-finalized-on-may-29
1•rguiscard•1h ago•0 comments

Effect of Vitamin D2 Supplementation on 25-Hydroxyvitamin D3 Status

https://academic.oup.com/nutritionreviews/advance-article/doi/10.1093/nutrit/nuaf166/8256613
1•bookofjoe•1h ago•0 comments

Webwright: A Terminal Is All You Need for Web Agents

https://www.microsoft.com/en-us/research/articles/webwright-a-terminal-is-all-you-need-for-web-ag...
2•carlual•1h ago•0 comments

Alberta Separatism

https://en.wikipedia.org/wiki/Alberta_separatism
3•lisper•1h ago•0 comments