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

Comments

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

The Guide to Claude Opus 4.7

https://www.productcompass.pm/p/claude-opus-4-7-guide
1•sminchev•3m ago•0 comments

Making RAM at Home

https://www.youtube.com/watch?v=h6GWikWlAQA
1•seitzp•6m ago•0 comments

Claude Evolve: ShinkaEvolve code evolution on only Claude Code

https://github.com/samuelzxu/claude-evolve
1•samuelzxu•7m ago•1 comments

The rich world faces a painful bout of inflation

https://economist.com/leaders/2025/10/16/the-rich-world-faces-a-painful-bout-of-inflation
1•andsoitis•9m ago•0 comments

The Onion launches new effort to turn InfoWars into parody website

https://www.bbc.co.uk/news/articles/ckgr7dw55lwo
1•piqufoh•9m ago•0 comments

Open JJ: parallel jj workspaces in VS Code, in one click

https://marketplace.visualstudio.com/items?itemName=olup.open-jj
1•olup•10m ago•0 comments

Ok, What Uses Rust?

https://blog.goose.love
1•iNic•11m ago•0 comments

Show HN: I tracked 4,200 GitHub startup orgs for 6 months – here's the watchlist

https://signals.gitdealflow.com/predicted
1•the_data_nerd•11m ago•0 comments

Haiku-ARM64-Build

https://rcarmo.github.io/projects/haiku-arm64-build.html
2•rcarmo•12m ago•0 comments

Nova Launcher could soon add proactive AI assistant that sucks up all your data

https://www.androidauthority.com/nova-launcher-ai-plus-subscription-apk-teardown-3658932/
1•croes•13m ago•0 comments

$5k bounty program from Pydantic Monty

https://hackmonty.com
1•scolvin•13m ago•0 comments

Original Task Manager creator explains why it lies to you about CPU usage

https://www.tomshardware.com/software/windows/original-task-manager-creator-explains-why-it-lies-...
2•maxloh•16m ago•0 comments

Would you use a tool that enforces consistency with real consequences?

https://proofly.migliorarecorp.com/
1•talhaahsan•16m ago•0 comments

A type-safe, realtime collaborative Graph Database in a CRDT

https://codemix.com/graph
2•phpnode•16m ago•0 comments

Labels create neural pathways that outlast their triggers

https://medium.com/@genady_awarelife/the-tool-that-shapes-what-you-can-see-f43f434fa3c2
1•genadym•16m ago•0 comments

Want to Speak to the Manager? At a New San Francisco Store, That's A.I

https://www.nytimes.com/2026/04/21/us/san-francisco-store-managed-ai-agent.html
1•reaperducer•16m ago•0 comments

The Bitter Lesson versus the Garbage Can

https://www.oneusefulthing.org/p/the-bitter-lesson-versus-the-garbage
1•theorchid•18m ago•0 comments

New post: The Markdown Link No. 23

https://md-handbook.com/blog/markdown-link-no-23/
1•wordius•19m ago•0 comments

Ukraine's Drone Innovations Are Influencing Europe's Militaries (2025)

https://smallwarsjournal.com/2025/06/11/ukraines-battlefield-drone-innovations/
1•breve•22m ago•0 comments

AgentSearch – self-hosted SearXNG API for LLM search, no keys

https://github.com/brcrusoe72/agent-search
1•bricrusoe•22m ago•1 comments

JAXA mulls launching H3 test rocket in June after last year's failure

https://english.kyodonews.net/articles/-/74617
2•01-_-•22m ago•0 comments

US Supreme Court to assess FCC power to fine in clash with wireless carriers

https://www.reuters.com/sustainability/boards-policy-regulation/us-supreme-court-assess-fcc-power...
1•01-_-•23m ago•0 comments

Study suggests eating fruits and vegetables leads to cancer

https://arstechnica.com/health/2026/04/absurdly-bad-study-spurs-headlines-linking-healthy-diet-to...
1•chha•24m ago•0 comments

What software engineer have to learn in era of LLMs

https://aleksei-kornev.medium.com/what-software-engineer-have-to-learn-in-era-of-llms-27ea70ebc7bf
1•alkornev•24m ago•0 comments

5.6x throughput on Kimi K2.6 by speculating less

https://huggingface.co/florianleibert/kimi-k26-dflash-mi300x
5•florianleibert•25m ago•1 comments

GPT Image 2 – native multimodal image generator

https://gptimg.co/
1•xbaicai•28m ago•0 comments

The Inquisition, in Beta

https://postcorporate.substack.com/p/the-inquisition-in-beta
1•gnostikka•30m ago•0 comments

Preserved for billions of years, organic compounds found on Mars

https://www.courthousenews.com/preserved-for-billions-of-years-organic-compounds-found-on-mars/
1•geox•30m ago•0 comments

TinyGo 0.41 on ESP32 – At Long Last, Wireless

https://tinygo.org/blog/2026/tinygo-0-41-the-big-release/
1•deadprogram•31m ago•0 comments

'Earthset' Is Captured on Video for First Time

https://www.nytimes.com/2026/04/20/science/reid-wiseman-earthset-photo-artemis-2.html
2•nyc111•31m ago•1 comments