Closed shian15810 closed 4 years ago
That's because curl https://cdn.pika.dev/-/wretch@v1.7.2-e1h0Jt5yrayo6YXT1yrl/dist=es2017,mode=types/index.d.ts
is actually returning a 301 Redirect to the correct type file at "dist/index.d.ts". You can see this by opening that URL in your browser, and seeing it download the correct file.
Deno should be following these redirects, but if you were seeing an issue in Deno let me know!
@FredKSchott Thanks for the clarification, I didn't notice that redirection.
My scenario is that I'm not getting typescript type information in vscode, and I can just trace it down to that blank file. Now I know how to solve it. Thank you!
Fantastic!
curl -I -X GET https://cdn.pika.dev/wretch
is getting the following header:Further
curl https://cdn.pika.dev/-/wretch@v1.7.2-e1h0Jt5yrayo6YXT1yrl/dist=es2017,mode=types/index.d.ts
is actually getting a blank file, with the following header:However,
wretch
is actually providing"types": "./dist/index.d.ts"
in itspackage.json
.