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
When I use: check("foo").isIn(myArray)
where myArray is readonly array then I got an error:
Argument of type 'readonly number[]' is not assignable to parameter of type 'any[]'.
The type 'readonly number[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'.ts(2345)
Expected behavior
isIn shouldn't report an error for readonly arrays.
Express-validator version:
Version: 6.12.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When I use:
check("foo").isIn(myArray)
where myArray is readonly array then I got an error:
Expected behavior
isIn shouldn't report an error for readonly arrays.
Express-validator version:
The text was updated successfully, but these errors were encountered: