Skip to main content
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.
Go to Latest
function initializable.struct
import { initializable } from "https://deno.land/x/fun@v2.0.0-alpha.12/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]>