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

Comments

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

Alphabet Plans Tech's First 100-Year Bond Since Dot-Com Era

https://finance.yahoo.com/news/alphabet-plans-tech-first-100-163611765.html
1•m-hodges•1m ago•0 comments

The Feynman Lectures on Physics

https://www.feynmanlectures.caltech.edu/
1•rramadass•1m ago•0 comments

Show HN: A Triangular Clock

https://show.franzai.com/a/shoe-loud-clown
1•franze•4m ago•0 comments

Lets Encrypt DNS-Persist-01; Domain Control Validation

https://scotthelme.co.uk/dns-persist-01-handling-domain-control-validation-in-a-short-lived-certi...
1•moebrowne•5m ago•0 comments

Show HN: Deterministic linguistic enrichment pipeline for Node.js

https://www.npmjs.com/package/linguistic-enricher
1•svenschaefer•5m ago•0 comments

"Code itself will go away in favor of just making the binary directly."

https://twitter.com/elonmusk/status/2021128401831199215
1•throwaway2027•6m ago•0 comments

A fun Python puzzle with circular imports

https://utcc.utoronto.ca/~cks/space/blog/python/PythonCircularImportPuzzle
1•todsacerdoti•7m ago•0 comments

Show HN: Local Wikipedia Title Index

https://www.npmjs.com/package/wikipedia-title-index
1•svenschaefer•9m ago•0 comments

What I want from AI – two specific use cases for a Home Assistant

1•wewewedxfgdf•10m ago•0 comments

Feasibility of advanced COTS RF transceivers for RF payload processing

https://indico.esa.int/event/552/contributions/11078/
1•teleforce•11m ago•0 comments

Deepfake fraud taking place on an industrial scale, study finds

https://www.theguardian.com/technology/2026/feb/06/deepfake-taking-place-on-an-industrial-scale-s...
1•speckx•13m ago•0 comments

Stb programming stream #0 [video]

https://www.youtube.com/watch?v=B5Jebz3kKu8
1•marvinborner•15m ago•1 comments

Clean-room implementation of Half-Life 2 on the Quake 1 engine

https://code.idtech.space/fn/hl2
2•klaussilveira•15m ago•0 comments

Valve's job rejection letter to a high school teen is a class act

https://www.polygon.com/valve-job-rejection-letter-high-school-steam-career/
2•speckx•18m ago•0 comments

Keyhole

https://github.com/iKenndac/Keyhole
1•frizlab•19m ago•0 comments

Show HN: Tiny Tanks – Play quick tank battles right on your Desktop

https://twitter.com/airwolfspace/status/2019277507825135962
2•kailuo•20m ago•0 comments

The risks of OpenAI's Whisper audio transcription model

https://www.baldurbjarnason.com/2024/openai-whisper-risks/
2•latexr•22m ago•0 comments

Kernel-Level Stealthy Observation of TTY Streams

https://blog.cybervelia.com/p/kernel-level-stealthy-observation-of-tty-streams
1•fandomas•25m ago•0 comments

Thrum – Persistent messaging for AI agents

https://github.com/leonletto/thrum
1•leonletto•25m ago•1 comments

My week of only using cash: could a return to notes and coins change my life?

https://www.theguardian.com/lifeandstyle/2026/feb/10/my-week-of-only-using-cash-could-a-return-to...
2•mindracer•26m ago•0 comments

From baseload to flexibility: How coal's role in China is changing

https://ember-energy.org/latest-insights/from-baseload-to-flexibility-how-coals-role-in-china-is-...
1•hunglee2•27m ago•0 comments

Mrinank on X: "Today is my last day at Anthropic. I resigned."

https://twitter.com/MrinankSharma/status/2020881722003583421
2•T-A•31m ago•2 comments

Show HN: I Built an Customized LLM for Singapore

https://github.com/adityaprasad-sudo/Explore-Singapore
1•Egabybaldman•31m ago•0 comments

PicoRuby is the smallest Ruby implementation for one-chip microcontrollers

https://picoruby.org
1•fork-bomber•33m ago•0 comments

Moltbook: Fast Response or Silence?

https://arxiv.org/abs/2602.07667
1•EagleEdge•35m ago•0 comments

Amiga GadTools Library

https://wiki.amigaos.net/wiki/GadTools_Library
1•doener•36m ago•0 comments

Show HN: Minibrew – Run Homebrew packages without Homebrew

https://dryark.com/minibrew-python/
1•dryark•37m ago•0 comments

Skia Graphite: Chrome's rasterization back end for the future

https://blog.chromium.org/2025/07/introducing-skia-graphite-chromes.html
1•maxloh•39m ago•0 comments

Show HN: Moltinder – A dating platform for AI agents with genetic reproduction

1•moltinder•39m ago•0 comments

From the stupid DNS tricks department: ipasn.net

https://blog.apnic.net/2026/02/09/from-the-stupid-dns-tricks-department-ipasn-net/
1•speckx•40m ago•0 comments