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 JSDOMRunner Typescript errors #33

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

michavie
Copy link
Contributor

Some errors appear when pulling the @mml-io/observable-dom into a project with default tsconfig.json options (tsc --init) and trying to compile (see attached screenshot). The proposed diff fixes them. The nullable types could certainly be handled differently; feel free to attach further changes to this PR – maintainer edits are allowed.

npm run lint-all runs successfully with these changes. Tests I did not verify locally because of (likely unrelated) errors.


What kind of changes does your PR introduce? (check at least one)

  • Bugfix

Does your PR introduce a breaking change? (check one)

  • No

Does your PR fulfill the following requirements?

  • [?] All tests are passing

image

@MarcusLongmuir
Copy link
Collaborator

Thanks for this! Ideally the types would be emit without depending on the src, but this should simplify some usage in the meantime 👍

@MarcusLongmuir MarcusLongmuir merged commit 06989ea into mml-io:main Jun 25, 2023
1 check passed
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.

None yet

2 participants