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

x/fun/mod.ts>initializable.struct

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

Create an Initializable fixed to a struct using nested Initializables to create the init values within.

Type Parameters

O extends AnyReadonlyRecord

Parameters

initializables: [K in keyof O]: Initializable<O[K]>

Returns

Initializable<readonly [K in keyof O]: O[K]>