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 crash that wasn't: debugging CI with AI

https://abbyssoul.github.io/engineering/2026/07/19/the-crash-that-wasnt-debugging-kinjo-ci-with-a...
1•sagevoid•40s ago•0 comments

Open BFME 1

https://github.com/Open-BFME/Open-BFME-1
1•OsrsNeedsf2P•1m ago•0 comments

Why some DVLA digital services don't work at night

https://dafyddvaughan.uk/blog/2025/why-some-dvla-digital-services-dont-work-at-night/
1•herbertl•2m ago•0 comments

A Painter's New York Loft that he Moved into in 1967 [video]

https://www.youtube.com/watch?v=_A_u4N08B9U
1•toomuchtodo•5m ago•0 comments

'Live' World Cup Broadcast Is Not Live

https://www.nytimes.com/2026/07/18/sports/soccer/world-cup-live-tv-delay.html
1•lxm•9m ago•0 comments

Quartermaster – self-hosted license server with offline signing key

https://github.com/laudendev/quartermaster
1•laudendev•9m ago•0 comments

Epub.js: Enhanced EBooks in the Browser

https://github.com/futurepress/epub.js/
1•gurjeet•12m ago•0 comments

Unvibe Is Here

https://unvibe.live
1•PrestonSusanto•17m ago•0 comments

Show HN: Headroom – measure your GPU's true bandwidth ceiling for local AI

https://ar5en1c.github.io/headroom/
1•Ar5en1c•17m ago•0 comments

DeKalb deputy charged with Flock camera misuse; more Georgia officers fired

https://www.ajc.com/news/2026/07/3-more-georgia-police-officers-fired-over-alleged-flock-camera-m...
6•pir8life4me•20m ago•3 comments

I've Struggled with Addiction. I'm Staying Away from A.I. Chatbots

https://www.nytimes.com/2026/07/19/opinion/ai-attention-social-media-attachment.html
1•geox•22m ago•0 comments

The SLAP stack is the last server stack you'll ever need

https://blakewatson.com/journal/the-slap-stack-is-the-last-server-stack-youll-ever-need/
1•blakewatson•23m ago•0 comments

Production Deployments to Exe.dev

https://asadjb.com/blog/2026-07-19-production-deployments-to-exe-dev
1•asadjb•28m ago•0 comments

Flock cameras collecting face, clothing,tattoo identifiers

https://www.jalopnik.com/2217154/flock-cameras-collecting-more-than-plate-car-information/
1•pir8life4me•28m ago•2 comments

Freeze-Casting

https://en.wikipedia.org/wiki/Freeze-casting
1•soupspaces•29m ago•0 comments

PEP 829 – Package Startup Configuration Files

https://peps.python.org/pep-0829/
1•zahlman•31m ago•1 comments

Connection Machine Joins All to All to Optimize Better

https://spectrum.ieee.org/ising-machine
1•andsoitis•32m ago•0 comments

Reviving a 1996 IRC network from its own original, recovered source code

https://chatnet.gg/
3•casoalb•33m ago•0 comments

We Can't Harden Node.js Against Prototype Pollution

https://adventures.nodeland.dev/archive/no-we-cant-harden-nodejs-against-prototype/
1•Fudgel•38m ago•0 comments

Why Your Dashboard Is Lying to You (and What Works)

https://medium.com/@alanscottencinas/why-your-dashboard-is-lying-to-you-and-what-actually-works-d...
1•encinas88•38m ago•0 comments

Email Encryption

https://computer.rip/2026-07-19-email-encryption.html
2•zdw•40m ago•0 comments

Prompt Bill of Materials (PBOM) – an open standard for agentic workflows

https://github.com/EqoAI/pbom-spec
2•kavia•42m ago•0 comments

Ecological patterns in Pokémon games reflect those observed in the natural world

https://jgeekstudies.org/2026/07/19/ecological-patterns-in-pokemon/
1•zdw•43m ago•0 comments

Forget the model. When it comes to cybersecurity, it's all about the harness

https://cyberscoop.com/ai-cybersecurity-harness-autonomous-hacking/
5•Gaishan•44m ago•0 comments

Moonshine: Lets you stream games from your PC to any device running Moonlight

https://github.com/hgaiser/moonshine
2•wertyk•45m ago•0 comments

BeWide AI – I'm building one startup per week on YouTube

https://www.youtube.com/@bewideai
1•nikitafaesch•46m ago•1 comments

Studying Linux Schedulers, and Why Metrics Matter

https://pradyun.net/blog/metrics_matter.html
1•birdculture•47m ago•0 comments

DistillFeed: RSS reader with AI-ranked items and summaries

https://github.com/ibaaj/distillfeed
1•newolive•49m ago•0 comments

The Unsexy Infrastructure That Wins Drone Wars

https://www.foxandlion.pub/post/the-unsexy-infrastructure-that-wins-drone-wars
2•afdwfe•49m ago•0 comments

CO2 overload in blood suggests toxic atmosphere within 50 years

https://doi.org/10.1007/s11869-026-01918-5
34•veqq•51m ago•24 comments