import { fold } from "https://deno.land/x/fun@v2.0.0-alpha.6/decode_error.ts";
Parameters
Leaf: (value: unknown, reason: string) => O
Wrap: (error: string, errors: DecodeError) => O
Key: () => O
Index: () => O
Union: (errors: readonly [DecodeError, ...DecodeError[]]) => O
Intersection: (errors: readonly [DecodeError, ...DecodeError[]]) => O
Many: (errors: readonly DecodeError[]) => O
Returns
(e: DecodeError) => O