Cereal docs
TypeScript SDKTypeScript signatures

StandardSchemaLike

Public TypeScript declaration from @trycereal/sdk.

Import from @trycereal/sdk. Generated from the repository SDK declarations (package version 0.0.0); not from HTTP request schemas.

export interface StandardSchemaLike {
    readonly "~standard": {
        readonly version: 1;
        readonly vendor: string;
        readonly validate: (value: unknown) => StandardValidationResult | Promise<StandardValidationResult>;
        readonly jsonSchema?: {
            readonly input: (options: {
                readonly target: string;
            }) => Record<string, unknown>;
        } | undefined;
        readonly types?: {
            readonly input: unknown;
            readonly output: unknown;
        } | undefined;
    };
}

See SDK setup, authoring, client behavior, and the API/SDK map for usage. Domain types are described in schema reference.

Related SDK types: StandardValidationResult.