frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo ago

Comments

bastawhiz•10mo ago
Is this a problem that people actually have?
xeromal•10mo ago
Fun side project man!
primitivesuave•10mo 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•10mo 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•10mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

The Shape of the Thing

https://www.oneusefulthing.org/p/the-shape-of-the-thing
1•andyjohnson0•1m ago•0 comments

Invoice OCR API for Logistics Expense Tracking Automation

1•azapi_ai•1m ago•0 comments

Rust and LLMs: The Compiler Does What Code Review Shouldn't Have To

https://blog.rezvov.com/rust-and-llms-the-compiler-does-what-code-review-shouldnt-have-to
1•alexrezvov•2m ago•0 comments

SBOM Adoption on PyPI Is at 1.58%. We Can Do Better

https://sbomify.com/2026/03/12/pypi-sbom-analysis/
1•mvip•3m ago•0 comments

Blue-LIRIC in rabbit cornea: efficacy, effects, and repetition rate (2022)

https://pmc.ncbi.nlm.nih.gov/articles/PMC9045900/
1•tempestn•7m ago•0 comments

One of Our Credit Card

https://honeypot.net/2026/03/12/one-of-our-credit-card.html
1•speckx•8m ago•0 comments

Blader/humanizer: Claude Code skill to remove AI-generated tells from writing

https://github.com/blader/humanizer
1•fragmede•9m ago•0 comments

JSFX on Fedora Linux: an ultra-fast audio prototyping engine

https://fedoramagazine.org/jsfx-on-fedora-linux-an-ultra-fast-audio-prototyping-engine/
1•ycollet•9m ago•0 comments

Design-Driven AI Development

https://ambitious-hosta-5ce.notion.site/Design-Driven-AI-Development-32254f55890480e48d55d86970f5...
1•DevManCry•10m ago•1 comments

'Devastating blow': Atlassian lays off 1,600 workers ahead of AI push

https://www.theguardian.com/technology/2026/mar/12/atlassian-layoffs-software-technology-ai-push-...
2•birdculture•15m ago•0 comments

2026 State of SaaS Report

https://seedium.io/offers/saas-market-report-2026/
1•seedium_tech•21m ago•0 comments

Show HN: Outsmart – a 5-round betting game against the computer

https://labs.davidbauer.ch/outsmart/
2•davidbauer•26m ago•0 comments

Pi-Autoresearch

https://github.com/davebcn87/pi-autoresearch
2•tin7in•27m ago•0 comments

Show HN: A small macOS app to send push notifications to the iOS Simulator

https://github.com/gogson/ios-simulator-push-notifier
2•opafan•30m ago•0 comments

Real-time filters for the web using Lucene query syntax

https://firehose.com
2•perks_12•32m ago•0 comments

Vite+ Alpha: Unified Toolchain for the Web (MIT License)

https://voidzero.dev/posts/announcing-vite-plus-alpha
7•cpojer•33m ago•0 comments

Becoming a Forest Civilisation

1•rando77•33m ago•0 comments

Agent Experience: Sentry vs. TrackJS vs. RayGun

https://techstackups.com/comparisons/ax-sentry-vs-trackjs-raygun/
2•ritzaco•34m ago•0 comments

How to use storytelling to fit inline assembly into Rust

https://www.ralfj.de/blog/2026/03/13/inline-asm.html
3•ingve•36m ago•0 comments

Enterprise Digital Budgets Are Shifting Away from SaaS. Here's Where They Go

https://medium.com/@tbelbek/50-of-enterprise-digital-budgets-are-shifting-away-from-saas-heres-wh...
1•rdstrtwlkr•38m ago•0 comments

Substack Is at the Gambling Stage of Desperation

https://speterdavis.substack.com/p/substack-is-at-the-gambling-stage
1•Anon84•38m ago•0 comments

Wiz CEO Assaf Rappaport refused a $23B offer – then sold for $32B

https://techcrunch.com/2026/03/11/google-completes-32b-acquisition-of-wiz/
3•kaizenb•41m ago•1 comments

AI thinks your code is correct, but it can not prove it

https://predictablemachines.com/blog/ai-thinks-your-code-is-correct-but-it-can-not-prove-it/
3•jorgegalindo•42m ago•1 comments

Show HN: Catch Tap Toy

https://memalign.github.io/m/catch/index.html
1•memalign•43m ago•0 comments

Bucketsquatting Is (Finally) Dead

https://onecloudplease.com/blog/bucketsquatting-is-finally-dead
15•boyter•44m ago•2 comments

Utm-Builder – Bulk UTM Link Generator CLI for Marketers

1•mbinatorom•47m ago•0 comments

ManuscriptFormatter – Instant Standard Manuscript Format for Writers

1•mbinatorom•47m ago•0 comments

Curses-exec: interactive xargs for less

https://github.com/dnewcome/curses-exec
1•dnewcome•52m ago•2 comments

Ask Maps and Immersive Navigation: New AI Features in Google Maps

https://blog.google/products-and-platforms/products/maps/ask-maps-immersive-navigation/
1•yread•55m ago•0 comments

100 Jumps

https://100jumps.org/play/
7•pompomsheep•1h ago•1 comments