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/

'Factory flaw' spurs toy horse to instant popularity

https://www.chinadaily.com.cn/a/202601/12/WS69644af0a310d6866eb3329e.html
1•masfuerte•46s ago•0 comments

Interview with Warren Buffett: A Life and Legacy

https://podcasts.apple.com/us/podcast/warren-buffett-a-life-and-legacy-1-13-26/id1480890290?i=100...
1•sarmike31•1m ago•0 comments

I am worried about these newest Captchas

https://medium.com/the-haven/i-am-worried-about-these-newest-captchas-82d406715994
1•bryanrasmussen•2m ago•0 comments

Show HN: I made a pocket IDE for Android Developers

https://youtu.be/ToNxbKVkTic
1•0dayman•2m ago•0 comments

Weight-Loss Drugs Could Save U.S. Airlines $580M per Year

https://www.nytimes.com/2026/01/19/travel/airlines-weight-loss-drugs.html
1•mistersquid•4m ago•0 comments

Free Layer 7 Web DDoS protection for evaluation (from Germany)

1•linkeleven•5m ago•0 comments

Show HN: First party analytics pipeline on Cloudflare with DuckDB

https://try.icelight.dev/
1•cliftonc•8m ago•0 comments

Your workflow system just runs DAGs

https://blog.julik.nl/2026/01/on-the-way-to-step-functions-part-2
1•julik•10m ago•0 comments

Robust Conditional 3D Shape Generation from Casual Captures

https://facebookresearch.github.io/ShapeR/
1•lastdong•18m ago•0 comments

Oxfam's wealth inequality report 2026: Resisting the Rule of the Rich

https://policy-practice.oxfam.org/resources/resisting-the-rule-of-the-rich-621776/
1•kleiba•20m ago•0 comments

I Analyzed 28 Months of Data. Here's Why Story Points Are a Broken Tool

https://ksaweryskowron.substack.com/p/storypoints-are-not-good-planning-tool
1•PretzelFisch•20m ago•0 comments

Show HN: Meddle – Integrate, collect, manage and analyze realtime data

https://meddleconnect.com
1•MicheleLacorte•24m ago•0 comments

Fast_topk_batched: High-performance batched Top-K selection for CPU inference

https://github.com/RAZZULLIX/fast_topk_batched
1•thunderbong•25m ago•0 comments

Show HN: Kuse Cowork – An open source, BYOK alternative to Claude Cowork

https://github.com/kuse-ai/kuse_cowork
1•rctstudio2018•27m ago•0 comments

Washington's Covert Strike at the Heart of Iran's Power Structure

https://open.substack.com/pub/ajmals/p/us-strategic-shock-signal-to-iran
2•Gym-Berlin•30m ago•1 comments

Show HN: A Tailwind component generator focused on design quality, not AI "slop"

https://inspi.me/
1•yogourt•31m ago•1 comments

Show HN: Free tool to see how your thumbnail looks like on YouTube

https://www.awesomefreetools.xyz
1•awesomepotato•32m ago•0 comments

Alan MacMasters Hoax

https://en.wikipedia.org/wiki/Alan_MacMasters_hoax?wprov=sfti1
1•m-hodges•33m ago•0 comments

I fashioned each Fediverse instance into a star

https://100kstars.contained.love/
1•r0k1s_i•33m ago•0 comments

Bun Is Fast, Until Latency Matters for Next.js Workloads

https://blog.platformatic.dev/bun-is-fast-until-latency-matters-for-nextjs-workloads
1•gempir•34m ago•0 comments

Teaching RL Replay Buffers to Remember Long-Horizon Rewards (PyTorch)

https://domezsolt.substack.com/p/hippotorch-teaching-rl-agents-to
3•ashby_r•37m ago•0 comments

Web3 writing platform for Web3 writers

https://www.sigle.io/
1•janandonly•41m ago•0 comments

Which cryptexes does macOS Tahoe load?

https://eclecticlight.co/2026/01/19/which-cryptexes-does-macos-tahoe-load/
2•chmaynard•41m ago•0 comments

Looper.sh: yet another coding loop script

https://www.nibzard.com/looper-article
1•nkko•42m ago•0 comments

Why India's plan to make AI companies pay for training data should go global

https://restofworld.org/2026/india-ai-data-license-fee/
2•i7l•42m ago•0 comments

importmap.lock: A Lockfile for the Web

https://nesbitt.io/2026/01/19/importmap-lock.html
1•chmaynard•43m ago•0 comments

Show HN: Appa (POC): Self-shipping task queue via Linear & Claude Code

https://github.com/kxzk/appa
1•beigebrucewayne•45m ago•1 comments

Quantum 'alchemy' made feasible with excitons

https://phys.org/news/2026-01-quantum-alchemy-feasible-excitons.html
1•pseudolus•47m ago•0 comments

What's Worrying Jonathan Haidt Now?

https://calnewport.com/whats-worrying-jonathan-haidt-now/
2•chmaynard•47m ago•0 comments

40% of Kids Can't Read and Teachers Are Quitting [video]

https://www.youtube.com/watch?v=XTugyu2F0pc
7•squillion•48m ago•0 comments