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/

Ask HN: Is Stackoverflow for Agents Helpful?

1•ximihoque•2m ago•0 comments

Cutting (Claude Code) token spend on dynamic workflows 80%

1•gojkoa•3m ago•0 comments

Films to feature actors that are not attractive and that you feel you're being

https://twitter.com/feelsdesperate/status/2096430206034567302
1•bilsbie•3m ago•0 comments

Frontier AI faces pricing reckoning as token volume explodes 25-fold

https://www.tomshardware.com/tech-industry/artificial-intelligence/frontier-ai-faces-pricing-reck...
1•yogthos•5m ago•0 comments

Nebula's Policy on AI

https://blog.nebula.tv/artificially-intelligent/
2•Siecje•8m ago•0 comments

Hardening Container Images

https://www.grepular.com/Hardening_Container_Images
2•Brajeshwar•8m ago•0 comments

Self-hosted job scraper that scores listings against your CV

https://github.com/firaslamouchi21/Job-Scraper02
1•firaslamou•9m ago•0 comments

Beeline: Enforcing application-layer policies in eBPF

https://blog.apnic.net/2026/09/02/beeline-enforcing-application-layer-policies-in-ebpf/
1•lbrndnr•9m ago•0 comments

Alberta (Canada) slaps punitive tax on solar panels

https://albertapolitics.ca/2026/09/ucp-slaps-punitive-tax-on-solar-panels-opening-new-front-in-it...
2•cmrdporcupine•10m ago•1 comments

Too much efficiency makes everything worse

https://sohl-dickstein.github.io/2022/11/06/strong-Goodhart.html
2•yurivish•12m ago•0 comments

Liveness Proofs in Veil, Part I: The First Step

https://proofsandintuitions.net/2026/06/24/liveness-proofs-in-veil-part-1/
3•abiro•12m ago•0 comments

Show HN: XHFS starting from 0.6.x is now fully CoW

https://codeberg.org/futureg-lab/xhfs
2•michael-0acf4•14m ago•0 comments

Acer Relaunches Packard Bell with Full New Lifestyle Collection: Tech It Easy

https://news.acer.com/acer-relaunches-packard-bell-with-full-new-lifestyle-collection-to-tech-it-...
1•taubek•16m ago•0 comments

Research acceleration: The view inside OpenAI

https://openai.com/index/research-acceleration-view-inside-openai
2•iamsyr•16m ago•0 comments

Unlimited Free DeepSeek API

https://y-api.bestvirtualgoods.com/
1•freeourdays•17m ago•0 comments

A recruiter who placed creative talent told me the truth

https://twitter.com/Marcellinoposts/status/2096583042315825244
1•bilsbie•17m ago•0 comments

Was Huawei's rise built on crime? A Brooklyn jury will decide

https://www.ft.com/content/9422805f-519c-4b22-839c-cbd7a6464f07
1•sbulaev•17m ago•0 comments

The universe may have been building rocky planets almost from the start

https://www.sciencenews.org/article/universe-rocky-planets-formed-early
2•KinetiNode•23m ago•0 comments

Show HN: A local, Apple Intelligence meeting assistant

https://github.com/rcarmo/swift-smart-prompter
4•rcarmo•23m ago•0 comments

I Feel about AI

https://beza1e1.tuxen.de/ai_feelings.html
37•qznc•24m ago•8 comments

Douglas Hofstadter: Analogy as the Core of Cognition [video]

https://www.youtube.com/watch?v=n8m7lFQ3njk
1•tosh•25m ago•0 comments

Feather Atlas

https://www.fws.gov/lab/featheratlas/identify.html
2•bookofjoe•25m ago•0 comments

AI made it worth building games for our game nights

https://mmazzarolo.com/blog/2026-09-05-ai-has-completely-changed-our-game-nights/
5•mmazzarolo•26m ago•1 comments

Show HN: 188M Hindi encoder, 28B tokens, 8K context, 1× RTX 4090

https://github.com/kkkamur07/indic-modernBERT
1•kkkamur•27m ago•0 comments

Release 0.12.10 · astral-sh/uv

https://github.com/astral-sh/uv/releases/tag/0.12.10
2•kyisaiah47•27m ago•0 comments

The Garage Where Silicon Valley Began

https://www.coolidgereview.com/articles/garage-silicon-valley
1•RickJWagner•29m ago•2 comments

Dirty Coding Tricks, part 3

https://dalerank.github.io/en/articles/dirty-coding-tricks-3.html
2•birdculture•30m ago•0 comments

Recreating Minecraft Is Not a Benchmark

https://kuber.studio/blog/Reflections/Recreating-Minecraft-is-Not-a-Benchmark
1•kuberwastaken•32m ago•0 comments

Mirror of your own self – on AI sycophancy and getting what we asked for

https://substack.com/app-link/post
2•yenniejun111•34m ago•0 comments

Artificial Intelligence as a Judge Advocate's Force Multiplier

https://www.lineofdeparture.army.mil/Journals/Army-Lawyer/Archive/Issue-2-2026/AI-as-Force-Multip...
1•everybodyknows•36m ago•0 comments