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/

Configure automatic detection of work location in Microsoft Teams

https://learn.microsoft.com/en-us/microsoft-365/places/configure-auto-detect-work-location
1•TheDataMaverick•5m ago•0 comments

The Coupang data breach that hit two-thirds of South Korea

https://www.ft.com/content/df4042fa-3e56-410f-b905-4aed8fd434ac
1•zdw•10m ago•0 comments

Poor Johnny still won't encrypt

https://bfswa.substack.com/p/poor-johnny-still-wont-encrypt
2•zdw•11m ago•0 comments

Show HN: Flowctl – Self-service workflows with approvals and SSO. Single Binary

https://github.com/cvhariharan/flowctl
1•cv_h•15m ago•0 comments

New Google web ecosystem tools and partnerships

https://blog.google/products/search/tools-partnerships-web-ecosystem/
1•gmays•15m ago•0 comments

Show HN: OAuth-style authorization for AI agents

https://www.npmjs.com/package/@variant96/pia-sdk
1•Pukuta•18m ago•0 comments

Show HN: Ten Principles of Good Design

https://tonygaeta.com/labs/ten-principles-of-good-design
1•LightMorpheus•19m ago•0 comments

Coding Agents and Complexity Budgets

https://leerob.com/agents
1•tortilla•24m ago•0 comments

Physicians AI Report

https://2025-physicians-ai-report.offcall.com/
1•samuel246•26m ago•0 comments

Model Context Protocol (MCP) Support for Google Services

https://cloud.google.com/blog/products/ai-machine-learning/announcing-official-mcp-support-for-go...
1•manveerc•32m ago•0 comments

Show HN: Tandem – Real-time collaborative editor with AI attribution tracking

https://github.com/lmanchu/tandem/tree/v3
1•Lmanchu•33m ago•1 comments

UK developing urgent plan for conflict, minister says

https://ukdefencejournal.org.uk/uk-developing-urgent-plan-for-conflict-minister-says/
2•Bender•34m ago•0 comments

Show HN: Claude Code Recipes for Knowledge Workers (Open Source)

https://github.com/sgharlow/claude-code-recipes
2•sgharlow•35m ago•0 comments

Switzerland's Security Policy Strategy

https://www.news.admin.ch/en/newnsb/BLkWfUbUsXtBFoSj-krgU
2•samuel246•36m ago•0 comments

BoxLite Love AI agent – SQLite for VMs: embeddable AI agent sandboxing

https://github.com/boxlite-labs/boxlite
1•dorianzheng•48m ago•1 comments

Don't Build Agents, Build Skills Instead – Barry and Mahesh, Anthropic [video]

https://www.youtube.com/watch?v=CEvIs9y1uog
1•kerim-ca•53m ago•0 comments

Color Spaces, Gamuts, and Transformations

https://ari-atori.dev/articles/color-spaces-gamuts-and-transformations.html
1•todsacerdoti•55m ago•0 comments

Michael Jordan was a basketball legend. Now, he's one in NASCAR too

https://www.nytimes.com/athletic/6882918/2025/12/11/michael-jordan-nascar-settlement-trial-legend/
1•divbzero•56m ago•1 comments

Deno 2.6 and Socket: Supply Chain Defense in Your CLI

https://socket.dev/blog/deno-2-6-socket-supply-chain-defense-in-your-cli
2•feross•1h ago•0 comments

Battery storage hits $65/MWh, a tipping point for solar

https://electrek.co/2025/12/12/battery-storage-hits-65-mwh-tipping-point-solar/
6•toomuchtodo•1h ago•3 comments

EV sticker shock: Solo drivers using California carpool lanes face hefty fines

https://www.latimes.com/california/story/2025-12-01/ev-sticker-shock-solo-drivers-using-californi...
1•PaulHoule•1h ago•1 comments

Show HN: I made a grid that sizes your subscriptions by what they cost

https://visualize.nguyenvu.dev/
1•hoangvu12•1h ago•1 comments

UK Lords propose ban on VPNs for children

https://www.techradar.com/vpn/vpn-privacy-security/uk-lords-propose-ban-on-vpns-for-children
7•josephcsible•1h ago•0 comments

Google Removes Sci-Hub Domains from U.S. Search Results Due to Dated Court Order

https://torrentfreak.com/google-removes-sci-hub-domains-from-u-s-search-results-due-to-dated-cour...
23•t-3•1h ago•3 comments

Processing 630M More Pwned Passwords, Courtesy of the FBI

https://www.troyhunt.com/processing-630-million-more-pwned-passwords-courtesy-of-the-fbi/
1•LorenDB•1h ago•0 comments

Waymo: "Not yet a legal path to operating in New York"; NYC demo video

https://twitter.com/Waymo/status/1999620430970167481
3•tech234a•1h ago•0 comments

Cycle-accurate YM2149 PSG emulator

https://github.com/slippyex/ym2149-rs
1•todsacerdoti•1h ago•0 comments

The Coming Need for Formal Specification

https://benjamincongdon.me/blog/2025/12/12/The-Coming-Need-for-Formal-Specification/
3•todsacerdoti•1h ago•1 comments

.NET Wrapper for latest PCRE2 library

https://github.com/ltrzesniewski/pcre-net
2•hooge•1h ago•0 comments

Oliver Sacks fabricated key details in his books

https://boingboing.net/2025/12/12/oliver-sacks-fabricated-key-details-in-his-books.html
16•talonx•1h ago•2 comments