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/

Hacking Google with A.I. For $500k

https://brutecat.com/articles/hacking-google-with-ai/
1•brutecat•2m ago•0 comments

An Interview with Ben Bajarin About Apple, AI, and Compute

https://stratechery.com/2026/an-interview-with-ben-bajarin-about-apple-ai-and-compute/
1•swolpers•4m ago•0 comments

Show HN: JustOpenFile – Preview files locally in the browser without uploading

https://justopenfile.com/en
1•zxcholmes•5m ago•0 comments

Using the Epson Perfection V39 II Scanner on Ubuntu

https://patches.joao.town/using-epson-perfection-v39ii-scanner-ubuntu/
1•joaopalmeiro•5m ago•0 comments

The Agora Companies – Finding Success at the Edges of the Bell Curve

https://theagora.com/about/
1•peter_d_sherman•9m ago•0 comments

Helping brand to make creative assets

1•tanmay7_•9m ago•0 comments

Minimax M3 weights to be released on Friday

https://huggingface.co/MiniMaxAI/MiniMax-M2.7/discussions/33
1•theanonymousone•10m ago•0 comments

Job titles of the future: Nature's drug designer

https://www.technologyreview.com/2026/06/11/1138502/job-titles-natures-drug-designer-tim-cernak/
1•ilreb•10m ago•0 comments

SwiftUI Only Makes It Easy to Develop Bad Apps

https://daringfireball.net/2026/06/swiftui_only_makes_it_easy_to_develop_bad_apps
1•zombot•11m ago•0 comments

Summer Word Search

https://www.summerwordsearch.com/
1•onion92•12m ago•0 comments

Anthropic's AI Jobs Paper

https://www.vincentschmalbach.com/anthropics-ai-jobs-paper/
1•vincent_s•12m ago•0 comments

A Native GeForce Now Client for Apple TV and Apple Vision Pro

https://github.com/owenselles/CloudNow
1•cromka•12m ago•0 comments

We managed to glean some interesting details about the Artemis III mission

https://arstechnica.com/space/2026/06/we-managed-to-glean-some-interesting-details-about-the-arte...
1•rbanffy•15m ago•0 comments

Outpost – Capability-based API access for AI agents

https://github.com/sausin/outpost
1•saurabhsinghvi•15m ago•0 comments

Malware devs added text to trigger LLM safety refusal, to avoid detection

https://twitter.com/jsrailton/status/2064661778978533571
3•MrBuddyCasino•18m ago•0 comments

World economy visualizer – $110T GDP broken down to country level

https://iamwick.github.io/world-economy-repository/
1•gilfoyle_7•18m ago•0 comments

macOS/iOS/TvOS/watchOS QR Generator/Detector (SwiftUI/Swift/Obj-C)

https://github.com/dagronf/QRCode
1•petecooper•21m ago•0 comments

An Early Step on the Long Road to Photosynthesis

https://www.quantamagazine.org/an-early-step-on-the-long-strange-road-to-photosynthesis-20260610/
1•pseudolus•23m ago•0 comments

Stop Backtesting in Theory, Simulate the Real Crypto Market with DolphinDB

https://medium.com/@DolphinDB_Inc/stop-backtesting-in-theory-simulate-the-real-crypto-market-with...
2•dbaa4real•25m ago•0 comments

AI Just Got Better Than a Fable

https://altshiftx.tech/blog/unlock-the-future-of-intelligent-systems-with-yottajoule-sui-q8e0
1•Magna_Dev•25m ago•0 comments

Claude "Fable" won't answer basic biology questions

https://www.theverge.com/ai-artificial-intelligence/947973/fable-wont-answer-basic-biology-questions
1•dude250711•26m ago•0 comments

Apple Removes Walkie-Talkie from Apple Watch in watchOS 27 Beta

https://www.macrumors.com/2026/06/10/watchos-27-removes-walkie-talkie/
1•cromka•27m ago•0 comments

Show HN: ARB – A Differentiable Rigid Body Simulation Library Using C++23

https://github.com/wbyates777/Articulated-Rigid-Body
2•wbyates777•29m ago•1 comments

Experts struggle to understand new list of political jobs at science agencies

https://www.science.org/content/article/weird-and-capricious-experts-struggle-understand-new-list...
1•pseudolus•29m ago•0 comments

Show HN: A HackerNews client with dark mode, bookmarks, search and more

https://guyswhocode.com/hn/
1•shajanjp•30m ago•0 comments

Turbcast – turbulence forecast for any commercial flight

https://www.turbcast.com
1•LeonDavies•30m ago•0 comments

Nottingham Uni says student records raided after ShinyHunters claims cyberattack

https://www.theregister.com/cyber-crime/2026/06/11/shinyhunters-raids-nottingham-uni-for-student-...
1•wlkr•31m ago•0 comments

OpenAI Considers Drastic Price Cuts, Anticipating War for Users with Anthropic

https://www.wsj.com/tech/ai/openai-considers-drastic-price-cuts-anticipating-war-for-users-with-a...
3•uxhacker•32m ago•4 comments

Anthropic Walks Back Policy That Could Sabotage AI Researchers Using Claude

https://simonwillison.net/2026/Jun/11/anthropic-walks-back-policy/
1•lumpa•32m ago•0 comments

Depgaze – Dependency Execution Intelligence

https://www.depgaze.xyz/
1•gcarlo•32m ago•0 comments