Skip to content

Share Workers types with the host application - #39

Merged
andyrewlee merged 2 commits into
mainfrom
fix/consumer-worker-types
Dec 5, 2026
Merged

andyrewlee merged 2 commits into
mainfrom
fix/consumer-worker-types

Conversation

@andyrewlee

Copy link
Copy Markdown
Contributor

Use the host application's compatible Workers types. Pinning a separate dependency broke explicit DurableObjectState imports as soon as the application upgraded Cloudflare's declarations.

The installed package test compiles a host using newer Workers types without ambient globals, then runs the existing real Workerd starter and recovery journeys. Reproduced the type error on the prior archive. All 510 package tests and both package typechecks passed.

@andyrewlee
andyrewlee merged commit ca7a68f into main Dec 5, 2026
2 checks passed
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