Type declaration
custom:function
- custom<T_1>(__namedParameters): functional.Codec<T_1>
Parameters
__namedParameters: {
decode: ((value) => functional.Either<string, T_1>);
encode: ((value) => any);
schema?: (() => object);
}
decode: ((value) => functional.Either<string, T_1>)
encode: ((value) => any)
Optional
schema?: (() => object)
interface:function
Creates a codec for any type, you can add your own deserialization/validation logic in the decode argument