Type Alias ResolveBlockEntityNames<T, Block>

ResolveBlockEntityNames: IsAny<ExtractTypeFromFilter<Block>> extends true
    ? EntityNamesFromKeys<T, FilterKeysOf<Block>>
    : [ExtractTypeFromFilter<Block>] extends [never]
        ? EntityNamesFromKeys<T, FilterKeysOf<Block>>
        : ExtractTypeFromFilter<Block>

Resolves a single filter block to entity name strings. If the block has a type field with specific entity names, uses those. Otherwise, narrows by finding entities that have ALL the block's non-special filter keys.

Type Parameters

  • T extends default

    The root entity being queried.

  • Block

    The filter block object.