method StructuralSchema.parse
StructuralSchema.parse(input: unknown): T

Parses and validates the input, applying coercions and defaults.

Parameters

input: unknown

The raw input to validate

Return Type

The validated and coerced output

Throws

On validation failure

Usage

import { type StructuralSchema } from "config-plugin/src/index.ts";