Skip to content

Conversation

@jasnell
Copy link
Collaborator

@jasnell jasnell commented Oct 21, 2025

Provides a mechanism to obtain const TypeHandler& references without needing to inject them via jsg argument injection.

tests were implemented by claude with a bit of manual intervention.

This approach is imperfect, of course... specifically because it requires individual types to be registered. It won't automatically work for things like const TypeHandler<jsg::Promise<T>> since it can't know about all possible jsg::Promise<T>'s we might use, but it's good enough to investigate the utility.

** THIS IS CURRENTLY JUST AN EXPLORATION OF OPTIONS **

Draft since this is still WIP/being investigate.

Internal build will fail until the same v8 patch is landed there.

Provides a mechanism to obtain const TypeHandler<T>& references
without needing to inject them via jsg argument injection.
@jasnell jasnell requested review from a team, erikcorry, harrishancock and kentonv October 21, 2025 00:22
@jasnell jasnell requested review from a team as code owners October 21, 2025 00:22
@jasnell jasnell marked this pull request as draft October 21, 2025 02:25
@github-actions
Copy link

github-actions bot commented Oct 21, 2025

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant