interface-forge - v2.5.0
    Preparing search index...

    Interface Props<Input, Output>

    The Standard Schema properties interface.

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

    Type Parameters

    • Input = unknown
    • Output = Input
    Index

    Properties

    types?: Types<Input, Output>

    Inferred types associated with the schema.

    validate: (value: unknown) => 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.