form-graph
    Preparing search index...

    Interface Schema<T>

    Structural schema contract. Satisfied by zod 3 and 4 as-is, and by hand-written schemas in tests — the core never imports zod, so the engine is testable and versionable independently of the validation library.

    interface Schema<T = unknown> {
        parse(value: unknown): T;
        safeParse(value: unknown): SafeParseResult<T>;
    }

    Type Parameters

    • T = unknown
    Index