Skip to content

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 23, 2025

resolves #16099

This PR removes @cloudflare/worker-types from packages/cloudflare/tsconfig.json in favour of explicitly importing it from the package. This is what cloudflare itself recommends: https://developers.cloudflare.com/workers/languages/typescript/

image

This caused some type re-arranging. The workflow types from #16672 were also not in @cloudflare/worker-types so they had to be vendored in. I created cloudflare/workerd#4398 to report that.

@timfish
Copy link
Collaborator

timfish commented Jun 23, 2025

The workflow types from #16672 were also not in @cloudflare/worker-types

Oh nasty! What does cloudflare:workers point to and how comes that has the workflow types?

@AbhiPrasad AbhiPrasad force-pushed the abhi-remove-default-cloudflare-types branch from 0b29316 to d51db5c Compare June 23, 2025 22:00
@AbhiPrasad
Copy link
Member Author

cloudflare:workers comes from auto-generated types (from wrangler), which is why it messes up with pnpm in #16099

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.

[sentry/cloudflare] Sentry import breaks Env type
2 participants