Cell API
    Preparing search index...

    Interface StandardSchema<T>

    A schema in the Standard Schema form (zod, valibot, arktype implement it).

    interface StandardSchema<T = unknown> {
        "~standard": {
            vendor: string;
            version: 1;
            validate(
                value: unknown,
            ):
                | Promise<unknown>
                | { issues?: undefined; value: T }
                | {
                    issues: readonly {
                        message: string;
                        path?: readonly (PropertyKey | { key: PropertyKey })[];
                    }[];
                };
        };
    }

    Type Parameters

    • T = unknown
    Index
    "~standard": {
        vendor: string;
        version: 1;
        validate(
            value: unknown,
        ):
            | Promise<unknown>
            | { issues?: undefined; value: T }
            | {
                issues: readonly {
                    message: string;
                    path?: readonly (PropertyKey | { key: PropertyKey })[];
                }[];
            };
    }