Type Alias EntitiesWithAllKeys<T, Keys>

EntitiesWithAllKeys: [Keys] extends [never]
    ? PartitionEntities<T>
    : PartitionEntities<T> extends infer E
        ? E extends default
            ? [Keys] extends [EntityFilterableKeys<E>] ? E : never
            : never
        : never

Finds partition entities that have ALL the specified filter keys as filterable attributes. Returns the full PartitionEntities when Keys is never (no filter keys specified).

Type Parameters

  • T extends default

    The root entity being queried.

  • Keys extends string

    Union of filter key strings that must all be present on the entity.