Skip to main content
Go to Latest
class TypeBuilder
import { TypeBuilder } from "https://deno.land/x/openbox@1.0.3/deps.ts";

Methods

protected
Create<T>(schema: Omit<T, "static" | "params">): T

[Internal] Creates a schema without static and params types

protected
Discard(record: Record<PropertyKey, any>, keys: PropertyKey[])

[Internal] Discards property keys from the given record type

protected
Throw(message: string): never

[Internal] Throws a TypeBuilder error with the given message

Strict<T extends TSchema>(schema: T): T

[Json] Omits compositing symbols from this schema