frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

Show HN: Skjalf TV, Steam Deck native, controller-first IPTV player

https://github.com/bikemazzell/skjalf-tv
1•ctbellmar•14s ago•0 comments

3D printed bearing at 10000 RPM

https://studio.youtube.com/video/sLW6DIH8r08/edit
1•budpencer•15s ago•0 comments

Tesla Powercore

https://twitter.com/tesla_megapack/status/2122721563493744771
1•pr337h4m•26s ago•0 comments

The Next Hardware Renaissance

https://twitter.com/federicoantoni/status/2122733806578745807
1•federicoantoni•34s ago•0 comments

One environment variable made our llama.cpp server up to 21% faster

https://tensward.com/blog/huge-pages-llama-cpp
1•tensward•41s ago•0 comments

CLI for torrenting open weight AI models

https://pirateface.co/articles/pirate-face-cli
4•headless_ai•1m ago•0 comments

Grand Theft Auto VI heads to launch amid feverish anticipation

https://www.reuters.com/lifestyle/grand-theft-auto-vi-heads-launch-amid-feverish-anticipation-202...
1•skibz•2m ago•0 comments

Full server-side Datasette Python app in the browser with service workers

https://simonwillison.net/2026/Nov/17/datasette-lite/
1•simonw•2m ago•0 comments

Organizing Large Documents

https://developers.google.com/tech-writing/two/large-docs
1•ankitg12•2m ago•0 comments

SyntraScan Cloudflare Edge Auditor for GA4 Consent Mode v2+live B2B Leak Vault

https://leakradar.leakradar.workers.dev/leads
1•Buisnessdesigne•2m ago•0 comments

Code is easy. What about marketing and sales?

1•jorgeacf•3m ago•0 comments

Safety in the Age of Hands-Free Driving

https://www.aptiv.com/en/insights/article/safety-in-the-age-of-hands-free-driving-with-end-to-end-ai
1•ohjeez•3m ago•0 comments

The Department of Justice Is Using AI Detector Pangram Against Defense Attorneys

https://www.404media.co/the-department-of-justice-is-using-ai-detector-pangram-against-defense-at...
1•waximabbax•4m ago•0 comments

Is Argon2 better than Bcrypt?

https://pilcrowonpaper.com/blog/14
1•mooreds•4m ago•0 comments

Show HN: Your Spreadsheet Is Your Database

https://spreadsheettoapp.ai
1•laotoutou•5m ago•0 comments

Capability-Based Security for AI Agents

https://magenticos.com/blog/capability-based-security-for-ai-agents/
1•iandaily•6m ago•0 comments

Java4Shell

https://hadrian.io/vulnerability-alerts/oracle-critical-security-patch-update-java-17-rce-claims
1•rvwaveren•6m ago•0 comments

Show HN: Atlas – Give Your AI Agent Better Web Context

https://atlas-compiler.com/
1•LIGHTINGSTAR•6m ago•0 comments

Show HN: Ask your AI before you renew any SaaS (free MCP server)

https://hissingkitty.com/developers
1•tech-pulse•7m ago•0 comments

Hoy: A macOS VMM on Hypervisor.framework with GPU acceleration for local models

https://hoy.cua.ai/launch
1•frabonacci•7m ago•1 comments

Cybercriminals hijack old Bitly social media links to promote offensive content

https://www.neowin.net/news/cybercriminals-hijack-old-bitly-social-media-links-to-promote-offensi...
1•bundie•8m ago•0 comments

A New Era of Dark Mode

https://www.felixgrassl.xyz/blog/adaptive_dark_mode/
1•speckx•9m ago•0 comments

The hot disk of gas around a spinning black hole

https://twitter.com/EelcoHoog/status/2122710459900108977
1•admsmz•10m ago•1 comments

Getting Off My Engineer Ass and Doing Sales

https://telemetrymachine.com/blog/getting-off-my-engineer-ass-and-doing-sales
2•tmach32•10m ago•0 comments

Practical Tips to Discourage Agents from Cheating

https://grady.dev/projects/agentic-cheating/
2•gbdubs•10m ago•1 comments

How Do We Know If an AI Model Is Safe for Us?

https://medium.com/affirmengineering/how-do-we-know-an-ai-model-is-safe-for-us-we-built-a-pressur...
2•alexanderstatni•13m ago•0 comments

Jensen Huang says he’s open to returning in first statement since resignation

https://www.cnbc.com/2026/11/17/nvidia-jensen-huang-statement.html
19•theanonymousone•14m ago•9 comments

I created a livestream where you control a $4k Robot [video]

https://www.youtube.com/watch?v=k_0LsB3UOSk
1•adrianmed•14m ago•0 comments

LLM-MLM: pyramid schemes for AI agents

https://llm-mlm.com/
2•logandavis•14m ago•1 comments

Java4Shell

https://twitter.com/calif_io/status/2122724367654334810
2•rvwaveren•15m ago•1 comments