Decoder for string values.
string
A decoder that validates and returns string values
JsonDecoder.string().decode('hi'); // Ok<string>({value: 'hi'})JsonDecoder.string().decode(5); // Err({error: '5 is not a valid string'}) Copy
JsonDecoder.string().decode('hi'); // Ok<string>({value: 'hi'})JsonDecoder.string().decode(5); // Err({error: '5 is not a valid string'})
Decoder for
string
values.