Libraries v5.0.0
    Preparing search index...

    Type Alias IndexedPropertyDescriptor<TRoot, TSchema, TParent, TKey>

    IndexedPropertyDescriptor: PropertyDescriptor<TRoot, TSchema, TParent, TKey> & (
        TSchema extends ObjectSchemaBuilder<any, any, any>
            ? PropertyDescriptorTree<TSchema, TRoot, any, TParent>
            : TSchema extends ArraySchemaBuilder<infer TElement, any, any>
                ? {
                    readonly [index: number]: IndexedPropertyDescriptor<
                        TRoot,
                        TElement,
                        PropertyDescriptor<TRoot, TSchema, TParent, TKey>,
                        string,
                    >;
                }
                : {}
    )

    A descriptor that preserves its array binding and exposes lazy indexed child descriptors. Indices are non-negative integers; they are positions, not item identities. Object and nested-array elements retain their schema types.

    Type Parameters

    • TRoot extends ObjectSchemaBuilder<any, any, any, any, any>
    • TSchema
    • TParent
    • TKey extends string = string
    `object.getPropertiesFor(schema).addresses[0].city`