Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/value_schema/dist-deno/libs/applySchemaObject.ts>applySchemaObject

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

apply schema object to data

Parameters

schemaObject: S

schema object

data: unknown

data to apply

optional
onError: ErrorHandler = [UNSUPPORTED]

error handler

optional
onFinishWithError: FinishHandler = [UNSUPPORTED]

finish handler

Returns

applied data