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/

Microsoft Windows Media Player stops serving up CD album info

https://www.theregister.com/2026/01/09/microsoft_windows_media_player_forgets/
1•7777777phil•3m ago•0 comments

A Black Hole 450M Light-Years Away Is Firing S-Shaped Jets

https://www.greenmatters.com/pn/a-black-hole-450-million-light-years-away-is-firing-strange-s-sha...
1•akg130522•5m ago•0 comments

Australia social media ban: Teens share their views one month on

https://www.bbc.com/news/articles/c0mpmgn3jv2o
2•giuliomagnifico•9m ago•0 comments

Postcards Connecting the World – Postcrossing

https://www.postcrossing.com/
1•Tomte•10m ago•0 comments

New Telegram PR that replaces 3 taps into 1 to switch user

https://github.com/TelegramMessenger/Telegram-iOS/pull/1977
1•bloodfire•10m ago•0 comments

Constantin Carathéodory: the Greek math wizard who helped Einstein

https://en.wikipedia.org/wiki/Constantin_Carath%C3%A9odory
1•greekanalyst•13m ago•0 comments

Quebec's Lake Rouge vanished – freak natural event or caused by human actions?

https://www.theguardian.com/world/2026/jan/10/quebecs-lake-rouge-vanished-but-was-it-a-freak-natu...
2•pseudolus•14m ago•0 comments

How I made the smallest PlayStation – PS1 Redesign Series Chapter 1

https://www.youtube.com/watch?v=q0sUCJE2s6A
1•truxs•20m ago•0 comments

Synthetic Biology Meets Neuromorphic Computing

https://arxiv.org/abs/2504.10053
3•greekanalyst•21m ago•0 comments

NASA Evacuating ISS Crew After Unprecedented Medical Situation

https://www.sciencealert.com/nasa-evacuating-iss-crew-after-unprecedented-medical-situation
2•ashishgupta2209•22m ago•0 comments

Great Blow

https://en.wikipedia.org/wiki/Great_Blow
1•zeristor•24m ago•0 comments

Finding and Fixing a 50k Goroutine Leak That Nearly Killed Production

https://skoredin.pro/blog/golang/goroutine-leak-debugging
3•ingve•28m ago•0 comments

Rqlite: Distributed Database Built on SQLite

https://rqlite.io/docs/features/
1•dvfjsdhgfv•29m ago•0 comments

The new Haskell Debugger for GHC 9.14

https://discourse.haskell.org/t/the-haskell-debugger-for-ghc-9-14/13499
1•romes•33m ago•0 comments

Immobilised (Part II)

https://zhaoxo.substack.com/p/immobilised-part-ii
1•shrinkzxo•33m ago•0 comments

Pointer Latency

https://rsms.me/projects/pointer-latency/
1•subset•35m ago•0 comments

Beating the Tutorial

https://elliotmorris.net/blog-a-day-3-beating-the-tutorial
1•demorro•35m ago•0 comments

Show HN: InfiniteGPU, An open-source AI compute network,now supporting training

https://github.com/Scalerize/InfiniteGpu
3•frank_lbt•36m ago•1 comments

Poker Manouche – A fast poker-inspired web game (PWA, solo / AI / multiplayer)

https://poker-2853b.web.app/
1•alexandre-g•37m ago•0 comments

Hackers fight back against ICE surveillance tech

https://www.theregister.com/2026/01/09/hackers_fight_back_against_ice/
1•abdelhousni•40m ago•0 comments

Show HN: Perplexity Comet MCP – Autonomous Web Browsing for Claude Code

https://github.com/RapierCraft/Perplexity-Comet-MCP
1•RapierCraft•41m ago•0 comments

Debian Taco – Towards a GitSecDevOps Debian

https://blog.josefsson.org/2026/01/09/debian-taco-towards-a-gitsecdevops-debian/
1•edward•45m ago•0 comments

Many small queries are efficient in SQLite

https://sqlite.org/np1queryprob.html
4•SmartHypercube•46m ago•0 comments

An adequate left-associated binary numeral system in the lambda calculus

https://www.brics.dk/RS/95/42/index.html
1•fanf2•50m ago•0 comments

Musk says X outcry is 'excuse for censorship'

https://www.bbc.co.uk/news/articles/ce3kqzepp5zo
2•chrisjj•51m ago•0 comments

Show HN: Miito- Added TikTok like videos to Google Meet to fix my attention span

https://chromewebstore.google.com/detail/miito-focus-overlay-for-m/hlnfebhmljcldnhepjeiodhmijahlhcc
2•miemex•51m ago•1 comments

Greenland bans all oil exploration (2021)

https://www.cbc.ca/news/business/greenland-oil-1.6105230
1•vincvinc•53m ago•0 comments

DeepSeek to Release Next Flagship AI Model with Strong Coding Ability

https://old.reddit.com/r/LocalLLaMA/comments/1q88hdc/the_information_deepseek_to_release_next_fla...
2•dworks•55m ago•0 comments

EU Parliament eyes freezing US trade deal over Trump's Greenland threats

https://www.politico.eu/article/eu-parliament-eyes-freezing-us-trade-deal-over-donald-trump-green...
1•saubeidl•59m ago•1 comments

Why Do Galaxies Refuse to Obey Gravity? Universe Is Accelerating and Science

https://medium.com/@pajuhaan/why-do-galaxies-refuse-to-obey-gravity-fb7cfa5ac8b1
1•pajuhaan•1h ago•1 comments