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/

Show HN: Curation: Share Podcast Recommendation

https://curation-509629088134.us-west1.run.app/
1•arbol•27s ago•0 comments

OpenAI's latest internal memo about beating the competition

https://www.theverge.com/ai-artificial-intelligence/911118/openai-memo-cro-ai-competition-anthropic
1•pretext•2m ago•0 comments

Mount GitHub repositories as a virtual read-only macOS filesystem

https://github.com/indragiek/GHFS
1•latchkey•3m ago•0 comments

I Rode in a Waymo with a Litigator: Here's What I Learned

https://www.law.com/2026/04/13/i-rode-in-a-waymo-with-a-litigator-heres-what-i-learned/
2•1vuio0pswjnm7•5m ago•0 comments

Show HN: Is Claude still thinking? How are you wasting life?

https://claudestillthinking.com
1•Exorust•6m ago•0 comments

Show HN: Hitoku Draft – context aware local macOS assistant

https://github.com/Saladino93/hitokudraft
1•lostathome•6m ago•0 comments

Running (and Coding with) Local AI on a Mac

https://github.com/dmitryryabkov/local-ai-mac
1•allessa•6m ago•0 comments

Linux 7.0 debuts as Linus Torvalds ponders AI's bug-finding powers

https://www.theregister.com/2026/04/13/linux_kernel_7_releaseed/
1•blackcoffeerain•6m ago•0 comments

New disclosures reveal how DOGE worked

https://www.washingtonpost.com/politics/2026/04/13/doge-musk-trump-deposition-videos-chatgpt/
1•_tk_•6m ago•0 comments

Want to understand the current state of AI? Check out these charts

https://www.technologyreview.com/2026/04/13/1135675/want-to-understand-the-current-state-of-ai-ch...
1•joozio•7m ago•0 comments

Why most AI projects feel useless

2•vaishcodescape•8m ago•1 comments

Lobsters Interview with Internet_Jannitor

https://alexalejandre.com/programming/interview-with-john-earnest/
1•PaulHoule•9m ago•0 comments

Show HN: Asthi – Damn good asset tracker

https://www.asthi.app/
1•suvamsh•11m ago•0 comments

Show HN: CRXcavator, but Better

https://amibeingpwned.com
1•acorn221•11m ago•0 comments

I vibe coded a feed reading web app. It was enlightening and uncomfortable

https://www.theregister.com/2026/04/12/vibe_coding_works/
3•geekinchief•12m ago•0 comments

Show HN: Built a personality that lives across CLI, browser, and web –> all solo

1•thomasgeelens•14m ago•0 comments

Show HN: Aurora – a browser engine experiment in Rust

1•JohannaAlmeida•15m ago•1 comments

What does it mean to measure durable change velocity in 2026?

https://www.gitclear.com/blog/measuring_durable_change_velocity_in_2026_prompt_to_production_era
1•wbharding•15m ago•0 comments

The AI build-out is powering global goods trade

https://www.ft.com/content/ad169119-4a62-437b-b6ec-70819b1e8b4f
1•alephnerd•16m ago•0 comments

Mist: Open-source Markdown editor with AI-native comments and suggested edits

https://interconnected.org/home/2026/04/10/open-mist
1•austinbirch•16m ago•0 comments

Cloudflare Turnstile Is Down

2•owenthejumper•17m ago•0 comments

Unpatched vuln in RAGFlow allows for post-auth RCE

https://zeropath.com/blog/ragflow-rce-unpatched-vulnerability
1•NonStopOyster•18m ago•0 comments

Does Trump think he's God?

https://www.taxresearch.org.uk/Blog/2026/04/13/does-trump-think-hes-god/
6•only_in_america•19m ago•1 comments

Tell HN: Claude-code prompt-cache fix

1•g4cg54g54•20m ago•1 comments

Gas Town Notes and Spaced Repetition Prompts

https://www.meadow-notes.com/sites/v5v5wwby974a-gas-town-vGEa1tk/gt/Gas%20Town.html
4•gmccreight2•22m ago•1 comments

What Now (and What's Next)

https://www.strix.ai/blog/your-first-visitors-arent-users-theyre-bots
7•bearsyankees•22m ago•0 comments

The GPU Moat Has a Side Door: AI Research Outside the Frontier Labs

https://mangeshgupte.substack.com/p/the-gpu-moat-has-a-side-door
1•achllies•22m ago•0 comments

Agentic Search Leaderboard

https://www.algolia.com/llm-leaderboard/
1•matthieu_bl•24m ago•0 comments

Artemis II Is Back

1•anju-kushwaha•26m ago•0 comments

Did you notice the command error exit in the shell?

https://monzool.net/blog/2026/04/10/error-banner-in-shell/
1•birdculture•27m ago•0 comments