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: copy-paste jsx-runtime types for global JSX namespace registration #7978

Merged
merged 3 commits into from
Mar 29, 2023

Conversation

haoqunjiang
Copy link
Member

@haoqunjiang haoqunjiang commented Mar 29, 2023

Otherwise, TypeScript will raise TS2322 errors. I have no idea why and
how the fix works. But it does.

Even importing the ReservedProps and NativeElements types from
jsx-runtime instead of declaring them in the module would fail the
tests. I have no idea why, either.

The failing tests are at https://github.com/vuejs/ecosystem-ci/actions/runs/4538928668/jobs/7998297656#step:7:3

JSX DOM interfaces need to be exported too.

After these changes a few more tests are passed in the ecosystem CI: https://github.com/vuejs/ecosystem-ci/actions/runs/4544919366/jobs/8011786793

The remaining ones are mostly related to expose types and snapshot tests; the vuetify ones are related to module declaration augmentation of @vue/runtime-dom.

Otherwise TypeScript will raise TS2322 errors. I have no idea why and
how does the fix work. But it does.

Even importing the `ReservedProps` and `NativeElements` types from
`jsx-runtime` instead of declaring them in the module would fail the
tests. I have no idea why, either.

The failing tests are at https://github.com/vuejs/ecosystem-ci/actions/runs/4538928668/jobs/7998297656#step:7:3
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.

2 participants