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/

Quantum Gravity, UAPs, Wormholes

https://twitter.com/JackSarfatti/status/2101775865789223054
1•DanielBMarkham•55s ago•0 comments

Linker I/O tricks and their downsides

https://maskray.me/blog/linker-io-tricks-and-their-downsides
1•r4um•1m ago•0 comments

Engineering Memory: Thoughts on learning to memorize first 100 digits of pi

https://gregorygundersen.com/blog/2024/12/21/engineering-memory/
1•fuzzythinker•2m ago•0 comments

Finding Bugs

https://matklad.github.io/2026/09/19/finding-bugs.html
1•r4um•4m ago•0 comments

Show HN: Race – Terminal Multiplexer on Infinite Canvas (macOS and Linux Beta)

https://race-term.com/
1•xlii•6m ago•0 comments

Show HN: A GUI for non programmers for Epic's version control system Lore

https://www.anchorpoint.app/lore
1•m_niedoba•8m ago•0 comments

Intel Ends Its $100k Bug Bounty Program

https://www.techpowerup.com/352872/intel-ends-its-usd-100-000-bug-bounty-program
2•giuliomagnifico•13m ago•0 comments

Show HN: A solar-powered, privacy-preserving vehicle counter (Pi 5 and YOLOv8)

https://www.mch170.com/projects/traffic_monitoring
1•MCH170•15m ago•0 comments

The PopuList

https://popu-list.org/
1•futurecat•22m ago•0 comments

Dialedin – Put your lab PDFs, protocols and daily logs on one timeline

https://dialedin.bio
1•redigaffi•27m ago•0 comments

Trump Ramps Up Bid to Dismantle International Criminal Court

https://www.wsj.com/politics/policy/trump-administration-prepares-to-sanction-the-international-c...
5•TechTechTech•29m ago•0 comments

Notorious cybercrime group claims hijack of rival's website

https://www.reuters.com/legal/government/cybercrime-feud-erupts-dark-web-notorious-group-claims-h...
1•HelloUsername•30m ago•0 comments

Rust+Box2D Browser Physics Sandbox with Multiplayer

https://v-yanakiev.itch.io/machina
1•v-yanakiev•30m ago•1 comments

Nvidia boss says there is '0% chance' AI destroys the world by 2030

https://www.theguardian.com/technology/2026/sep/21/nvidia-boss-jensen-huang-dismisses-warnings-ai...
3•01-_-•37m ago•3 comments

Kaohsiung adds new hub to semiconductor corridor

https://www.taiwannews.com.tw/news/6443294
1•01-_-•38m ago•1 comments

Show HN: CallFirst – blocks socials until you've made a call to someone

https://callfirst.app/
2•fribble•44m ago•0 comments

iFixit Teardown: iPhone 18 Pro and Pro Max

https://www.ifixit.com/News/119329/inside-the-tiny-unfixable-eye-iphone-18-pro-and-pro-max-teardown
4•tosh•46m ago•1 comments

Jev 1.13 Jaggedness

https://docs.typesafe.ai/model-jaggedness/jev-1.13
3•Bluestein•47m ago•0 comments

TPM-Attest: Hardware-Rooted Anti-Cheat Alternative for Linux

https://arxiv.org/abs/2609.20909
1•sbulaev•51m ago•0 comments

Nimble takes some text and a schema, and makes typed decisions about the text

https://github.com/bespokelabsai/nimble
1•Bluestein•54m ago•0 comments

Show HN: Bitcoin-rs – An AI-assisted Bitcoin full node in Rust

https://github.com/gosuda/bitcoin-rs
7•dreamcacao02183•55m ago•0 comments

A Dangerous Castle

https://chloemashitermakesthings.wordpress.com/2026/09/14/a-dangerous-castle/
1•rdmuser•57m ago•0 comments

Generating Artist-Like 3D Mesh Topology via Nearest-Vertex Vector Fields

https://derkleineli.github.io/triflow/
1•ibobev•58m ago•0 comments

I'm afraid of spiders. So I made AI look at 2k of them

https://labqoat.com/blog/how-well-can-ai-identify-spiders
5•michalwarda•58m ago•0 comments

Sparse resources helped my GPU-driven renderer memory usage

https://zino2201.substack.com/p/how-sparse-resources-helped-my-gpu
1•ibobev•58m ago•0 comments

Gabor Fields: Orientation-Selective Level-of-Detail for Volume Rendering

https://arcanous98.github.io/projectPages/gaborVolumes.html
1•ibobev•59m ago•0 comments

OpenXLR – A Linux Variant of Elgato Wave Link

https://github.com/emaspa/openxlr
1•michaelbrooks•59m ago•0 comments

Show HN: A GeoJSON viewer that checks the bbox you declared

https://9revolution9.com/tools/geo/geojson-viewer
3•glassonion999•59m ago•0 comments

Thomson-1.0-Small LLM Developed by Thomson Reuters

https://featherless.ai/models/thomsonreuters/Thomson-1.0-Small
1•Bluestein•1h ago•0 comments

FSD Supervised now approved in Czech Republic

https://twitter.com/teslaeurope/status/2101947798933385410
1•tosh•1h ago•0 comments