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

x/typebox_deno/src/value/check.ts>Check

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
function Check
import { Check } from "https://deno.land/x/typebox_deno@0.31.22/src/value/check.ts";

Returns true if the value matches the given type.

Type Parameters

T extends Types.TSchema

Parameters

schema: T
references: Types.TSchema[]
value: unknown

Returns

value is Types.Static<T>

Returns true if the value matches the given type.

Type Parameters

T extends Types.TSchema

Parameters

schema: T
value: unknown

Returns

value is Types.Static<T>