A TypeGuard for literal values.
TypeGuard
Returned by isLiteral.
isLiteral
Array of literal values to guard
The array of literal values this guard accepts
Creates a new guard that accepts all values except the specified ones
Creates a new guard that only accepts the specified subset of values
A
TypeGuardfor literal values.Returned by
isLiteral.