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/

The Temporal Coherence of Music and Consciousness [video]

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

Show HN: Replacing a 3.4MB video with 40kb of GSAP

https://spanthi.com/blog/gsap-choreography/
1•vein05•6m ago•0 comments

I stay motivated as a solo-creator (2023)

https://herman.bearblog.dev/how-i-stay-motivated-as-a-solo-creator/
1•andsoitis•8m ago•0 comments

CEO Mark Zuckerberg's Senate Hearing

https://blog.acton.org/archives/101128-explainer-what-you-should-know-about-facebook-ceo-mark-zuc...
1•Caarticles•9m ago•0 comments

Monitoring and engaging in social media conversations during a crisis

https://www.tandfonline.com/doi/full/10.1080/23311975.2015.1084978
1•Caarticles•12m ago•0 comments

Private Members Area – Join Now

http://layana.meet2live.online
3•Charlotteer•13m ago•0 comments

Forward deployed engineering heats up again

https://blog.pragmaticengineer.com/the-pulse-forward-deployed-engineering-heats-up-again/
1•logickkk1•15m ago•0 comments

Beware of EU-Washing

https://blog.avas.space/eu-washing/
1•BrunoBernardino•16m ago•0 comments

How API Drift Silently Breaks Data Pipelines

https://medium.com/data-science-collective/how-api-drift-silently-breaks-data-pipelines-and-how-t...
2•mkhorasani•20m ago•0 comments

gopher://gopher.floodgap.com/

https://gopher.floodgap.com/gopher/gw
3•susam•22m ago•0 comments

Lens Aberrations Explained (2023)

https://phillipreeve.net/blog/lens-aberrations-explained-part-1/
1•sirpilade•23m ago•0 comments

Spy: language semantics for a statically-typed compiled variant of Python

https://antocuni.eu/2026/03/25/inside-spy-part-2-language-semantics/
1•fanf2•23m ago•0 comments

"Long-Term Support" doesn't mean what you think

https://pointieststick.com/2026/05/23/long-term-support-doesnt-mean-what-you-think/
1•naves•24m ago•0 comments

Layman with no degree directs AI agents to derive Newton's G to 1.86 ppm

https://github.com/oldrich-research/gravitational-constant-relation
1•Oldrich333•24m ago•1 comments

Bullwhip Effect

https://en.wikipedia.org/wiki/Bullwhip_effect
2•olalonde•24m ago•0 comments

The Booing Will Continue Until Commencement Speeches Improve

https://gizmodo.com/the-booing-will-continue-until-commencement-speeches-improve-2000762929
2•makerdiety•26m ago•0 comments

Show HN: Lightweight, OpenSource, zero-dependency App tour & user onboarding SDK

https://www.npmjs.com/package/@qocial/tour
1•qocialApp•27m ago•0 comments

Show HN: Treasury – Ask your money anything

https://treasury.sh/
1•junead01•27m ago•0 comments

A Language for Describing Agentic LLM Contexts

https://arxiv.org/abs/2605.01920
1•mpweiher•34m ago•0 comments

Conifer, launching June first (free and open source): local inference runtime

https://conifer.build/feedback/
2•loctran0323•36m ago•0 comments

Show HN: MailMark – Cold email tool where you own your domain and mailboxes

1•debasishbarai•42m ago•0 comments

A PR proposes to stabilize the Rust allocator API

https://github.com/rust-lang/rust/pull/156882
1•afdbcreid•42m ago•0 comments

Hyper – an API framework for Bun, distributed as source

https://hyperjs.ai/
1•mmcclure•42m ago•0 comments

QuickGrab – Magic Video Downloader

https://quickgrab.app/
1•exhunter•45m ago•0 comments

TrapDoor Cross-Ecosystem Crypto Stealer Campaign

https://haltingproblems.com/analysis/trapdoor-cross-ecosystem-crypto-stealer/
1•s4mw1se•46m ago•0 comments

Show HN: Voxxy – a minimal, fast voice-to-text app for macOS

https://www.voxxy.io
9•mrguenter•48m ago•0 comments

Anita Calculators: The Technology Explained

http://www.anita-calculators.info/html/the_technology_explained.html
2•rolph•49m ago•0 comments

Flying planes in a geese formation could save carbon emissions

https://www.virgin.com/about-virgin/latest/how-flying-in-a-geese-formation-could-save-carbon-emis...
1•simonebrunozzi•52m ago•1 comments

Show HN: I built a TikTok style video debate app

https://tussup.com
1•frantzarty•52m ago•0 comments

AI agents just got their own web browser via a Firefox fork

https://blog.adafruit.com/2026/05/19/ai-agents-just-got-their-own-web-browser-via-a-firefox-fork/
2•MilnerRoute•1h ago•1 comments