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

x/value_schema/dist-deno/appliers/object/schema.ts>applyTo

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, Deno, and Bun
Latest
function applyTo
import { applyTo } from "https://deno.land/x/value_schema@v4.0.0/dist-deno/appliers/object/schema.ts";

apply schema

Parameters

values: Values

input/output values

rules: Rules<S>

rules

keyStack: Key[]

path to key that caused error

Returns

values is Values<ObjectTypeOf<S>>

ends applying