Skip to main content
Module

x/fun/decoder.ts>keyErr

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function keyErr
import { keyErr } from "https://deno.land/x/fun@v.2.0.0-alpha.11/decoder.ts";

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]