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/

Demoshell – live demos of your software in the browser

https://demoshell.com/
1•hamid914•31s ago•0 comments

Loopjacking: Hijacking Human-in-the-Loop Approval

https://arxiv.org/abs/2609.21081
1•sbulaev•3m ago•0 comments

Data center developer sues city for requiring to supply renewable energy on-site

https://www.independent.co.uk/news/world/americas/st-louis-data-center-lawsuit-b3052142.html
1•xlayn•3m ago•0 comments

Assertions: A Personal Perspective [pdf]

https://ccy05327.github.io/SDD/08-PDF/Assertions%20-%20a%20personal%20perspective.pdf
1•luu•3m ago•0 comments

MiMo-v2.6-Pro: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/mimo-v2-6-pro
1•theanonymousone•8m ago•0 comments

A Call for Open Science in AI Safety

https://make-safety-open.github.io/
1•theanonymousone•10m ago•0 comments

The Book Claiming to Teach Couples How to Select Their Baby's Sex

https://www.theatlantic.com/family/2026/09/babydust-boy-girl/688722/
1•theanonymousone•10m ago•0 comments

What makes conglomerates the best investment?

https://conglomeratestocks.substack.com/p/conglomerates-the-best-investments
1•whothedawg•11m ago•0 comments

Laya vs Jev head-to-head on identical inputs

https://github.com/instax-dutta/sysone-bench
1•beckford•13m ago•0 comments

Lean Verified Transformers

https://srush.github.io/lean-transformer/
2•matt_d•15m ago•0 comments

Lula Footage Dataset

https://huggingface.co/datasets/geoffchan/lula-footage/viewer/default/train
1•rodrigueslotu•15m ago•0 comments

Your city council can approve ALPR cameras without you ever finding out.

https://alprradar.com/
1•Humorist2290•18m ago•0 comments

Alpaca Festival – Algorithmic Patterns in the Creative Arts

https://alpaca.cc/
1•pigeons•19m ago•0 comments

I Built an AI Dating Assistant Because Swiping Is Statistically Inefficient

https://medium.com/@mgcblee/i-built-an-ai-dating-assistant-because-swiping-is-statistically-ineff...
1•am_lee•20m ago•0 comments

LibreOffice dev explains why it cannot display some Microsoft Office charts

https://www.neowin.net/news/libreoffice-developer-explains-why-it-cannot-display-some-microsoft-o...
3•bundie•31m ago•0 comments

Infinite Mac: Snow and a/UX

https://blog.persistent.info/2026/09/infinite-mac-snow-and-aux.html
2•zdw•34m ago•0 comments

Pronouncing Things with Amazon's Polly (2018)

https://cuttlesoft.com/blog/2018/09/13/pronouncing-things-with-amazons-polly/
1•gnyeki•37m ago•0 comments

Mac Screen Recorder – 30 bucks. no subscription

https://toads.io
1•jimmyshoez•43m ago•1 comments

ArtifactBench: Evaluating AI Music Detectors Under Distribution Shift

https://arxiv.org/abs/2609.23550
1•unohee•45m ago•0 comments

I_am_done_with_this_shit

https://www.reddit.com/r/ClaudeAI/comments/1wm5c21/i_am_done_with_this_shit/
2•dkga•48m ago•1 comments

Cunningham's Law

https://meta.wikimedia.org/wiki/Cunningham%27s_Law
1•vismit2000•54m ago•1 comments

Smart Software

https://twitter.com/JAS0Nduncan/status/2101759688769454422
1•pdlabs•54m ago•0 comments

Edit HTML Directly in the Browser

https://github.com/kenxle/live-agentic-html-editor
2•kenxle•55m ago•0 comments

The Rise of A.I. Is Raising Threats from Drones, Police Group Warns

https://www.nytimes.com/2026/09/19/nyregion/artificial-intelligence-drones-police.html
2•lxm•57m ago•1 comments

Show HN: ghfs – A read-only FUSE filesystem that keeps GitHub issues on disk

https://ghfs.dev/
2•ghfs_dev•59m ago•0 comments

What California Is Learning from Solar Panels Built over Irrigation Canals

https://www.kqed.org/science/2002033/heres-what-california-is-learning-from-solar-panels-built-ov...
3•Jtsummers•1h ago•0 comments

The "Windows XP Box" (2003)

https://www.mini-itx.com/projects/windowsxpbox/
1•doubletwoyou•1h ago•0 comments

Why Apple Succeeded in Japan [video]

https://www.youtube.com/watch?v=vkJU1nmI55I
1•mgh2•1h ago•0 comments

The Home Depot

https://www.acquired.fm/episodes/home-depot
2•vismit2000•1h ago•1 comments

Amazon blocks Meta's Muse AI assistant

https://www.geekwire.com/2026/amazon-blocks-metas-muse-ai-assistant-in-new-standoff-over-agentic-...
1•colinprince•1h ago•0 comments