Skip to content

fix: Compiler errors in Node#504

Merged
octref merged 1 commit into
shikijs:mainfrom
Gerrit0:broken-node
Jul 31, 2023
Merged

fix: Compiler errors in Node#504
octref merged 1 commit into
shikijs:mainfrom
Gerrit0:broken-node

Conversation

@Gerrit0

@Gerrit0 Gerrit0 commented Jul 29, 2023

Copy link
Copy Markdown
Contributor

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

netlify Bot commented Jul 29, 2023

Copy link
Copy Markdown

Deploy Preview for shiki-matsu failed.

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

@Gerrit0

Gerrit0 commented Jul 29, 2023

Copy link
Copy Markdown
Contributor Author

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

@orta

orta commented Jul 30, 2023

Copy link
Copy Markdown
Contributor

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

@Gerrit0

Gerrit0 commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

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

@octref octref left a comment

Copy link
Copy Markdown
Collaborator

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