Skip to main content
Module

x/fun/decoder.ts>unknown

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

A Decoder that always returns true and casts the result to unknown.

Examples

Example 1

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

const result1 = D.unknown(null); // Right(null)
const result2 = D.unknown("Brandon"); // Right("Brandon")

type

Decoder<unknown, unknown>