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•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/

Best collaborative voice model is here

https://www.getsun.io/
1•pattern-ai•30s ago•0 comments

Npmx: A fast, modern browser for the NPM registry

https://github.com/npmx-dev/npmx.dev
1•maxloh•2m ago•0 comments

Bug bounty businesses bombarded with AI slop

https://arstechnica.com/ai/2026/05/bug-bounty-businesses-bombarded-with-ai-slop/
1•helsinkiandrew•3m ago•1 comments

Dad Books Are a Dying Breed

https://www.wsj.com/business/media/dad-books-are-a-dying-breed-d9a28b49
1•Caiero•4m ago•0 comments

Samaris OS: A Bootable Linux-Based OS with React UI, Rust Daemons and Local AI

https://github.com/btkhaled/SamarisOS
1•btkhaled•5m ago•0 comments

Google DeepMind's Demis Hassabis emerges as early Anthropic investor

https://www.ft.com/content/8f2a529e-7a1b-4d8e-95be-338d0c4c98f5
1•merksittich•6m ago•0 comments

Adminbolt – manage your hosting via WhatsApp with an AI agent

https://adminbolt.com/blog/manage-hosting-via-whatsapp/
1•jvrpl•8m ago•0 comments

Deterministic vs. Probabilistic Code Generation

https://thetechenabler.substack.com/p/deterministic-vs-probabilistic-code
1•ingve•9m ago•0 comments

Summer Bracelets for Travel, Beach Days and Everyday Wear

https://glintandluck.com/blogs/news/the-best-summer-bracelets-for-travel-beach-days-everyday-wear
1•Chris_taka•10m ago•0 comments

Highly critical security release for Drupal

https://www.drupal.org/psa-2026-05-18
1•huhhuh•10m ago•1 comments

We enable full customization in a front end runtime engine

https://uigen-docs.vercel.app/blog/override-system-technical-deep-dive
1•ombedzi•15m ago•1 comments

iOS-Linuxkit: Linux on iPad, the Hard Way

https://taoofmac.com/space/blog/2026/05/16/1130
1•rcarmo•17m ago•0 comments

Tracking 100k Assets Before Having 100k Assets to Track

https://dunkels.com/adam/city-scale-iot-asset-tracking-simulator/
1•adunk•17m ago•0 comments

The quiet ones among us

https://timesofindia.indiatimes.com/blogs/civil-irony/the-quiet-ones-among-us/
1•abhikul0•17m ago•0 comments

Amazon Cuts Affiliate Commissions Up to 50% for Publishers

https://www.adweek.com/media/amazon-associates-affiliate-rate-cuts-publishers/
2•thm•20m ago•0 comments

I vibecoded my dream game, geoguesser but for guns

https://gunguesser.com
1•abhahbnar•22m ago•0 comments

Show HN: Fast_copy new release with new features

https://github.com/gekap/fast-copy
1•yskapell•23m ago•0 comments

Users turn to jailbreaking their older Kindles as Amazon ends support

https://techcrunch.com/2026/05/16/users-turn-to-jailbreaking-their-older-kindles-as-amazon-ends-s...
2•gluke_bywalker•23m ago•0 comments

A Lesson from the Cockpit

https://www.subbu.org/essays/2026/a-lesson-from-the-cockpit/
1•r4um•24m ago•0 comments

GhostCue: A teleprompter only visible to you while screen recording

https://ghostcue.app/
1•JMiao•25m ago•0 comments

Chat-first AI ads Gen – paste a URL, get a full campaign

https://www.heyad.ai/login?mode=signup
1•cjdesignstudio•27m ago•0 comments

Poland urges officials to ditch Signal for state-run messaging apps

https://cyberinsider.com/poland-urges-officials-to-ditch-signal-for-state-run-messaging-apps/
1•Cider9986•34m ago•0 comments

I'm building a SaaS with ZERO AI features in 2026

2•postauth•38m ago•0 comments

I built an independent SEO tool review site. The honest data after 2.5 months

https://www.indiehackers.com/post/i-built-an-independent-seo-tool-review-site-while-working-full-...
1•digispecial8x•39m ago•0 comments

Migrate from Stainless to APIMatic CodeGen

https://migrate-from-stainless.apimatic.io/
1•m3h•46m ago•0 comments

A NixOS GUI

https://kalken.github.io//ezblog/#ezconf
1•linux4dummies•47m ago•0 comments

Why is rendering text so complicated? [video]

https://www.youtube.com/watch?v=4soZ33MvlW4
1•theis_once•50m ago•0 comments

Humble Tech Book Bundle: The Ultimate Functional Programming

https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
6•Tomte•53m ago•0 comments

End of a Semester

https://mtendekuyokwa.github.io/blog/end-of-semester/
2•sonderotis•56m ago•1 comments

Using Claude to apply a book, not just summarize it

https://lswith.io/posts/how-i-approached-showing-your-work/
2•lswith•57m ago•0 comments