interface StructuralSchema
Since 0.1.0

Minimal structural schema interface compatible with Zod's parse(unknown) API. Consumers supply a Zod schema without config-plugin depending on Zod.

Type Parameters

The parsed output type

Methods

parse(input: unknown): T

Parses and validates the input, applying coercions and defaults.

Usage

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