Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/typebox/src/typebox.ts>TypeBuilder

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
class TypeBuilder
import { TypeBuilder } from "https://deno.land/x/typebox@0.31.20/src/typebox.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