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: explicit typescript type for asElement function #145

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eatsjobs
Copy link
Contributor

@eatsjobs eatsjobs commented Jan 20, 2025

Typescript types generation fails with

esm/dom/utils.js:8:14 - error TS4118: The type of this node cannot be serialized because its property '__@nodeType@27111' cannot be serialized.

The jsdoc comment fix the issue
I also added two commands to check the types and the package.json exports.

Note: publint asserts that the types field in package.json must be the first one. this is why I moved it at the top of each exports section

@eatsjobs
Copy link
Contributor Author

@WebReflection Hey Andrea, you are probably busy in more interesting things but will you have time to review 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.

1 participant