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

Comments

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

Please, review wordoid2.com, a smart naming webapp inspired by original

https://wordoid2.com/
1•aleks5678•27s ago•1 comments

Show HN: Spec-AGENTS.md – A tiny Doc-Driven "spec" for AI coding tools

https://github.com/yibie/SPEC-AGENTS.md
1•oliverchan2024•2m ago•0 comments

Nvidia B200: Keeping the CUDA Juggernaut Rolling Ft. Verda (Formerly DataCrunch)

https://chipsandcheese.com/p/nvidias-b200-keeping-the-cuda-juggernaut
1•rbanffy•6m ago•0 comments

ArkhamMirror: Airgapped investigation platform with CIA-style hypothesis testing

https://github.com/mantisfury/ArkhamMirror
1•ArkhamMirror•7m ago•1 comments

Cloudflare Radar: The rise of AI, post-quantum, and DDoS attacks

https://blog.cloudflare.com/radar-2025-year-in-review/
1•furkansahin•8m ago•0 comments

Cloudflare Is Experiencing Increased Error Rates Accessing R2 from ENAM

https://www.cloudflarestatus.com/incidents/0z4xng0gllq7
1•ouked•8m ago•0 comments

I ported JustHTML from Python to JavaScript with LLMs in 4.5 hours

https://simonwillison.net/2025/Dec/15/porting-justhtml/
1•genericlemon24•9m ago•0 comments

King of Cannibal Island: Will the AI Bubble Burst?

https://www.lrb.co.uk/the-paper/v47/n23/john-lanchester/king-of-cannibal-island
1•ostacke•10m ago•1 comments

AI space datacenters are impossible

https://ulveon.net/p/2025-12-15-ai-space-datacenters-are-literally-impossible/
2•kevin061•10m ago•0 comments

The Specification Renaissance? Skills and Mindset for Spec Driven Development

https://blog.scottlogic.com/2025/12/15/the-specification-renaissance-skills-and-mindset-for-spec-...
2•furkansahin•10m ago•0 comments

Dispatches

https://rodgercuddington.substack.com/p/dispatches
1•freespirt•10m ago•0 comments

Show HN: ToneFit AI – strength workouts generated from goal, time and equipment

https://www.tonefitai.com/
1•SidDaigavane•11m ago•0 comments

Reflections on U.S. Government Outreach to Think Tanks

https://www.brookings.edu/articles/who-influences-whom-reflections-on-u-s-government-outreach-to-...
1•SiempreViernes•11m ago•0 comments

EU yields to pressure from automakers as it rethinks 2035 combustion car ban

https://www.reuters.com/sustainability/climate-energy/eu-yields-pressure-automakers-it-rethinks-2...
2•luckys•11m ago•0 comments

Denmark wants to ban VPNs to unlock foreign, illegal streams

https://www.techradar.com/vpn/vpn-privacy-security/denmark-wants-to-ban-vpns-to-unlock-foreign-il...
1•Palmik•12m ago•0 comments

Liquid Technologies Intelligently Seeps Through Africa, Spilling Globally

1•FotizoPhronesis•13m ago•0 comments

What does a lean proof prove?

https://supaiku.com/what-does-a-lean-proof-prove
1•elcomet•14m ago•0 comments

Food firms scramble to meet the high-protein craze

https://www.bbc.com/news/articles/c20zk35ypxno
1•kristianp•15m ago•0 comments

Lifemap

https://lifemap.cnrs.fr/
1•dtj1123•16m ago•0 comments

Indexed reverse polish notation, an alternative to AST

https://burakemir.ch/post/indexed-rpn/
1•fanf2•16m ago•0 comments

Bitcoin-Gold Flippening – Flip.gold

https://flip.gold/
1•janandonly•18m ago•0 comments

PhotoWorks 16.0: New Photo Editor to Bite the Big Mac

https://petapixel.com/2023/04/20/photoworks-16-0-new-photo-editor-to-bite-the-big-mac/
3•thisislife2•20m ago•0 comments

I'm a Tech Lead, and nobody listens to me. What should I do?

https://world.hey.com/joaoqalves/i-m-a-tech-lead-and-nobody-listens-to-me-what-should-i-do-e16e454d
8•joaoqalves•20m ago•0 comments

Show HN: A Windows widget that shows Claude usage limits

https://github.com/SlavomirDurej/claude-usage-widget
1•SlavomirDurej•21m ago•0 comments

Chomsky and the Two Cultures of Statistical Learning

https://norvig.com/chomsky.html
3•atomicnature•25m ago•0 comments

Show HN: TSZ – Open-source guardrails and data security layer for LLM pipelines

https://github.com/thyrisAI/safe-zone
1•halilbugol•27m ago•0 comments

Ask HN: What's stopping us from having full static validation of Python code?

2•diegojromero•28m ago•1 comments

Show HN: Hugity – Notion-style static docs editor with GitHub/Hugo auto-deploy

https://app.hugity.com
1•vladimiras•31m ago•0 comments

"So I'm in the Epstein files" - the academics involved...

https://www.youtube.com/watch?v=VNLdyWPAz18
1•nephihaha•31m ago•3 comments

Railway Is Down

https://status.railway.com/cmj89j6z2000qodpsfs4nc2gb
2•alpineman•31m ago•2 comments