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/

Google local first AI meeting dictation

https://developers.google.com/edge/foresight
1•dawie•1m ago•0 comments

Solo teen hiker hoisted from mountain cliff after using AI to plan route

https://www.nsnews.com/local-news/solo-teen-hiker-hoisted-from-mountain-cliff-after-using-ai-to-p...
1•lode•1m ago•0 comments

Show HN: Red Alert 2 Runtime in the Browser – With Yuri's and Multiplayer

https://github.com/ra2-games/ra2
1•OkBerry6472•4m ago•0 comments

Two ways to fake a browser: BitB and BitM

https://www.grizzlysec.com/blog/browser-in-the-browser-vs-browser-in-the-middle
1•ricveloso•5m ago•0 comments

How to Fix autoconf-style Configuration Probing

https://build2.org/blog/fix-autoconf.xhtml
1•boris•6m ago•0 comments

Show HN: Our Polyglot Site, powered by 27 languages (with benchmarks)

https://carolina.codes/benchmarks
1•brightball•6m ago•0 comments

The phone was compromised before the user turned it on: rise of Midnight Mimosa

https://www.bitdefender.com/en-us/blog/labs/midnight-mimosa-malware
1•speckx•6m ago•0 comments

Independent Research: The Legend of Hannibal

https://yli12313.github.io/blog/autobiography-and-biography-posts/20260808_ir_hannibal/
1•orbit196•7m ago•1 comments

C for Rust Programmers

https://bd103.dev/blog/2026-10-07-c-for-rust-programmers/
1•xyproto•9m ago•0 comments

'Neither war nor peace': Palestinians in Gaza on existing amid disease despair

https://www.theguardian.com/world/2026/oct/07/palestinians-gaza-existing-amid-disease-despair-ruins
3•mo7061•10m ago•0 comments

Show HN: Ask Claude about any UK company – no API key needed

https://registrum.co.uk/mcp
1•eugene-registru•11m ago•0 comments

Calling a function in C without naming it

https://wiro.world/posts/calling-c-func-without-naming-it/
1•birdculture•12m ago•0 comments

The AI purge has begun

https://joelgouveia.substack.com/p/the-ai-purge-has-begun
1•pier25•12m ago•0 comments

Walking Robotic Hand Uses AI to Learn New Tricks

https://spectrum.ieee.org/walking-robotic-hand
1•rbanffy•13m ago•0 comments

PassBar – macOS menu-bar client for Passbolt API

https://github.com/cybasoft/passbar
1•cybasoft•13m ago•0 comments

Dark Forestry

https://henry.codes/writing/dark-forestry/
1•speckx•13m ago•0 comments

Interactive Maps of Star Wars Dialog

https://john.soban.ski/star-wars.html
1•runamuck•13m ago•0 comments

Show HN: Break your data out of LinkedIn (if you're in the EU)

https://github.com/larsbaunwall/larsbaunwall.github.io
1•lbaune•14m ago•0 comments

What if dark matter isn't a particle, but quantum information itself?

https://www.reddit.com/u/HungarySam/s/TR4uhbav4E
2•kisnorbert•15m ago•0 comments

'The Social Reckoning' Review

https://discussingfilm.net/2026/10/07/the-social-reckoning-review-sorkin/
2•simonpure•17m ago•0 comments

Brewlet: Java on Kubernetes

https://brewlet.sh/
3•theanonymousone•18m ago•0 comments

Anthropic's IPO filing shows CEO Dario Amodei earned $18M last year

https://qz.com/anthropic-ipo-filing-dario-amodei-pay-18-million-100626
2•theanonymousone•19m ago•0 comments

2027 Web Platform Feature Ranking

https://interop-rank.fxdx.dev/
2•jaffathecake•20m ago•0 comments

Microsoft is sandboxing AI agents at the OS level

https://baromae.blogspot.com/2026/10/microsoft-execution-containers-mxc.html
2•AllForAll•20m ago•0 comments

Software gets malleable when describing it is enough

https://ttvl.co/notes/software-gets-malleable/
2•speckx•22m ago•0 comments

Feather – Press a hotkey in any app, say what to write, it pastes it

https://github.com/yurirxmos/feather
2•yurirxmos•23m ago•0 comments

We gave AI a trust we never gave people: can it, may it, on what grounds

https://discuss.huggingface.co/t/we-gave-ai-a-trust-we-never-gave-people-the-third-axis-after-cap...
2•offaxis•24m ago•0 comments

Show HN: Tallyhook – price Claude Code and Codex logs per client you bill

https://github.com/tallyhook/tallyhook-collector
2•vitaljudge•24m ago•0 comments

Sub-1-Bit LLM Compression via Latent Factorization

https://github.com/SamsungLabs/LittleBit
2•brainless•24m ago•0 comments

CIA Conspired with the Right on the Eve of Mexico's '68 Massacre

https://mexicosolidarity.com/cia-right-68-massacre/
2•robtherobber•24m ago•0 comments