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

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

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

apply schema object to data

Parameters

schemaObject: S

schema object

data: unknown

data to apply

onError: ErrorHandler

error handler

onFinishWithError: FinishHandler

finish handler

keyStack: Key[]

path to key that caused error

Returns

applied data