Libraries
    Preparing search index...

    Interface Props<Input, Output>

    The Standard Schema properties interface.

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

    Type Parameters

    • Input = unknown
    • Output = Input

    Hierarchy (View Summary)

    Index

    Properties

    Inferred types associated with the schema.

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

    Validates unknown input values.

    vendor: string

    The vendor name of the schema library.

    version: 1

    The version number of the standard.