type JSONSchemaType
cannot be resolved in generic/nonresolved context
#2495
Labels
JSONSchemaType
cannot be resolved in generic/nonresolved context
#2495
What version of Ajv are you using? Does the issue happen if you use the latest version?
Version: "8.17.1" (Currently latest)
Your typescript code
Typescript compiler error messages
Explanation of code
What I found out is that when the
T
parameter is not known/ is still a generic-type and it is passed to a generic function (liketest
). Somehow typescript cannot resolve this, eventhough in my mind everything should check out. I swapped theJSONSchemaType
for other objects which includes generic-types. Couldn't find something simular (and less complex) which results in the same issue.Question and/or bugreport
I am not sure if this is usererror (user = me), or this is because some complicated type defenition typescript cannot handle. I would love to get some feedback or hints about how to solve this.
Thanks in advance!
The text was updated successfully, but these errors were encountered: