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

Comments

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

Bring Back Idiomatic Design

https://essays.johnloeber.com/p/4-bring-back-idiomatic-design
1•phil294•14s ago•0 comments

Apple, Still

https://taoofmac.com/space/blog/2026/04/12/1330
1•rcarmo•3m ago•0 comments

BrickFormer Source Code Released

https://github.com/loryruta/brickformer
2•loryruta•10m ago•1 comments

LLM Wiki Skill: Build a Second Brain with Claude Code and Obsidian

https://medium.com/@alirezarezvani/llm-wiki-skill-build-a-second-brain-with-claude-code-and-obsid...
1•jungard•14m ago•0 comments

HubVanta AI

https://hubvanta.com/
1•hubvanta•16m ago•0 comments

PEP 495: Local Time Disambiguation

https://peps.python.org/pep-0495/
2•tosh•18m ago•0 comments

Day 3 post-launch. No viral moment. Still shipping

https://www.indiehackers.com/post/day-3-post-launch-no-viral-moment-still-shipping-985da62829
1•AnimeMyPic•19m ago•0 comments

Fast and Easy Levenshtein distance using a Trie

https://stevehanov.ca/blog/fast-and-easy-levenshtein-distance-using-a-trie
1•sebg•20m ago•0 comments

Google Displayed Polymarket Bets as News 'In Error,' Google Says

https://gizmodo.com/google-displayed-polymarket-bets-as-news-in-error-google-says-2000745381
1•giuliomagnifico•23m ago•0 comments

The Protégé Problem Today

https://www.proofofconcept.pub/p/the-protege-problem-today
1•kiyanwang•23m ago•0 comments

Tea: A Stimulant That Made the Modern World

https://worldhistory.substack.com/p/tea-a-stimulant-that-made-the-modern
2•crescit_eundo•24m ago•0 comments

How the Toyota Prius comes to die in Mongolia [video]

https://www.youtube.com/watch?v=KyEVDmoh5lo
1•nxobject•25m ago•0 comments

mb: fast month boundary, in memoriam of aab

https://github.com/kparc/mb
1•tosh•28m ago•0 comments

Agentic Memory: Memento Mori

https://kubekattle.github.io/ktl/blog/portal-long-term-memory.html
1•KyleVlaros•29m ago•0 comments

No one owes you supply-chain security

https://purplesyringa.moe/blog/no-one-owes-you-supply-chain-security/
2•birdculture•32m ago•0 comments

Israel Mounts Lavish Campaign to Win Back Evangelicals

https://washingtonspectator.org/israeli-government-is-spending-millions-to-court-american-evangel...
4•throw310822•33m ago•0 comments

Show HN: Android AI agent-assistant operating your apps (no adb,PC,root,etc.)

1•sshnaidm1•33m ago•1 comments

Launchfolio – Create a portfolio in minutes for free, no account needed

1•SyedAtril•33m ago•0 comments

Running an x86-based computer with minimal to no RAM sticks [video]

https://www.youtube.com/watch?v=IHItbgHutVo
2•exploraz•33m ago•0 comments

Show HN: Uncook, the Social Network for Food

https://uncook.xyz
1•moffers•34m ago•0 comments

2026 Hungarian Parliamentary Election

https://en.wikipedia.org/wiki/2026_Hungarian_parliamentary_election
1•JumpCrisscross•34m ago•0 comments

Don't Let Your Boss Do Your Job

https://kevingoldsmith.substack.com/p/dont-let-your-boss-do-your-job
1•kiyanwang•34m ago•0 comments

Knuth Reward Check

https://www.thomas-huehn.com/knuth-reward-check/
2•Tomte•37m ago•0 comments

The Role and History of Bitcoin Core Maintainers

https://bitcoinmagazine.com/print/the-core-issue-the-role-and-history-of-bitcoin-core-maintainers
1•giuliomagnifico•41m ago•0 comments

Thoughts on the use of artificial intelligence in programming courses [video]

https://www.youtube.com/watch?v=1u-gQ-d5Lv8
1•leduyquang753•42m ago•0 comments

Show HN: Reverse-engineered Cursor tab completion client

https://github.com/abyesilyurt/cursor-tab
1•abyesilyurt•42m ago•0 comments

Show HN: Git Diff TUI with Go

https://difi.vercel.app/
1•oug-t•42m ago•0 comments

Is Cybersecurity Over? [video]

https://www.youtube.com/watch?v=fM7GIIylXqI
4•0xcrypto•42m ago•0 comments

Put your SSH keys in your TPM chip

https://raymii.org/s/tutorials/Put_your_SSH_keys_in_your_TPM_chip.html
1•type0•42m ago•0 comments

Linux 7.0 Ready for Release with Many Changes

https://www.phoronix.com/news/Linux-7.0-Changes
2•Bender•43m ago•0 comments