Documentation
    Preparing search index...

    Type Alias SchemaArrayElement<Schema, KeyPath>

    SchemaArrayElement: unknown extends SchemaValue<Schema, KeyPath>
        ? unknown
        : NonNullable<SchemaValue<Schema, KeyPath>> extends readonly (
            infer Element
        )[]
            ? Element
            : never

    Array item inferred from a Standard Schema and key path.

    Type Parameters

    • Schema extends StandardSchemaV1
    • KeyPath extends string