Skip to content

parseNever()

ts
function parseNever(data): ParseFailure

A parser that always fails. Parsing never always fails because no value can be assigned to nevernever corresponds to an empty set of values.

See

parseUnknown for a counterpart

Parameters

ParameterTypeDescription
dataunknowndata to be validated

Returns

ParseFailure