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/

A Rust-based time-series DB for quant workloads (4.5x faster than DuckDB/Polars)

https://old.reddit.com/r/quantfinance/comments/1v4flv0/a_rustbased_timeseries_db_for_quant_worklo...
1•syumei•1m ago•0 comments

NerdLens: Mirror your computer with cardboard VR

https://github.com/ThatXliner/NerdLens
1•thatxliner•1m ago•0 comments

Show HN: Verify what an AI agent did, then tamper with the record (no signup)

https://api.cinchor.com/proof/refund
1•foh_quarters•2m ago•0 comments

Show HN: WatchMachineGo – A visualizer to show hardware performing LLM inference

https://watchmachinego.com/llm-inference
1•dev_dan_2•2m ago•1 comments

Ask HN: Does anyone have an old Goodreads API key?

1•bwb•3m ago•0 comments

Everyone says Chinese AI is dirt cheap

https://badboylabs.com/articles/chinese-ai-models-cheap-benchmark-receipts
2•superluvdub•4m ago•0 comments

The little type that could too much

https://tech.ahrefs.com/the-little-type-that-could-too-much-3f21c2e80430
2•andrewstetsenko•4m ago•0 comments

How to find believers and speed up time to market in Industrial tech?

https://deploy95.substack.com/p/designing-early-gtm-around-believers
1•tristalihaha•4m ago•0 comments

ASCII Art Map of the World (2017)

https://community.sap.com/t5/technology-blog-posts-by-sap/ascii-art-map-of-the-world-different-po...
1•cwmoore•4m ago•0 comments

Show HN: Hosted PaddleOCR-VL-1.6 API

https://www.openparser.dev/
1•TimurKramar•4m ago•0 comments

Camelid – Local AI inference in Rust with desktop, web, terminal, API interfaces

https://github.com/timtoole02/Camelid
1•Tooleman•4m ago•0 comments

The Men Who Believed Some Men Are More Equal Than Others

https://www.nytimes.com/2026/07/22/books/review/country-of-lords-kim-phillips-fein.html
1•mitchbob•5m ago•1 comments

I Reported on Flock's Cameras. Now I'm One of the System's Mistakes

https://www.rascal.news/drivethrurpg-delisted-a-tabletop-game-about-revolutions-over-hateful-poli...
2•healsdata•6m ago•0 comments

$100 to Facebook employee for multiple sclerosis help

1•jph•6m ago•0 comments

Encryption and Globalization 15 Years Later: E2EE and the "Going Dark" Debate

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6959699
2•iamnothere•7m ago•0 comments

Still Looking

https://stilllooking.co/
2•anonguySL•7m ago•0 comments

Milgram Experiment

https://en.wikipedia.org/wiki/Milgram_experiment
1•thunderbong•7m ago•0 comments

Learn WebGPU for C++

https://eliemichel.github.io/LearnWebGPU/
1•ibobev•8m ago•0 comments

The challenges of building a reliable PR review agent

https://charlielabs.ai/blog/how-to-build-a-pr-review-agent/
1•mrbbk•9m ago•0 comments

Vulkan Tutorial

https://vulkan-tutorial.com/
2•ibobev•9m ago•0 comments

Job Lock and Victor Fuchs – American Healthcare Chronicles

https://alearningaday.blog/2026/07/22/job-lock-and-victor-fuchs-american-healthcare-chronicles/
1•herbertl•9m ago•0 comments

Learn OpenGL, extensive tutorial resource for learning Modern OpenGL

https://learnopengl.com/
2•ibobev•10m ago•0 comments

One (strange) particle could soon rewrite our laws of gravity

https://www.sciencefocus.com/space/how-one-particle-could-soon-rewrite-our-laws-of-gravity
1•bryanrasmussen•10m ago•0 comments

California's Privacy Obstacle Course

https://pluralistic.net/2026/07/23/drop-a-dime/
1•hn_acker•10m ago•0 comments

Show HN: Plox – Lox compiler in ~600 LOC from the 'Crafting Interpreters' book

https://github.com/eliasdejong/plox
1•eliasdejong•10m ago•0 comments

I regret to report that the AIs are weebs, too

https://www.pcgamer.com/software/ai/i-regret-to-report-that-the-ais-are-weebs-too/
1•Brajeshwar•10m ago•0 comments

Show HN: GapQuery – find app-market gaps from 35,600 apps and their reviews

https://www.gapquery.com
1•northify•11m ago•0 comments

Snapshots, copy-on-write, and the economics of agent sandboxes

https://builders.cortex.io/blog/sandboxing-agents-part-2/
5•nikhilunni•11m ago•0 comments

Show HN: BatchEdits – Batch AI video editor to edit content in volume

https://batchedits.com
1•shayannadeem321•11m ago•1 comments

PasteFlow

https://chromewebstore.google.com/detail/pasteflow/paenffoomjmkonbgkmfdbnfaljoiilgm
1•rbediner•12m ago•0 comments