Skip to content

Imported package has incorrect inferred typings for optional and nullable properties #908

Answered by Only8Bytes
Only8Bytes asked this question in Q&A
Discussion options

You must be logged in to vote

Not entirely sure where the issue was coming from, but it has been resolved by simply rebuilding and publishing the package. Maybe it was caused by the version mismatch between TypeScript or Valibot, but I don't know for certain. Thought that perhaps it was due to the package having the "types" compiler option set to just the types from the jest-dom, but it seems that that isn't the case. I'll investigate further and open an issue if necessary, but it seems like at the very least it's working fine now. I was not able to replicate the same issue with a minimal reproduction, so perhaps it was just related to the versions being mismatched or some other dependency.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Only8Bytes
Comment options

@Only8Bytes
Comment options

Answer selected by Only8Bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants