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

fix: Compiler errors in Node #504

Merged
merged 1 commit into from
Jul 31, 2023
Merged

fix: Compiler errors in Node #504

merged 1 commit into from
Jul 31, 2023

Conversation

Gerrit0
Copy link
Contributor

@Gerrit0 Gerrit0 commented Jul 29, 2023

TypeDoc doesn't have "DOM" in the lib, so doesn't have a global Response interface like DOM types do. The changes in #384 (cc @orta) broke me because it references that type now. This moves the interface into loader.ts so that it gets bundled in the declaration file output.

@netlify
Copy link

netlify bot commented Jul 29, 2023

Deploy Preview for shiki-matsu failed.

Name Link
🔨 Latest commit 2a7c28f
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/64c55c6844acb4000868b050

@Gerrit0
Copy link
Contributor Author

Gerrit0 commented Jul 29, 2023

Deploy failures seems unrelated, I didn't change anything to do with node versions.

@orta
Copy link
Contributor

orta commented Jul 30, 2023

I've not thought too hard about this, but we did recently change this: #457

@Gerrit0
Copy link
Contributor Author

Gerrit0 commented Jul 30, 2023

I could certainly change it so that this is a local type that is exported, and name it ResponseLike or something... so long as:

  1. I don't need to add DOM to my lib
  2. I can compile without skipLibCheck

Then I'm happy

Copy link
Collaborator

@octref octref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think that's good for now. In the new API I'm working on I'll avoid this.

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.

3 participants