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

Comments

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

Does PPP (Parity Pricing) work for one-time digital products?

https://apmcommunication.com/tech-lead
1•pingananth•45s ago•1 comments

Drew Devault's new microkernel (called "Hermes") blog post

https://drewdevault.com/2026/01/12/2026-01-12-Hermes-from-the-ground-up.html
1•Shugyousha•1m ago•0 comments

Tom Brady Is Newest Face of GLP-1s, Joining Telehealth Startup

https://www.bloomberg.com/news/articles/2026-01-12/tom-brady-is-newest-face-of-glp-1s-joining-tel...
1•alexmorley•2m ago•0 comments

History of Methods Section

https://www.asimov.press/p/methods
1•mailyk•3m ago•0 comments

Apple Confirms Google Gemini Will Power Next-Gen Siri This Year – MacRumors

https://www.macrumors.com/2026/01/12/google-gemini-next-generation-siri/
1•provdr•3m ago•0 comments

Show HN: CleanCloud – Cloud cleanup that can't delete anything

https://getcleancloud.com
1•sureshcsdp•4m ago•1 comments

Experts Warn of Growing Parrot Crisis in Canada

https://www.ctvnews.ca/ottawa/video/2026/01/06/experts-warn-of-growing-parrot-crisis-in-canada/
1•debo_•5m ago•0 comments

Economists are facing a recession as a hiring crunch hits

https://www.ft.com/content/eb080c14-e946-4806-ad66-81b2bb8c67ba
1•ryan_j_naughton•6m ago•0 comments

I Was Kidnapped by Idiots

https://www.theatlantic.com/international/2026/01/kidnapped-baghdad/685470/
2•Tomte•7m ago•0 comments

I tried the new Linux Mint 22.3 – it's a masterclass in polish

https://www.zdnet.com/article/linux-mint-22-3-zena/
1•CrankyBear•8m ago•0 comments

Kelly Mahler's Interoception Apparel Line

https://www.kelly-mahler.com/resources/blog/introducing-kelly-mahlers-interoception-apparel-line/
1•apocolypto•8m ago•0 comments

Ask HN: Which Go web framework do you enjoy using most today and why?

1•rosa_vm•8m ago•0 comments

Newly Launched Product Conference Finder/Matcher

https://www.confmatch.com/
1•Habbekuk•8m ago•1 comments

Romforth: Ultra Portable, Small, Baremetal Forth for Various Processors

https://github.com/romforth/romforth
1•PaulHoule•9m ago•0 comments

Flying and Building a DIY RC Airplane from Scratch [video]

https://www.youtube.com/watch?v=p5PbSkj4Ll0
1•silexia•10m ago•0 comments

Boredom Is the Gatekeeper

https://idiallo.com/blog/boredom-is-the-gatekeeper
2•Brajeshwar•11m ago•0 comments

Inverse Laws of Robotics

https://susam.net/inverse-laws-of-robotics.html
1•Brajeshwar•11m ago•0 comments

Distinct AI Models Seem to Converge on How They Encode Reality

https://www.quantamagazine.org/distinct-ai-models-seem-to-converge-on-how-they-encode-reality-202...
2•Brajeshwar•11m ago•0 comments

University of Utah finds tape with only known copy of Unix V4 hidden in storage

https://www.sltrib.com/news/education/2026/01/07/university-utah-finds-tape-with/
1•ColinWright•11m ago•1 comments

Someone Has to Fly the Plane

https://www.raptitude.com/2026/01/someone-has-to-fly-the-plane/
1•crescit_eundo•13m ago•0 comments

TimeCapsuleLLM: LLM trained only on data from 1800-1875

https://github.com/haykgrigo3/TimeCapsuleLLM
6•admp•13m ago•0 comments

Show HN: Reversing YouTube's "Most Replayed" Graph

https://priyavr.at/blog/reversing-most-replayed/
1•prvt•13m ago•0 comments

Playwriter: Browser extension MCP uses 90% fewer tokens than Playwright

https://github.com/remorses/playwriter
1•Areibman•14m ago•0 comments

Show HN: AI Motion Control – Transfer any motion to any character with Kling AI

https://aimotioncontrol.app
2•sunpy•14m ago•0 comments

VeilNet: A Different Approach to Overlay Networks for Dynamic Infrastructure

https://veilnet.net
1•ulfaric•15m ago•1 comments

I put Economic rules within silicon

https://codeberg.org/ErickAlexander/Primal-Origins-SoC-IP-Core
1•PrimalOrigins•15m ago•1 comments

Apple Warning–iPhones Must Now Restart

https://www.forbes.com/sites/zakdoffman/2026/01/12/apple-warning-hundreds-of-millions-of-iphones-...
2•aq3cn•16m ago•0 comments

New York begins cargo drone trial between Manhattan and Brooklyn

https://blog.adafruit.com/2026/01/12/new-york-begins-cargo-drone-trial-between-manhattan-and-broo...
1•ptorrone•16m ago•1 comments

Show HN: ETLR – An alternative to Zapier/Make/n8n for developers (YAML-based)

https://etlr.io/
1•liambre•17m ago•1 comments

Dead shrimp. Living machines. Necrobotics is here

https://blog.adafruit.com/2026/01/12/dead-shrimp-living-machines-necrobotics-is-here-at-adafruit/
1•ptorrone•17m ago•0 comments