Skip to main content
Module

x/fun/mod.ts>decoder.optional

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

The optional tag denotes that a property in a struct or tuple is optional. This means that the key or index may not exist on the struct or tuple.

type

"optional"