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

x/typebox_deno/src/value/value.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/value/value.ts";

Namespaces

Functions to perform structural operations on JavaScript values

Functions

Casts a value into a given type. The return value will retain as much information of the original value as possible.

Returns true if the value matches the given type and references

Returns a structural clone of the given value

Converts any type mismatched values to their target type if a reasonable conversion is possible

Creates a value from the given type and references

Decodes a value or throws if error

Returns edits to transform the current value into the next value

Encodes a value or throws if error

Returns true if left and right values are structurally equal

Returns an iterator for each error in this value.

Returns a FNV1A-64 non cryptographic hash of the given value

Performs a deep mutable value assignment while retaining internal references.

Returns a new value with edits applied to the given value