Backstage
    Preparing search index...

    The Standard Schema properties interface.

    interface Props<Input = unknown, Output = Input> {
        types?: Types<Input, Output>;
        validate: (
            value: unknown,
            options?: StandardSchemaV1.Options,
        ) =>
            | StandardSchemaV1.Result<Output>
            | Promise<StandardSchemaV1.Result<Output>>;
        vendor: string;
        version: 1;
    }

    Type Parameters

    • Input = unknown
    • Output = Input

    Hierarchy

    Index

    Properties

    types?: Types<Input, Output>

    Inferred types associated with the schema.

    validate: (
        value: unknown,
        options?: StandardSchemaV1.Options,
    ) =>
        | StandardSchemaV1.Result<Output>
        | Promise<StandardSchemaV1.Result<Output>>

    Validates unknown input values.

    vendor: string

    The vendor name of the schema library.

    version: 1

    The version number of the standard.