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/

We Need Vat and UBI

https://wilsoniumite.com/2026/06/07/we-need-vat-and-ubi/
1•Wilsoniumite•16s ago•0 comments

Beware Management Consultants

https://about.iceland.co.uk/our-story/the-dark-ages/beware-management-consultants/
1•mellosouls•9m ago•0 comments

Eternal Software Initiative

https://eternal-software.org/
1•eigenhombre•10m ago•0 comments

Show HN: Create and Maintain Filesystem Structures for LLMs [v1.0.11 Out]

https://pypi.org/project/seed-cli/
1•hunterx•12m ago•0 comments

Birth rates are declining in most of the world—here's why it really matters

https://phys.org/news/2026-06-birth-declining-world.html
2•rustoo•13m ago•0 comments

Government to buy AI chips to stop tech companies fleeing Britain

https://www.telegraph.co.uk/business/2026/06/07/government-buy-ai-chips-stop-tech-companies-fleeing/
2•graemep•15m ago•0 comments

Show HN: pypoLCA – Latent Class Analysis and Regression in Python

https://github.com/marcandre259/pypolca
2•marcandre259•16m ago•1 comments

Google just made you a search quality rater. You won't get paid

https://mojodojo.io/blog/google-just-made-you-a-search-quality-rater-you-won-t-get-paid
5•zenincognito•18m ago•0 comments

Is grep better than a vector DB?

https://www.zansara.dev/posts/2026-03-15-vector-dbs-vs-grep/
1•shahargl•18m ago•0 comments

Show HN: TeamOlimpo: Handoffs and mandatory SOPs for multi-agent coordination

https://github.com/teamolimpo/TeamOlimpo
1•tensor_mill•21m ago•0 comments

Show HN: Every Claw Deserves a Face

https://nyxclaw.ai/
2•antonios_makro•23m ago•1 comments

Finland Tests Early-Warning System Detecting Threats to Subsea Cables

https://www.bloomberg.com/news/articles/2026-06-05/finland-tests-early-warning-system-detecting-t...
4•giuliomagnifico•23m ago•0 comments

The User Doesn't Care – But you should

https://lewiscampbell.tech/blog/260607.html
1•kugurerdem•26m ago•0 comments

Mru: A Fault-Tolerant Operating System for Thousand-Year Autonomous Operation

https://zenodo.org/records/20579438
1•wbnns•27m ago•0 comments

The best relationships are all-encompassing.

https://andys.blog/the-best-relationships/
1•andytratt•28m ago•0 comments

Reinventing Entropy – Compression and Intelligence Part 1 (3b1B) [video]

https://www.youtube.com/watch?v=l6DKRf-fAAM
2•vismit2000•29m ago•0 comments

Show HN: We built a tool to dub any video in the original voice in 40 languages

https://vaani.media
3•ABSALOMMAXY•32m ago•1 comments

Trump to announce nearly $700M in coal support

https://www.axios.com/2026/06/04/trump-coal-federal-support-announcement
1•doener•32m ago•0 comments

ModPageSpeed 2.0: Lighthouse 56 to 90. On your own servers

https://modpagespeed.com/
2•ksec•34m ago•0 comments

Firefox confirms working on own adblocker [video]

https://www.youtube.com/watch?v=Qd5_5hXa8Zc
4•HelloUsername•37m ago•2 comments

The Grate Cheese Robbery

https://longreads.com/2026/05/28/the-cheese-theft-food-crime/
1•RickJWagner•37m ago•0 comments

Free security agent on GitHub AgentHQ, scans PRs and auto-fixes vulns

https://github.com/marketplace/bright-security-agent
1•bararchy•38m ago•1 comments

Walkthrough at the drone defence company Sensofusion [video]

https://www.youtube.com/watch?v=ZIMVmYzARiE
1•mikkohypponen•39m ago•1 comments

Open Semantic Interchange: The Universal Standard for Semantic Data

http://open-semantic-interchange.org/
1•asplake•39m ago•0 comments

Discover Your Destiny with AI Palm Reading

https://aipalmreading.net/
1•tunzhang•39m ago•0 comments

Stack Overflow didn't just help AI learn to code

https://zozo123.github.io/how-stackoverflow-taught-ai/
1•zozo123-IB•43m ago•0 comments

The brain can unlock true multitasking after intensive training

https://medicalxpress.com/news/2026-06-brain-true-multitasking-intensive.html
2•pseudolus•48m ago•0 comments

Show HN: Version Control for AI Agents

https://cognatoai.com
1•harsh020•51m ago•0 comments

Show HN: PWNC – A dependency-free web platform I've been building for 25 years

https://github.com/heydev-de/pwnc
1•katzito•52m ago•1 comments

AI needs shame, not taste

https://www.jacquescorbytuech.com/writing/ai-needs-shame-not-taste
1•iamacyborg•55m ago•0 comments