function asAssertion<TO, FROM>(validator): (val) => asserts val is TO
Type parameters
Type parameter |
---|
TO |
FROM |
Parameters
Parameter | Type |
---|---|
validator | Validator <TO , FROM > |
Returns
Function
Parameters
Parameter | Type |
---|---|
val | FROM |
Returns
asserts val is TO