@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface StandardSchemaLike<T>

    The subset of Standard Schema v1 the framework consumes.

    The spec allows validate to return either a result or a promise, so "synchronous only" cannot be expressed in the type system: it is enforced at runtime instead.

    interface StandardSchemaLike<T> {
        "~standard": {
            vendor: string;
            version: 1;
            validate(
                value: unknown,
            ): StandardSchemaResult<T> | PromiseLike<StandardSchemaResult<T>>;
        };
    }

    Type Parameters

    • T
    Index
    "~standard": {
        vendor: string;
        version: 1;
        validate(
            value: unknown,
        ): StandardSchemaResult<T> | PromiseLike<StandardSchemaResult<T>>;
    }