Validator

type Validator<TO, FROM>: (p1) => p1 is TO;

Type parameters

Type parameterValue
TO extends FROM-
FROMunknown

Parameters

ParameterType
p1FROM

Returns

p1 is TO