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/

Show HN: Simstim – local call transcription on Mac into .md files

https://github.com/pgrekovich/simstim
1•pgrekovich•1m ago•0 comments

AI Is Looking More and More Like a Normal Technology

https://www.richardhanania.com/p/ai-is-looking-more-and-more-like
3•lordleft•4m ago•0 comments

Can a Linear Program Do Weight-Space Programming?

https://nathan.rs/posts/weight-space-lp/
1•frostbyte7•5m ago•0 comments

Show HN: Deep Cuts – music discovery via credits instead of algorithms

https://www.digdeepcuts.com/
1•xenerr•7m ago•1 comments

Show HN: Relinos – Turn Any Website into a REST API (Open-Source)

https://github.com/realsirjoe/relinos
1•realsirjoe•7m ago•0 comments

Anthropic to Seek $1.3T Valuation in IPO

https://www.wsj.com/finance/stocks/anthropic-to-seek-1-3-trillion-valuation-in-ipo-8337b669
2•sonabinu•7m ago•0 comments

SpecSheet Pro – Lightweight technical spec sheet generator with PDF export

https://specsheet-pro.vercel.app/
1•Caldern•9m ago•0 comments

Show HN: Markview – a fast Markdown reader in Rust, Obsidian Vault compatible

https://github.com/szdytom/markview
1•szdytom•10m ago•0 comments

Show HN: Wanim – Embed interactive 3Blue1Brown-style animations in your blog

https://github.com/Acfboy/Wanim
1•Acfboy•10m ago•0 comments

Quantinuum and Riken Expand Quantum-AI Supercomputing Partnership

https://www.hpcwire.com/off-the-wire/quantinuum-and-riken-expand-quantum-ai-supercomputing-partne...
1•rbanffy•10m ago•0 comments

Show HN: AI Vision Index, private tests of how well 36 AI models see

https://aivisionindex.com/
1•LLD•10m ago•0 comments

Telling your number parser what to expect

https://lemire.me/blog/2026/11/10/telling-your-number-parser-what-to-expect/
1•smilelamp•10m ago•0 comments

Show HN: A sanctions and PEP screening API

https://screen.unbackoffice.com/
1•reviseddamage•10m ago•0 comments

Behind AI's Flywheel Powering Materials Discovery at Sandia Labs

https://www.hpcwire.com/2026/11/09/behind-radical-ais-flywheel-powering-materials-discovery-at-sa...
1•rbanffy•14m ago•0 comments

Jolla and CivSec AB to Offer Jolla Phone for the Swedish Public Safety Market

https://jolla.com/content/uploads/2026/10/CivSec-and-Jolla-Public-Safety-Market-Oct2026.pdf?x87445
1•miohtama•17m ago•0 comments

California voters reject proposed billionaire tax

https://www.cbc.ca/news/world/california-billionaire-tax-rejected-9.7415985
3•sgallant•19m ago•0 comments

Online communities help people w hypermobility disorders connect&get diagnosed

https://www.nytimes.com/2026/11/09/well/heds-eds-hypermobile.html
2•bookofjoe•19m ago•1 comments

Attach it to a VR headset to read brainwaves and control apps. MoguLive

https://www.moguravr.com/pieeg-xr-review/
2•rematosire•19m ago•0 comments

Let over Lambda–50 Years of Lisp

https://letoverlambda.com/
2•theanonymousone•21m ago•0 comments

What Terence Tao feared has happened

https://twitter.com/Jinnanog5/status/2120006745909330091
1•theanonymousone•22m ago•0 comments

Ask HN: Could Stanford's NCM potentially replace modern LLMs in the future?

1•waximabbax•22m ago•1 comments

I hate everything I vibe-coded. Here they are

https://jpain.io/i-hate-everything-i-vibe-coded/
4•Eighth•26m ago•1 comments

Ask HN: How do you keep secrets out of your AI agents' context?

1•timbowhite•27m ago•1 comments

Show HN: KubeSilicon – Linux VMs and Mac GPU Jobs from Kubernetes Objects

https://github.com/Matheus-Thurler/KubeSilicon
1•mthurler•28m ago•0 comments

Anthropic Targets Valuation of Up to $1.4T for Blockbuster IPO

https://www.nytimes.com/2026/11/10/technology/anthropic-ipo-valuation-share-price.html
1•doener•29m ago•0 comments

Serving open-weight models at scale with vLLM

https://ngrok.com/blog/vllm
2•EndEntire•30m ago•0 comments

Ask HN: What other tools similar to Alibaba OCR do people use with LLMs?

1•pSYoniK•33m ago•1 comments

Goodbye, eggshell: How pregnancy emerged in the animal world

https://knowablemagazine.org/content/article/living-world/2026/why-did-pregnancy-evolve-in-animals
1•sohkamyung•35m ago•0 comments

Next-Level Benchmarking Overfitting

http://databasearchitects.blogspot.com/2026/11/next-level-benchmarking-overfitting.html
1•eatonphil•36m ago•0 comments

What's new in the .NET 11 runtime

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-11/runtime
5•stevefan1999•37m ago•0 comments