Skip to content
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

make @cloudflare/workers-types visible by Typescript #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IFaniry
Copy link

@IFaniry IFaniry commented Jul 27, 2022

Issue: the original tsconfig file, would include @cloudflare/workers-types types like so:

  • ./node_modules/@types/@cloudflare/workers-types,
  • ../node_modules/@types/@cloudflare/workers-types,
  • ../../node_modules/@types/@cloudflare/workers-types and so on, as per the reference page.

Solution: Since the actual path to Cloudflare Workers types is ./node_modules/@cloudflare/workers-types, I made this PR according to the tsconfig reference page.

Strangely, I cannot get a screenshot of the corresponding VS Code error anymore now that I made this change on my machine.

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