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/

Digital Health Tools Are Reshaping Healthcare in the United States

https://nyulangone.org/news/digital-health-tools-are-reshaping-healthcare-united-states
2•giuliomagnifico•4m ago•0 comments

Kafka's Broken Promise: There Is No Goldilocks Log

https://www.opendata.dev/blog/announcing-opendata-log/
2•rmoff•6m ago•0 comments

Israel targeted Gaza children resulting in genocide, UN inquiry says

https://www.reuters.com/world/middle-east/israel-targeted-gaza-children-resulting-genocide-un-inq...
5•supercopter•7m ago•0 comments

We ran 1k queries through ChatGPT: 48 domains produced 22.5% of citations

https://growtika.com/blog/chatgpt-citation-economy
4•Growtika•8m ago•0 comments

N8n 2026 AI agent builder report

https://n8n.io/reports/2026-ai-agent-development-tools/
3•johannesishere•11m ago•0 comments

Synthetic Infrastructure Testing with Canary Checker and Flux

https://flanksource.com/blog/infrastructure-testing-with-canary-checker-and-flux
2•yashmehrotra•18m ago•1 comments

Crypto in 2026: Oh, This Is the Bad Place

https://www.stephendiehl.com/posts/bad_place_2026/
3•ibobev•19m ago•0 comments

Prism: An Impure Functional Language with Typed Effects

https://www.stephendiehl.com/posts/prism/
2•ibobev•20m ago•0 comments

Show HN: Shumai – open-source Frame.io alternative for creative work

https://github.com/shumaiOne/shumai
2•Yiling-J•21m ago•0 comments

What Is Software, and Will LLMs Replace It?

https://tomassetti.me/what-is-software-llms-interface-layer/
2•ftomassetti•21m ago•0 comments

Divergent Histories

https://buttondown.com/jaffray/archive/divergent-histories/
2•ibobev•21m ago•0 comments

Risk Assessment in under 5 minutes for NIS2

https://nisd2.eu/risikobewertung
1•cjhisey•26m ago•0 comments

You already have a Git server

https://gopeek-lovat.vercel.app/blog-you-already-have-a-git-server.html
3•sheelagay•32m ago•0 comments

Show HN: SaaS Pegasus – the original Django boilerplate, now MIT-licensed

https://github.com/saaspegasus/django-boilerplate
1•czue•37m ago•1 comments

Elon's Net Worth Today

https://whatselonworth.com/
2•Malfunction92•39m ago•1 comments

See How Sam Altman's Personal Investments Benefit from Ties to OpenAI

https://www.wsj.com/tech/ai/see-how-sam-altmans-personal-investments-benefit-from-ties-to-openai-...
1•thm•39m ago•0 comments

Show HN: DomainDash – uptime/SSL/domain checks for client sites

https://domaindash.io
1•edcs•40m ago•0 comments

Ask HN: Does in your workplace employee engagement / recognition is important?

4•mattsadowsky•40m ago•2 comments

Fil-C Linux/x86_64 version 0.680 Latest

https://github.com/pizlonator/fil-c/releases/tag/v0.680
2•sibellavia•42m ago•0 comments

Recursively Diff Packages

https://github.com/anthraxx/diffoscope
1•ankitg12•42m ago•0 comments

OCaml 5.5.0 Released

https://discuss.ocaml.org/t/ocaml-5-5-0-released/18265
2•dtoma•43m ago•0 comments

Run isolated sandboxes with full lifecycle control: AWS introduces MicroVMs

https://aws.amazon.com/blogs/aws/run-isolated-sandboxes-with-full-lifecycle-control-aws-lambda-in...
1•justincormack•44m ago•0 comments

I built a GPU back end for Emacs

https://en.andros.dev/blog/4b707a03/how-i-built-a-gpu-backend-for-emacs/
2•andros•45m ago•0 comments

Show HN: I built a PC-part picker that handles compatibility and shortages

https://pc-cool.com/
2•mesahm•46m ago•0 comments

Show HN: OpenTerm – A tiny, fast SSH client (no login, no cloud, free)

https://github.com/zhangshuo1991/openterm
1•zhangshuo1991•47m ago•0 comments

Sakana.ai releases a model competiting with Fable

https://sakana.ai/fugu-release/
2•LexSiga•47m ago•0 comments

A game where you're an OS and have to manage processes, memory and I/O events

https://github.com/plbrault/youre-the-os
2•exploraz•48m ago•1 comments

AI models capable of devastating attacks on governments and business months away

https://www.theguardian.com/technology/2026/jun/22/anthropic-claude-fable-ai-model-artificial-int...
1•eternalreturn•49m ago•0 comments

Reclassifying ARC as Historic – DKIM2 to solve the problem better

https://datatracker.ietf.org/doc/draft-ietf-dmarc-arc-to-historic/
1•peregrinus_13•49m ago•0 comments

NavigationServer2D in Godot: The Complete Guide

https://vav-labs.com/blog/navigationserver2d-godot-complete-guide/
1•Vav-Labs•49m ago•0 comments