Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StructSchemable

import type { StructSchemable } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/schemable.ts";

Takes a struct of Schemables and returns a Schemable for a struct that matches, key for key, the input schemables.

ie. { str: StringSchemable, num: NumberSchemable } becomes Schemable<{ str: string, num: number }>

interface StructSchemable <U extends Kind> extends Hold<U> {
readonly struct: <A, B, C, D, E>(items: readonly [K in keyof A]: $<U, [A[K], B, C], [D], [E]>) => $<U, [readonly [K in keyof A]: A[K], B, C], [D], [E]>;
}

§Type Parameters

§
U extends Kind
[src]

§Extends

§Properties

§
readonly struct: <A, B, C, D, E>(items: readonly [K in keyof A]: $<U, [A[K], B, C], [D], [E]>) => $<U, [readonly [K in keyof A]: A[K], B, C], [D], [E]>
[src]