import { decoder } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { wrapErr } = decoder;
Construct a Wrap from context and an existing DecodeError.
Examples
Example 1
Example 1
import * as D from "./decoder.ts";
const result = D.wrapErr(
"expected password",
D.leafErr(1, "expected string")
);
Parameters
error: DecodeError