Skip to main content
Module

x/fun/decoder.ts>manyErr

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function manyErr
import { manyErr } from "https://deno.land/x/fun@v2.0.0/decoder.ts";

Construct a Many from zero or more DecodeErrors.

Examples

Example 1

import * as D from "./decoder.ts";

const result1 = D.manyErr(
  D.leafErr(1, "expected noninit string"),
  D.leafErr(1, "expected string with no spaces"),
);
const result2 = D.manyErr();

Parameters

...errors: readonly DecodeError[]