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

x/typebox_deno/src/typebox.ts

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
import * as typeboxDeno from "https://deno.land/x/typebox_deno@0.31.22/src/typebox.ts";

Namespaces

Fast undefined check used for properties of type undefined

A registry for user defined string formats

Specialized Clone for Types

Provides functions to test if JavaScript values are TypeBox types

A registry for user defined types

Provides functions to type guard raw JavaScript values

Variables

Json Type Builder with Static Resolution for TypeScript

JavaScript Type Builder with Static Resolution for TypeScript

Functions

Clears all user defined string formats

Deletes a registered format

Returns the entries in this registry

Gets a validation function for a user defined string format

Returns true if the user defined string format exists

Sets a validation function for a user defined string format

Applies an intrinsic string manipulation to the given type.

Resolves an array of string[] keys from the given schema or array type.

Resolves an array of keys in this schema

Resolves a regular expression pattern matching all keys in this schema

Parses a pattern and returns an expression tree

Parses a pattern and strips forward and trailing ^ and $

Resolves a template literal as a TUnion

Clones a Rest

Clones a Type

Returns true if the given value is TAny

Returns true if the given value is TArray

Returns true if the given value is TAsyncIterator

Returns true if the given value is TBigInt

Returns true if the given value is TBoolean

Returns true if the given value is TConstructor

Returns true if the given value is TDate

Returns true if the given value is TFunction

Returns true if the given value is TInteger

Returns true if the given value is TIntersect

Returns true if the given value is TIterator

Returns true if the given value is TKind

Returns true if the given value is a TKind with the given name.

Returns true if the given value is TLiteral

Returns true if the given value is TLiteral

Returns true if the given value is TLiteral

Returns true if the given value is TLiteral

Returns true if the given value is TNever

Returns true if the given value is TNot

Returns true if the given value is TNull

Returns true if the given value is TNumber

Returns true if the given value is TObject

Returns true if this value has a Optional symbol

Returns true if the given value is TPromise

Returns true if this value has a Readonly symbol

Returns true if the given value is TRecord

Returns true if this value is TRecursive

Returns true if the given value is TRef

Returns true if the given value is TSchema

Returns true if the given value is TString

Returns true if the given value is TSymbol

Returns true if the given value is TTemplateLiteral

Returns true if the given value is TThis

Returns true of this value is TTransform

Returns true if the given value is TTuple

Returns true if the given value is TUint8Array

Returns true if the given value is TUndefined

Returns true if the given value is TUnion

Returns true if the given value is TUnion<Literal<string | number>[]>

Returns true if the given value is TUnknown

Returns true if the given value is a raw TUnsafe

Returns true if the given value is TVoid

Clears all user defined types

Deletes a registered type

Returns the entries in this registry

Gets a custom validation function for a user defined type

Returns true if this registry contains this kind

Sets a validation function for a user defined type

Returns a resolved union with interior unions flattened

Returns true if this value is an array

Returns true if this value is bigint

Returns true if this value is a boolean

Returns true if this value is null

Returns true if this value is number

Returns true if this value is an object

Returns true if this value is string

Returns true if this value is undefined

Type Aliases

Creates the static type for a TypeBox type

Creates the decoded static form for a TypeBox type

Creates the encoded static form for a TypeBox type