functai for TypeScript - v0.1.0
    Preparing search index...

    Interface StandardSchemaLike<T, In>

    A schema of any library that implements Standard JSON Schema (standardschema.dev): zod 4.2+, valibot, arktype, ... Its output type is the field's type; its JSON Schema, the field's shape.

    interface StandardSchemaLike<T = unknown, In = unknown> {
        "~standard": {
            jsonSchema?: { input(options: { target: string }): JsonObject };
            types?: { input: In; output: T };
            validate: (value: unknown) => StandardResult | Promise<StandardResult>;
            vendor: string;
        };
    }

    Type Parameters

    • T = unknown
    • In = unknown
    Index
    "~standard": {
        jsonSchema?: { input(options: { target: string }): JsonObject };
        types?: { input: In; output: T };
        validate: (value: unknown) => StandardResult | Promise<StandardResult>;
        vendor: string;
    }