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

PartialSchemable

import type { PartialSchemable } 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 but the values can also be partial.

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

interface PartialSchemable <U extends Kind> extends Hold<U> {
readonly partial: <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 partial: <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]