Either overview
Added in v2.1.0
Table of contents
Combinators
Either
The fp-ts Either type as a schemata-ts schema.
Signature
export declare const Either: <EI, EO, AI, AO>(
left: Schema<EI, EO>,
right: Schema<AI, AO>
) => Schema<
{ readonly _tag: 'Left'; readonly left: EI } | { readonly _tag: 'Right'; readonly right: AI },
Either_<EO, AO>
>
Added in v2.1.0