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

Comments

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

ChatGPT could not apply the Law of the Excluded Middle

https://chatgpt.com/share/696b7f8a-9760-8006-a1b5-89ffd7c5d2d9
1•rafaelbeirigo•20s ago•1 comments

Matthew McConaughey trademarks iconic phrase to stop AI misuse

https://www.bbc.com/news/articles/cp87z6vexl3o
1•deegles•29s ago•0 comments

Tested 31 AI detection/humanization tools – $5/mo GPTs beat $300/mo

1•khadinakbar•1m ago•0 comments

Show HN: KissMotion – AI kiss video generator from a single photo

https://aikissvideo.app
1•Yreminder•1m ago•0 comments

Move Over, ChatGPT: You are about to hear more about Claude Code

https://www.theatlantic.com/technology/2026/01/claude-code-ai-hype/685617/
1•pretext•2m ago•0 comments

K6: A web load testing tool, written in Golang and configured in JavaScript

https://github.com/grafana/k6
1•fanf2•2m ago•0 comments

Tested 31 AI detection/humanization tools for 90 days – $5/mo GPTs beat $300/mo

1•khadinakbar•2m ago•0 comments

Terminal Lucidity

https://my.clevelandclinic.org/health/symptoms/terminal-lucidity
2•thunderbong•8m ago•0 comments

Show HN: Cyber+ – a security-focused programming language

https://github.com/TanmayCzax/CyberPlus-1.0
1•CzaxTanmay•14m ago•1 comments

Show HN: Chatbot with Let's Encrypt Community support database

https://axelspire.com/chatbot/chat/
1•dc352•14m ago•0 comments

Git Gandalf (Local LLM–Powered Pre-Commit Code Reviewer)

https://github.com/Faizan711/git-gandalf
1•Faizan711•16m ago•1 comments

Flux: A Kanban Board That Speaks MCP

https://paddo.dev/blog/flux-kanban-for-ai-agents/
1•splurgez•17m ago•0 comments

I'll Build This Later

https://cnicodeme.com/ill-build-this-later
1•cx42net•22m ago•0 comments

WhatsApp web doesn't support voice/video call

1•webtcp•22m ago•1 comments

CSS-only Mario World (with keyboard)

https://codepen.io/t_afif/pen/JoKYwXO
1•l34k•23m ago•0 comments

Updated Vulkan Tutorial from Sascha Willems (2026)

https://www.howtovulkan.com/
1•socki•25m ago•1 comments

Understanding FIPS 202: The Design of Keccak, SHA-3, and Shake

https://codingpirate.com/understanding-fips-202-the-design-of-keccak-sha-3-and-shake-aaad72608cc9
1•Deeptiman•25m ago•1 comments

Musk seeks up to $134B from OpenAI, Microsoft in fraud lawsuit

https://www.business-standard.com/world-news/musk-seeks-up-to-134-billion-from-openai-microsoft-i...
1•hagbard_c•32m ago•0 comments

I hotreload Rust and so can you

https://kampffrosch94.github.io/posts/hotreloading_rust/
1•polanas•34m ago•0 comments

Do people still need websites, or just a public page?

2•paravaib•37m ago•1 comments

Pushing the smallest possible change to production

https://ankursethi.com/blog/smallest-possible-change/
1•todsacerdoti•41m ago•0 comments

Log Levels: A Better Strategy with OpenTelemetry

https://www.dash0.com/knowledge/log-levels
1•ayoisaiah•42m ago•0 comments

Vercel Launches Skills – "NPM for AI Agents" with React Best Practices Built-In

https://jpcaparas.medium.com/vercel-launches-skills-npm-for-ai-agents-with-react-best-practices-b...
1•zenoware•49m ago•0 comments

The Instant Pot Failed Because It Was a Good Product (2023)

https://www.theatlantic.com/technology/archive/2023/06/instant-pot-bankrupt-private-equity/674414/
1•rwmj•50m ago•1 comments

The 600-year-old origins of the word 'hello'

https://www.bbc.com/culture/article/20260113-hello-hiya-aloha-what-our-greetings-reveal
14•1659447091•52m ago•3 comments

Ask HN: Favorite YouTube Channels?

3•chistev•58m ago•1 comments

Ask HN: Any tools for managing multi Claude Code instances?

1•tansan•59m ago•0 comments

Why Saunas, Bathhouses, Cold Plunge Pools Are So Popular

https://www.bloomberg.com/news/features/2026-01-16/why-saunas-bathhouses-cold-plunge-pools-are-so...
1•Anon84•1h ago•0 comments

Show HN: Termilingo – a terminal-based spaced repetition flashcard app

https://github.com/ayakovlenko/termilingo
1•ayakovlenko•1h ago•0 comments

Case Study: Hydration Latency in Enterprise E-Commerce (Nike vs. New Balance)

https://websiteaiscore.com/blog/nike-vs-new-balance-technical-audit
1•aggeeinn•1h ago•1 comments