the type of each input item.
the constrained type of each input item.
The array of items to inspect.
The assertion function. If all items pass, the array itself will be constrained too.
Optional
message: stringOptional message to include if an assertion fails.
Asserts that all items pass the assertion. This function can be used to constrain a type from
T[]
toConstrained[]
.