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/

Submit privacy-focused companies and projects on PrivBid.com

https://privbid.com/
1•CR1337•31s ago•0 comments

Code Doesn't Speak – It Compiles: Why Small Models Win

https://www.innerkore.com/blog/code-doesnt-speak-it-compiles-small-models-win/
1•gagan2020•1m ago•0 comments

Seed: Minimal, self-modifying agent harness

https://github.com/vivekhaldar/seed
1•gandalfgeek•4m ago•0 comments

Ask HN: Claude Code in Video Editor

1•eliseinicolae•5m ago•1 comments

Show HN: I built an open source video editor that you can control with an LLM

https://github.com/DonkeyCut/Donkey
1•dthedavid•5m ago•0 comments

Building with Papert at My Elbow

https://somewildideas.com/articles/building-with-papert-at-my-elbow
1•the-mitr•10m ago•0 comments

35hp and $12,000 of Pure Joy [video]

https://www.youtube.com/watch?v=ZPVpcTDi1kw
2•primogen•16m ago•0 comments

Show HN: Just describe your idea and let AI build a playable game for you

https://run.ceo/coder/
2•Marvin_RunAI•20m ago•0 comments

California Draws More Startup Investment Than All Other 49 States Combined

https://www.wsj.com/tech/ai/californias-ai-dominance-fuels-366-billion-venture-capital-bonanza-82...
3•mmooss•28m ago•0 comments

Ask HN: Has Microsoft forgotten how to test software?

2•pudgywalsh•30m ago•2 comments

Ask HN: What is the job market like in your country?

1•xvxvx•30m ago•0 comments

Donald Trump Effectively Just Told Iran to Get a Nuclear Weapon

https://www.theatlantic.com/ideas/2026/08/trump-north-korean-iran-nuclear-weapons/688339/
4•handfuloflight•31m ago•0 comments

Ask HN: Thoughts on Friend Making Apps?

1•siddhibansal9•33m ago•2 comments

Show HN: I completed my cross platform C++ 17 fiber job system

https://github.com/jay403894-bit/JLib-Scheduler
1•jay403894•50m ago•0 comments

Swiss tourist sentenced to year in jail for insulting Bali sacred Day of Silence

https://www.euronews.com/my-europe/2026/08/20/swiss-tourist-sentenced-to-year-in-jail-for-insulti...
1•Markoff•52m ago•1 comments

OpenCode go provides Hy3 with 8X usage

https://opencode.ai/go
2•dares2573•53m ago•0 comments

Changes in shadow-utils password-expiration features

https://lwn.net/Articles/1086949/
1•pykello•53m ago•0 comments

Why Is Everyone in Silicon Valley Talking Like That?

https://www.theatlantic.com/technology/2026/08/ai-jargon-in-everday-speech/688358/
2•jonah•57m ago•0 comments

Limitless Telepresence with Minds to Space

https://limitlesstelepresence.com/
1•MaysonL•58m ago•0 comments

Indigenous Circuits

https://computerhistory.org/blog/indigenous-circuits/
1•lying4fun•1h ago•0 comments

The Sloppiest Thing About AI

https://blog.oxplot.com/the-sloppiest-thing-about-ai/
1•oxplot•1h ago•0 comments

Meta's app for creating generative AI minigames is now available in the US

https://www.engadget.com/2241098/meta-pocket-app-for-creating-generative-ai-minigames-available-i...
1•thm•1h ago•0 comments

Tesla discontinues its Solar Roof tiles, not economically viable

https://electrek.co/2026/08/20/tesla-discontinues-solar-roof-panels-only/
3•mfiguiere•1h ago•1 comments

Kafka Flow – An interactive visualization of Kafka

https://kafka-flow.com/
1•bytegogogo•1h ago•0 comments

Advertising Is Hard – a pay-to-rank leaderboard that resets every 90 days

https://advertisingishard.com
1•dylan_builds•1h ago•0 comments

Compress and Forget: Bitsandbytes Quantization Amplifies Proactive Interference

https://arxiv.org/abs/2608.18578
1•sbulaev•1h ago•0 comments

People prefer A.I. art because people prefer bad art (2024)

https://maxread.substack.com/p/people-prefer-ai-art-because-people
3•gavinsyancey•1h ago•3 comments

A Claude Code plugin that shows an English rewrite of each assistant message

https://github.com/gvzdv/claudish-to-english
1•iacguy•1h ago•0 comments

'The Data Center Has Taken Everything: Our Lands, Future, Happiness'

https://behanbox.com/2026/08/20/the-data-center-has-taken-everything-our-lands-future-happiness/
2•akbarnama•1h ago•0 comments

Guggenheim loan trades in distressed territory after investor call

https://www.ft.com/content/7069ffff-9534-489d-bf25-9965a1bc48bc
2•petethomas•1h ago•0 comments