Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>decoder.Index

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

The Index type is used to contextualize an error that occurred at an index in an Array or Tuple.

definition: { readonly tag: "Index"; readonly index: number; readonly property: Property; readonly error: DecodeError; }