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

    Variable sConst

    s: {
        array<Item>(
            item: StandardSchemaV1<unknown, Item>,
        ): StandardSchemaV1<unknown, Item[]>;
        boolean(): StandardSchemaV1<unknown, boolean>;
        custom<Output>(
            check: (value: unknown) => value is Output,
            message?: string,
        ): StandardSchemaV1<unknown, Output>;
        enum<
            const T extends
                readonly [string | number | boolean, string | number | boolean],
        >(
            ...values: T,
        ): StandardSchemaV1<unknown, T[number]>;
        nullable<Output>(
            inner: StandardSchemaV1<unknown, Output>,
        ): StandardSchemaV1<unknown, Output | null>;
        number(options?: NumberOptions): StandardSchemaV1<unknown, number>;
        object<Shape extends Record<string, StandardSchemaV1<unknown, unknown>>>(
            shape: Shape,
        ): StandardSchemaV1<
            unknown,
            { [K in string
            | number
            | symbol]: Infer<Shape[K]> },
        >;
        optional<Output>(
            inner: StandardSchemaV1<unknown, Output>,
        ): StandardSchemaV1<unknown, Output | undefined>;
        record<Value>(
            value: StandardSchemaV1<unknown, Value>,
        ): StandardSchemaV1<unknown, Record<string, Value>>;
        string(options?: StringOptions): StandardSchemaV1<unknown, string>;
        unknown(): StandardSchemaV1<unknown, unknown>;
    } = ...

    Built-in schema builders. Dependency-free; supply any synchronous Standard Schema implementation through StandardSchemaV1 when more expressive validation or transformation is needed.

    Composite builders stop at the first issue and prefix its path. object projects the declared shape and does not copy unknown properties. These are intentionally small defaults, not a replacement for a full schema library.

    Type Declaration

    const schema = s.object({
    name: s.string({ minLength: 1 }),
    tags: s.array(s.string()),
    mode: s.enum('fast', 'thorough'),
    limit: s.optional(s.number({ integer: true, min: 1 })),
    });
    type Value = Infer<typeof schema>;