Creates a literal decoder from a given string or number. Literal decoder checks if input value is explicitly equal to the specified value.
// Creates a decoder that will successfully decode input value 'Strict' and fail for all other values.const decoder = D.enum('Strict');
Generated using TypeDoc
Creates a literal decoder from a given string or number. Literal decoder checks if input value is explicitly equal to the specified value.
Example