Skip to main content
Module

x/fun/mod.ts>decoder.keyErr

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

Construct a Key from a key and an existing DecodeError.

Examples

Example 1

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

const result = D.keyErr(
  "title",
  D.leafErr(1, "expected string"),
  D.required,
);

Parameters

key: string
optional
property: Property = [UNSUPPORTED]