frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•2mo ago

Comments

bastawhiz•2mo ago
Is this a problem that people actually have?
xeromal•2mo ago
Fun side project man!
primitivesuave•2mo 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•2mo 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•2mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•2mo 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•2mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: OffChess – 100k+ Offline, Ad-Free Chess Puzzles App

https://offchess.com
1•avadhesh18•2m ago•0 comments

Show HN: StopAddict – Track your addictions and quit with a simple system

1•skyzouw•2m ago•0 comments

Ready Lists

https://11011110.github.io/blog/2025/07/07/ready-lists.html
1•082349872349872•4m ago•0 comments

Introducing OpenCLI

https://patriksvensson.se/posts/2025/07/introducing-open-cli
1•pimterry•5m ago•0 comments

Cocoa Basics Part Zero: Introduction

https://blog.xoria.org/cocoa-basics-0/
1•todsacerdoti•8m ago•0 comments

UK police dangle £75M to digitize its VHS tape archives

https://www.theregister.com/2025/07/08/uk_police_dangle_75_million/
1•jjgreen•8m ago•0 comments

Taichi: High-performance parallel programming in Python

https://www.taichi-lang.org/
2•fanf2•17m ago•0 comments

Heredocs in Dockerfiles (2021)

https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
3•tosh•17m ago•0 comments

Am I Online?

https://antonz.org/is-online/
2•begoon•18m ago•0 comments

C4 Bomb: Blowing Up Chrome's AppBound Cookie Encryption

https://www.cyberark.com/resources/threat-research-blog/c4-bomb-blowing-up-chromes-appbound-cookie-encryption
2•Metalnem•19m ago•0 comments

Kronotop v0.12.0 – Scalable, transactional doc DB with query predicates

https://github.com/kronotop/kronotop/releases/tag/v0.12.0
1•mastabadtomm•22m ago•0 comments

WebAssembly: Yes, but for What?

https://queue.acm.org/detail.cfm?id=3746171
3•todsacerdoti•24m ago•2 comments

Thunderbird 140 ESR is out now with new features

https://www.neowin.net/news/thunderbird-140-esr-is-out-now-with-new-features-bug-fixes-and-critical-security-patches/
2•Bluestein•31m ago•0 comments

Zoopharmacognosy

https://en.wikipedia.org/wiki/Zoopharmacognosy
1•elsewhen•32m ago•0 comments

TIL you can make "GIFs" with SVGs for GitHub README.md files

https://koaning.io/posts/svg-gifs/
3•cantdutchthis•36m ago•0 comments

Lessons I Learned from My Failed SaaS Products

https://andresmax.substack.com/p/lessons-i-learned-from-my-failed
1•sjdonado•40m ago•0 comments

How to become passionate about delivering shareholder value

https://www.seangoedecke.com/shareholder-value/
2•rtukpe•45m ago•1 comments

You don't have to use Nix to manage your dotfiles

https://jade.fyi/blog/use-nix-less/
1•signa11•46m ago•0 comments

Visionaries Without Vision

https://www.hamiltonnolan.com/p/visionaries-without-vision
1•te_chris•50m ago•0 comments

One Day in Kentucky and What Makes America Great

https://www.forkingpaths.co/p/one-day-in-kentucky-and-what-actually-33b
1•rbanffy•51m ago•0 comments

Duke Nukem Is Back, but in a Silly and Sad Way

https://kotaku.com/duke-nukem-world-of-tanks-battle-pass-lara-croft-sad-1851785719
4•Bluestein•51m ago•0 comments

U.S. measles cases reach 33-year high as outbreaks spread

https://www.washingtonpost.com/health/2025/07/07/measles-cases-hit-record/
6•thisisit•54m ago•0 comments

Mudita Kompakt minimalist phone for tweens (dumbphone plus) [YouTube] [video]

https://www.youtube.com/watch?v=UmVUIGr-bus
1•kefabean•56m ago•0 comments

'There's a knife at my throat'. A tax code time bomb hammered small businesses

https://qz.com/tax-code-section-174-tech-layoffs-small-businesses
2•mjwhansen•56m ago•0 comments

Female-led aerospace sewing firm is expanding

https://www.bbc.com/news/articles/cpd19952nx9o
5•Bluestein•57m ago•0 comments

Gabe Newell: Linux is the future of gaming (2013)

https://arstechnica.com/gaming/2013/09/gabe-newell-linux-is-the-future-of-gaming-new-hardware-coming-soon/
2•XzetaU8•58m ago•1 comments

How Proxies Improve SEO Monitoring and Analysis?

https://medium.com/@business_46193/how-proxies-improve-seo-monitoring-and-analysis-01d50d2679cf
1•RainbowJ•59m ago•0 comments

Architect's Guide to Micro-Front Ends: Module Federation with React and Angular

https://developersvoice.com/blog/frontend/micro-frontends-with-react-and-angular/
2•smangla•1h ago•1 comments

Bicycle Helmet Safety Institute

https://helmets.org/
1•archagon•1h ago•0 comments

Is it possible to play doom on an oscilloscope using only lissajous figures?

https://forums.sufficientvelocity.com/threads/is-it-possible-to-play-doom-on-an-analog-oscilloscope-using-only-lissajous-figures.126232/
2•stared•1h ago•0 comments