-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
x-typescript-types
header is not set for type-only module
#433
Comments
In case it's helpful, some more context. Here is an example deno script: import { Octokit } from "https://esm.sh/@octokit-next/core";
import "https://esm.sh/@octokit-next/types-rest-api";
const octokit = new Octokit();
const { data } = await octokit.request("GET /");
// should be typed as string
data.current_user_url When editing the above code in VS Code with the Deno extension, If the https://esm.sh/@octokit-next/types-rest-api import would work as expected, |
I was able to workaround the problem by adding a dummy export to the package: |
thanks for the details, I will add support for type only package! |
@ije did you have a chance to look into it? No worries if not, just checking in |
currently if you import module from https://github.com/@types/react, it will redirect to https://esm.sh/v104/@types/react@18.0.27/index.d.ts, i don't know if it works for |
the problem persists.
|
ok, i will fix this asap, thanks |
Hi @ije. My team is blocked by this in https://github.com/replicate/openapi Anything needed to help unblock a fix for it? |
@zeke I'm trying to fix this, but i can't access the repository, can you please provide a npm name instead? thanks! |
i fixed the |
Might be something else. I can confirm that the
I think it's safe to close this issue. I'll open a new one once I find out what causes the problem with the Deno Script. |
@gr2m thanks 🙏 |
Failing module
@octokit-next/types-rest-api@2.5.0
Error message
No error message. The
x-typescript-types
response header is not on esm.sh/@octokit-next/types-rest-api although they are specified, and although they existAdditional info
The text was updated successfully, but these errors were encountered: