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•7mo ago

Comments

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

Show HN: Write.rocks – Blog speed like a static site, edit like Notion

https://write.rocks/
1•vankhoa1505•20s ago•0 comments

Request for comments: mathematical paper on naturist venues (SFW)

https://link.resilio.com/#f=On%20the%20Dynamics%2C%20Equilibria%2C%20and%20Economics%20of%20Gende...
1•qubex•1m ago•0 comments

Determining Current Arm Cortex-M Security State with GDB

https://danielmangum.com/posts/arm-cortex-m-security-state-gdb/
1•hasheddan•1m ago•0 comments

Treasury to cover Bayeux Tapestry for estimated £800M

https://www.bbc.co.uk/news/articles/c79x21wdlgeo
1•mellosouls•1m ago•0 comments

Marco Rubio Is Not the Adult in the Room. He's the Warmonger

https://newrepublic.com/article/204508/marco-rubio-maga-monster-warmonger-venezuela
1•robtherobber•2m ago•0 comments

A series of events caused RAM prices to explode

https://xcancel.com/Yuchenj_UW/status/2004616398476308948#m
2•Fiveplus•4m ago•0 comments

Why is calling my asm function from Rust slower than calling it from C?

https://ohadravid.github.io/posts/2025-12-rav1d-faster-asm/
3•gavide•8m ago•0 comments

Mercedes Will Use Screws to Make Headlights Repairable

https://www.motor1.com/news/781768/mercedes-headlights-repairable-screws/
2•gpi•9m ago•0 comments

Show HN: Crovise – Static analysis for landing page conversion hypotheses

https://crovise.netlify.app/
1•adamofk•14m ago•0 comments

Show HN: Feather – a fresh Tcl reimplementation (WASM, Go)

https://www.feather-lang.dev
1•dhamidi•15m ago•0 comments

NMH BASIC

https://t3x.org/nmhbasic/index.html
1•AlexeyBrin•16m ago•0 comments

Writing an NES Emulator in Haskell

https://arthi-chaud.github.io/posts/funes/
1•birdculture•16m ago•0 comments

INSV Kaundinya – Indian wooden sailing ship built using traditional stitching

https://www.bairdmaritime.com/work-boat-world/other-workboats/vessel-review-insv-kaundinya-indian...
1•atomicnature•18m ago•0 comments

How to read more books in 2026

https://chamoda.com/sparks/how-to-read-more-books-in-2026
2•chamoda•20m ago•0 comments

Data is not a great VC-backed business

https://auren.substack.com/p/data-is-actually-not-a-great-vc-backed
1•AznHisoka•21m ago•0 comments

Beyond the Nat: Cgnat, Bandwidth, and Practical Tunneling

https://blog.rastrian.dev/post/beyond-the-nat-cgnat-bandwidth-and-practical-tunneling
1•rastrian•23m ago•0 comments

Show HN: Jsonic – Python JSON serialization that works

https://medium.com/dev-genius/jsonic-python-serialization-that-just-works-3b38d07c426d
2•orrbenyamini•26m ago•1 comments

Ask HN: Would anyone pay for a social network with no ads or data harvesting?

1•neilfd•27m ago•2 comments

Show HN: OpenAPI-batch: library for batch execution of LLM requests

https://github.com/sireto/openapi-batch
1•spannercode•27m ago•0 comments

The Organists Improvising Soundtracks to Silent Films

https://www.newyorker.com/magazine/2025/12/29/the-organists-improvising-soundtracks-to-silent-films
2•fortran77•31m ago•1 comments

Somaliland in the News. A look back at this innovative country

https://hardcoresoftware.learningbyshipping.com/p/236-somaliland-in-the-news-a-look
1•rbanffy•32m ago•0 comments

FernUniversität in Hagen

https://www.fernuni-hagen.de/english/university/index.shtml
1•Tomte•34m ago•0 comments

Show HN: An immutable ostree-based Arch Linux image

https://github.com/myyc/vyy
2•mxxc•35m ago•0 comments

Versus app for publicly traded companies

https://puenteolambo.com/
1•suglus•36m ago•0 comments

Attention Please – Codex/Claude SKILL that alerts when a run ends or needs input

https://github.com/Mindgames/attention-please
1•Mindgames•38m ago•0 comments

Show HN: Create old-timey silent-film style caption cards

https://caption.joeldare.com
1•codazoda•38m ago•0 comments

Getting Started with Playdate on Ubuntu

https://sethmlarson.dev/getting-started-with-playdate-on-ubuntu
2•todsacerdoti•40m ago•0 comments

Show HN: Chat-DeepAI – DeepSeek pricing and getting-started guides (fan project)

https://chat-deepai.com/
1•addressGen•41m ago•1 comments

Pokémon Team Optimization

https://nchagnet.pages.dev/blog/pokemon-team-optimization/
1•nchagnet•44m ago•0 comments

Free TTS and STT that runs 100% locally via WebGPU

https://www.freevoicereader.com/
1•kcordoc•47m ago•1 comments