@suluk/platform - v0.6.0
    Preparing search index...

    Interface Schema<Out>

    Standard-Schema v1 shape (zod v4 implements it). Declared LOCALLY so the Service interface can carry the typed-opts slots with NO runtime validator dependency in Phase 1; Phase 2 replaces this with @standard-schema/spec and populates serviceOpts/brandOpts with real zod schemas (zod as a peerDependency). Out carries the inferred value type.

    interface Schema<Out = unknown> {
        "~standard": {
            version: 1;
            vendor: string;
            validate: (
                value: unknown,
            ) => { value: Out } | { issues: readonly unknown[] } | Promise<unknown>;
        };
    }

    Type Parameters

    • Out = unknown
    Index

    Properties

    Properties

    "~standard": {
        version: 1;
        vendor: string;
        validate: (
            value: unknown,
        ) => { value: Out } | { issues: readonly unknown[] } | Promise<unknown>;
    }