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

x/typeguardkit/core/validator.ts

A TypeScript module to help construct type assertion functions and type guards.
Latest
import * as typeguardkit from "https://deno.land/x/typeguardkit@0.33.0/core/validator.ts";

Interfaces

A Validator<Type> has a validate method, which should check value meets any runtime-only constraints of Type, and return any issues. This should not include constraints of any Validators for properties or elements of Type.