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/

AI should know that mylocalhost.com – is a real domain

https://www.reddit.com/r/Domains/comments/1vsz3we/ai_should_know_that_mylocalhostcom_is_a_real/
1•asimovDev•42s ago•0 comments

Intelligence per Watt: Measuring Intelligence Efficiency of Local AI

https://arxiv.org/abs/2511.07885
1•pythonic_hell•6m ago•0 comments

Google illegally retains customer data,Please do not flag this post

https://medium.com/@istokovicsgyorgy79/google-illegally-retains-customer-data-and-i-am-taking-leg...
2•Bitu79•8m ago•3 comments

The CRA Single Reporting Platform Is Launched

https://www.enisa.europa.eu/news/the-cra-single-reporting-platform-is-launched
1•fourfire•9m ago•0 comments

Sam Altman spells out why the AI industry wants to slow down

https://www.cnbc.com/2026/09/14/sam-altman-ai-slowdown-anthropic-amodei-musk.html
1•cramer4next•10m ago•0 comments

The metric nobody measures: how long until the bleeding stops

https://www.getunleash.io/blog/mean-time-to-neutralize
1•alexcasalboni•10m ago•0 comments

Militant Democracy and Fundamental Rights [pdf]

https://warwick.ac.uk/fac/arts/history/students/modules/hi290/seminars/revolution/lowenstein_mili...
1•0bytes•11m ago•0 comments

Show HN: I made a flight simulator, except you're just a passenger

https://inflightsimulator.com
3•rkotcher•14m ago•0 comments

AI Myth – College Educate, Benefit from AI – Morgan Stanley

https://finvaulta.com/share/N4FZt0B1rE2bxHuo1rAjEg
1•campervans•14m ago•1 comments

Roff (Software)

https://en.wikipedia.org/wiki/Roff_(software)
1•vinhnx•16m ago•0 comments

My Complete Agentic Coding Setup Tech Stack Feb 21 2026 – Updated Jun 29 2026

https://hboon.com/my-complete-agentic-coding-setup-and-tech-stack/
1•Bluestein•23m ago•0 comments

Claude and I made a MAME attact mode app

https://www.coldbeamgames.com/ghostcade.html
1•Stargx•25m ago•0 comments

Ask HN: Can't input "double quotes" in Gmail web?

1•dgan•26m ago•0 comments

God Help Us, Let's Try to Learn About Mechanistic Interpretability Techniques

https://www.astralcodexten.com/p/god-help-us-lets-try-to-learn-about
3•AriFordsham•26m ago•0 comments

Can Europe build a competitive polysilicon industry?

https://www.pv-magazine.com/2026/05/20/can-europe-build-a-competitive-polysilicon-industry/
1•leonidasrup•26m ago•0 comments

Let your coding agents exchange nofollow backlinks

https://getlinkbunny.com/
2•Bluestein•27m ago•0 comments

How the Clash Between Money and Safety Created a Monumental Crisis for AI

https://www.wsj.com/tech/ai/openai-anthropic-crisis-money-safety-847bc1d6
2•thm•28m ago•0 comments

OpenAI Pauses IPO Plans Amid AI Safety Worries

https://www.pymnts.com/news/2026/openai-pauses-ipo-plans-amid-ai-safety-worries/
2•thm•28m ago•0 comments

Show HN: Blur. Sharpen. Repeat. Get Turing Patterns

https://www.maximevidal.com/turing-patterns
1•vmaxmc2•31m ago•0 comments

WebP

https://en.wikipedia.org/wiki/WebP
1•tosh•31m ago•0 comments

Whoop replacement noop 11.7 released

https://github.com/ryanbr/noop/releases
1•mp3geek•31m ago•0 comments

Worlds Upon The Wind: a peaceful roguelite deckbuilder about resettling a world

https://github.com/max99x/wutw-public
1•rdmuser•36m ago•1 comments

Show HN: Openstatus/health tree-shakable health endpoints for JavaScript servers

https://github.com/openstatusHQ/health
2•tibozaurus•37m ago•0 comments

The Archival Dystopia of Blade Runner 2049 and Aeon Flux

https://www.pop-archives.com/post/pop-archives-deep-thoughts-the-archival-dystopia-of-blade-runne...
2•october8140•45m ago•0 comments

When code is a maze, smart developers make maps

https://medium.com/@simonsmartiom/when-code-is-a-maze-smart-developers-make-maps-fbc452a48c1b
1•boxesnlines•48m ago•0 comments

Are generative models the next paintbrush?

https://wasi0013.com/2026/09/14/are-generative-models-the-next-paintbrush/
2•wasi0013•49m ago•0 comments

Immiserizing Growth

https://en.wikipedia.org/wiki/Immiserizing_growth
3•motionlessveloc•50m ago•0 comments

Kache v0.21:caching C/C++ links,nvcc objects,and the Clang-CL flags Firefox uses

https://github.com/kunobi-ninja/kache/releases/tag/v0.21.0
1•ainhoaa•53m ago•0 comments

A 386 PC for Your RP2350

https://github.com/rh1tech/frank-386
8•SamuraiLion•57m ago•0 comments

EuroBirdPortal – Live bird movements across Europe

https://www.eurobirdportal.org/ebp/en/
6•NKosmatos•57m ago•1 comments