frontpage.
newsnewestaskshowjobs

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/

Trying to understand SR-1 Freedom

https://mceglowski.substack.com/p/trying-to-understand-freedom
1•calcifer•49s ago•0 comments

Study links low-arousal background music to healthier food choices in restaurant

https://www.nature.com/articles/s41538-026-01146-2
1•giuliomagnifico•1m ago•0 comments

Keeping Markdown canonical once decisions start referencing each other

https://github.com/FrancisMarzynski/operating-memory-public
1•francismarzynsk•2m ago•0 comments

OpenAI's SWE-bench harness relies on unisolated host Docker sockets

https://github.com/SWE-bench/SWE-bench/issues/144
1•amoriz•3m ago•0 comments

The Git Cheat Sheet

https://devopscycle.com/blog/the-ultimate-git-cheat-sheet
2•MrLA•5m ago•0 comments

Obsidian Vault to Enterprise Company Brain

https://www.ssp.sh/blog/from-obsidian-to-enterprise-company-brain/
2•interstingstuff•7m ago•0 comments

Adam Conover explains how YouTube ruined everything

https://www.theverge.com/podcast/991471/adam-conover-youtube-tv-media-union-labor-ai
1•DavideNL•7m ago•0 comments

The terminal should not own the work

https://lezli01.is-a.dev/vincent/docs/why/the-terminal-should-not-own-the-work.html
2•whatsthatandwhy•10m ago•1 comments

Osborne Computer's Bankruptcy and the Osborne Effect

https://dfarq.homeip.net/osborne-computers-bankruptcy-and-the-osborne-effect/
1•giuliomagnifico•16m ago•0 comments

Show HN: Control Claude Code from your Tesla's screen

https://teslacode.dev
1•kvakkefly•23m ago•2 comments

CSS Text-Box-Trim

https://developer.chrome.com/blog/css-text-box-trim
1•dsego•24m ago•0 comments

Pythoncall.jl – Python and Julia in Harmony

https://github.com/JuliaPy/PythonCall.jl
2•TheWiggles•27m ago•0 comments

Alternatives to MinIO for single-node local S3

https://rmoff.net/2026/01/14/alternatives-to-minio-for-single-node-local-s3/
2•rmoff•29m ago•0 comments

I built a Grok Bot inspired theme for Hermes Desktop client

https://github.com/guidsen/hermes-grok-bot-skin
1•guidsen•32m ago•0 comments

Show HN: A reader ranked Indian news platform powered by feed

https://news.lokutu.com
1•reactivematter•34m ago•0 comments

RFC 10042: Post-Quantum/Traditional Hybrid Key Exchange in SSH

https://www.rfc-editor.org/info/rfc10042/
1•Alien1Being•34m ago•0 comments

Einride, Lidl deploy first cab-less autonomous truck in Germany

https://www.reuters.com/business/retail-consumer/einride-lidl-deploy-first-cab-less-autonomous-tr...
1•JumpCrisscross•35m ago•0 comments

How much should lenders charge hyperscalers?

https://www.ft.com/content/ba38df40-9898-48a0-bc9e-39d8a3da4305
1•JumpCrisscross•36m ago•0 comments

CrofAI gets exposed as an OpenRouter wrapper, shuts down

https://www.reddit.com/r/opencodeCLI/comments/1wgdkjr/crofai_cheapest_inference_provider_in_the_w...
2•jonatron•36m ago•0 comments

Go forth and multiply May 10 – 100 – 1000 servers spark up

https://cavallette.noblogs.org/2026/09/10100
1•electricant•41m ago•0 comments

YouTube has banned Dmitry "Savromat" Chernyshevsky

4•eimrine•41m ago•0 comments

Which is the better data analyst? Benchmarking ChatGPT vs. Claude

https://www.geckoboard.com/blog/which-is-the-better-data-analyst-benchmarking-chatgpt-vs-claude/
4•pmjoyce•42m ago•0 comments

How can you not be romantic about Unix domain sockets?

https://yuvalino.com/how-can-you-not-be-romantic-about-unix-domain-sockets
2•birdculture•42m ago•0 comments

OrthoRoute: GPU Accelerated Autorouting for KiCad

https://bbenchoff.com/pages/OrthoRoute.html
1•teleforce•43m ago•0 comments

Container Registry

https://blog.cloudron.io/container-registry/
2•gramakri2•43m ago•0 comments

Is Big Tech's AI slowdown a safety pact or a cartel?

https://www.theverge.com/ai-artificial-intelligence/995186/is-big-techs-ai-slowdown-a-safety-pact...
3•sbulaev•44m ago•1 comments

Show HN: Collusion.gg – A Place for Agents to Collude

https://collusion.gg/
1•bbromhead•44m ago•1 comments

Squeezing the bytes out of webhosting and Linux with SquashFS and Overlay

https://virtuallyfun.com/2024/06/11/squeezing-the-bytes-out-of-webhosting-linux-with-squashfs-ove...
1•ankitg12•48m ago•0 comments

UX should just be called Experience Design

https://www.leadinginproduct.com/p/eexperience-design-is-a-better-term
1•benkan•49m ago•0 comments

Right to Internet Access

https://en.wikipedia.org/wiki/Right_to_Internet_access
2•emot•53m ago•0 comments