Skip to main content
Module

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

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

apply schema object to data

Parameters

schemaObject: S

schema object

data: unknown

data to apply

optional
onError: ErrorHandler = [UNSUPPORTED]

error handler

optional
onFinished: FinishHandler = [UNSUPPORTED]

finish handler

Returns

applied data