Skip to content

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

Open
IFaniry wants to merge 1 commit intoSunderJS:masterfrom
IFaniry:master
Open

make @cloudflare/workers-types visible by Typescript#12
IFaniry wants to merge 1 commit intoSunderJS:masterfrom
IFaniry:master

Conversation

@IFaniry
Copy link
Copy Markdown

@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