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/

Oil majors resist pressure to invest in new refineries, fuel prices keep rising

https://www.ft.com/content/4d63f08d-3556-4d84-8e1d-40f866741d15
1•toomuchtodo•2m ago•1 comments

China Details Precursors to Crewed Moon Landing, Considers Future Exploration

https://www.china-in-space.com/p/china-details-precursors-to-crewed
1•JPLeRouzic•2m ago•0 comments

Show HN: Doppinow – A Distraction Interrupter for ADHD

https://doppinow.com/
1•romanamangeldiy•3m ago•0 comments

Fuser-iouring – Write FUSE filesystems in Rust, with io_uring for I/O

https://github.com/sdslabs/fuser-iouring
1•regie•5m ago•0 comments

Which coding-agent CLI is best for headless workflow automation?

https://aictrl.dev/blog/headless-coding-agent-cli-benchmark
2•byapparov•7m ago•0 comments

Slopstructions

https://manuel.bernhardt.io/posts/2026-11-01-slopstructions
1•logician_insa•7m ago•0 comments

The Newspeak Programming Language

https://newspeaklanguage.org/
1•fanf2•7m ago•1 comments

The AI bubble could expose your deepest secrets

https://www.bbc.com/future/article/20261029-the-ai-bubble-could-expose-your-deepest-secrets
3•devonnull•8m ago•0 comments

Valve's Cancelled Portal Prequel F-Stop Has Leaked

https://kotaku.com/valves-cancelled-portal-prequel-f-stop-has-leaked-2000752082
2•HelloUsername•8m ago•0 comments

Google, Anthropic and others to support new AI crawling opt-out standard

https://siliconangle.com/2026/10/30/google-anthropic-and-others-to-support-new-ai-crawling-opt-ou...
1•noptd•9m ago•0 comments

Making it easier for websites to express AI training preferences

https://openai.com/index/helping-websites-express-ai-training-preferences/
1•noptd•10m ago•0 comments

A book that evolves alongside my exploration of Monero and its inner workings

https://xmr.alzze.xyz/
1•alzze•11m ago•0 comments

Ask HN: What are you working on? (November 2026)

2•jesse__•11m ago•2 comments

What makes drone/missile interceptors expensive?

1•campervans•12m ago•0 comments

2026–2027 El Niño event

https://en.wikipedia.org/wiki/2026%E2%80%932027_El_Ni%C3%B1o_event
1•tosh•12m ago•0 comments

About TierHive

https://tierhive.com/about.php
1•Curiositry•12m ago•0 comments

Independent Journalism Atlas

https://journalismatlas.com/
1•gnabgib•13m ago•0 comments

Nintendo Switch exploit using Civ 7

https://github.com/Gezine/CivSwitch
2•ochn•13m ago•0 comments

I didn't hand my NPM updates to an AI

https://medium.com/@balazs.csaba.diy/why-i-didnt-hand-my-npm-updates-to-an-ai-ca5603552e70
1•csababalazs•13m ago•0 comments

Postmortem of Database Outage (2017)

https://about.gitlab.com/blog/postmortem-of-database-outage-of-january-31/
1•tux3•14m ago•1 comments

HackerShorts(cinelet) – the short films HN keeps telling people to watch

https://cinelet.com/
1•firas_slimane•14m ago•0 comments

The Evolution of Bone (1987)

https://academic.oup.com/evolut/article/41/6/1187/6870730
1•joebig•15m ago•0 comments

$2B from 20 Top Donors Fuels an Expensive Midterms

https://www.nytimes.com/interactive/2026/11/01/us/politics/2026-midterm-top-donors.html
1•gmays•16m ago•0 comments

Muse AI agent is a commercial surveillance network disguised as an AI assistant

https://paulfwalsh.substack.com/p/metas-muse-ai-agent-is-a-commercial
2•Anon84•16m ago•1 comments

Show HN: BoothWall – open-source live photo wall for Fire TV and any browser

https://github.com/boothwall/boothwall-oss
1•dannyded•17m ago•0 comments

Ask HN: Cannot log in to my AWS account

1•usr1106•19m ago•0 comments

Mathematics has changed. Let's act like it

https://terrytao.wordpress.com/2026/11/01/mathematics-has-changed-lets-act-like-it/
6•smilelamp•20m ago•1 comments

Private BitTorrent Tracker for LLMs

https://libreagi.com/
3•satuke•20m ago•0 comments

Hot take: AI skills getting obsolete after months

https://jakobbr.eu/2026/10/14/hot-take-ai-skills-already-getting-obsolete-after-months/
2•waschl•22m ago•2 comments

SpaceX's $2T Bet Has a Physics Problem [video]

https://www.youtube.com/watch?v=S1umCJfbJ0w
1•timmytokyo•22m ago•0 comments