form-graph
    Preparing search index...

    Interface StandardSchemaV1<T>

    The subset of Standard Schema (https://standardschema.dev) the core accepts — zod 4, valibot, and arktype all implement it, so any of them works as a codec schema without adapters. Sync only: an async validator is rejected at runtime (resolution is synchronous by design).

    interface StandardSchemaV1<T = unknown> {
        "~standard": {
            validate: (
                value: unknown,
            ) => StandardSchemaResult<T> | Promise<StandardSchemaResult<T>>;
            vendor: string;
            version: 1;
        };
    }

    Type Parameters

    • T = unknown
    Index
    "~standard": {
        validate: (
            value: unknown,
        ) => StandardSchemaResult<T> | Promise<StandardSchemaResult<T>>;
        vendor: string;
        version: 1;
    }