Skip to main content
Module

x/fun/mod.ts>schemable.TypeOf

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

Extracts the inner type of a Schema

definition: T extends Schema<infer A> ? A : unknown