Content-Length: 282684 | pFad | http://github.com/getsentry/sentry-javascript/pull/16704

BC fix(cloudflare): Import types explicitly from worker-types by AbhiPrasad · Pull Request #16704 · getsentry/sentry-javascript · GitHub
Skip to content

fix(cloudflare): Import types explicitly from worker-types #16704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/pull/16704

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy