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/

The Stars Within Us

https://blue-continuum.com/the-stars-within-us
2•dnetesn•52s ago•0 comments

The recently proposed O(n log n) integer multiplication algorithm [pdf]

https://web.maths.unsw.edu.au/~davidharvey/research/subnlogn.pdf
2•craigcitro•7m ago•0 comments

I built an open source Steam Link app for Samsung TVs

https://github.com/pebeto/tizen-steam-link
2•pebeto•8m ago•0 comments

Show HN: Cathode, a Gtk4 YouTube player based on mpv and yt-dlp

https://github.com/andunieee/cathode
2•andunie•12m ago•0 comments

Show HN: HN Sieve – every Show HN scored and summarized by AI

https://hnsieve.com
3•cezarvil•14m ago•0 comments

Ask HN: What's the biologic equivalent of allowing any two cells to communicate?

2•datas•16m ago•0 comments

Lost Builds – unreleased game archive

https://lost-builds.byartem.com/
2•dublor•18m ago•0 comments

I trained a 360M model to pretend to be a terminal

https://simedw.com/2026/10/21/world-model-terminal/
2•alphax314•19m ago•0 comments

Claude Now Works with Google Docs, Sheets, and Slides

https://claude.com/resources/articles/claude-now-works-in-google-docs-sheets-and-slides
2•gmays•20m ago•0 comments

OpenVAF – Open-source Verilog-A compiler in Rust

https://github.com/pascalkuthe/OpenVAF
2•peter_d_sherman•20m ago•0 comments

LLM Agents Play Pokemon Showdown

https://olivergrabner.com/research/pokemon/
9•grabnero•24m ago•1 comments

Built Once, Serves Many: How We Rebuilt Experiment Analysis Platform at Roku

https://engineering.roku.com/built-once-serves-many-how-we-rebuilt-experiment-analysis-platform-a...
1•newadays•27m ago•0 comments

Exploring the Use of WebAssembly in HPC (2023)

https://dl.acm.org/doi/abs/10.1145/3572848.3577436
1•measurablefunc•30m ago•0 comments

Ask HN: Is OpenAI down? Nonstop 429s on pro subscription

1•srcreigh•32m ago•1 comments

Show HN: Find duplicates in 5 lines of Python (offline, lightweight, fast, Rust)

https://github.com/leopoldch/univo
1•jweaz•33m ago•0 comments

See Inside Cells Like Never Before in These Vivid Microscopic Images

https://www.quantamagazine.org/see-inside-cells-like-never-before-in-these-vivid-microscopic-imag...
2•randomImmigrant•34m ago•1 comments

The World Question Center, 1998 What Questions Are You Asking Yourself?

https://www.edge.org/conversation/james_lee_byars-the-world-question-center-1998
2•andsoitis•34m ago•0 comments

Can AI generate reliable product demos directly from source code?

1•demovexa•34m ago•0 comments

Claude Security now scans continuously and tracks fixes

https://claude.com/resources/articles/claude-security-now-scans-continuously-and-tracks-fixes
1•arbayi•36m ago•0 comments

AI Overlay that Lives on your Desktop

https://www.lumenoverlay.com
1•ayviatefn•36m ago•0 comments

Physicist Christopher Stubbs Joins Anthropic's Long-Term Benefit Trust

https://www.anthropic.com/news/christopher-stubbs-joins-long-term-benefit-trust
1•arbayi•38m ago•0 comments

Milwaukee Brewers renege on golden tickets sold in 2016

https://twitter.com/emilymaeheller/status/2112719895519514992
3•lando2319•42m ago•0 comments

Widespread PHP Flaw May Cause Many Site Outages Today

https://krebsonsecurity.com/2026/10/widespread-php-flaw-may-cause-many-site-outages-today/
1•MadrasThorn•43m ago•0 comments

DNA Genealogy IDs Victim from 1997 Florida Cold Case

https://www.forensicmag.com/3594-All-News/628824-Othram-Helps-ID-Victim-from-1997-Florida-Cold-Case/
1•WaitWaitWha•45m ago•0 comments

Epic vs. Apple AU:Court Orders Alt App Stores,Sideloading and 3rd Party Payments

https://www.judgments.fedcourt.gov.au/judgments/Judgments/fca/single/2026/2026fca1552
8•Mayzie•46m ago•2 comments

HN: Kerf – if Burp, Wireshark, and Dependabot had a kid

https://kerf.software
1•openpost•58m ago•0 comments

Amazon warns new cyber flaws detected using AI are being 'broadly exploited'

https://www.ft.com/content/245778d9-597b-492d-b5b6-a2967c77e853
1•nprateem•59m ago•0 comments

LCOS 0.9.5 Has Landed

https://lunduke.substack.com/p/lcos-095-has-landed
2•onemoresoop•59m ago•0 comments

New World screwworm cases confirmed in wildlife in Texas, beef cow in New Mexico

https://www.reuters.com/business/healthcare-pharmaceuticals/us-agriculture-dept-confirms-first-de...
4•bushwart•1h ago•0 comments

Personal Agent Protocol

https://sierra.ai/blog/introducing-personal-agent-protocol
3•gmays•1h ago•0 comments