You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this seems to fail in a very weird way if my custom type reuses type-check itself to validate something.
But it doesn't fail if there is only one custom type being used. I created 2 isolated test cases to demonstrate. The first one doesn't fail, but the second one does. Also, the inner assert inside the validation method is passing, so the inner use of typeCheck is working properly.
Hi there,
I was trying to create a type definition where I'd have two custom types being used on two separate properties of an object.
Essentially, something like:
'{prop1: CustomType1, prop2: CustomType2}'
However, this seems to fail in a very weird way if my custom type reuses type-check itself to validate something.
But it doesn't fail if there is only one custom type being used. I created 2 isolated test cases to demonstrate. The first one doesn't fail, but the second one does. Also, the inner assert inside the validation method is passing, so the inner use of typeCheck is working properly.
I tried debugging this and stepping into the code of the library but couldn't really figure out where and why it fails.
The text was updated successfully, but these errors were encountered: