This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
conditional if()
validation does not allow late type matching
#24
Labels
enhancement
New feature or request
Milestone
I was expected the following validation code to work, based on https://github.com/bodinsamuel/altheia/blob/master/Documentation.md#if-test-func-then-func-otherwise-func- and https://github.com/bodinsamuel/altheia/blob/master/test/base.test.js#L133:
... but the
test => test.array()
expression ends up throwing atest.array is not a function
error.I'm guessing that
any()
should return an object that still allows type checking methods likearray()
.The text was updated successfully, but these errors were encountered: