Type Alias SKScopedFilterParams<T, SK>

SKScopedFilterParams: ExtractEntityFromSK<T, SK> extends infer Names
    ? ShouldNarrow<T, Names> extends true
        ? FilterParamsForEntities<ResolveEntityByName<T, Names & string>>
        : TypedFilterParams<T>
    : TypedFilterParams<T>

Computes the filter type based on SK narrowing. When skCondition narrows to specific entities, only those entities' attributes are accepted in the filter. When SK doesn't narrow (no skCondition, suffixed string, etc.), falls back to the full TypedFilterParams.

Type Parameters

  • T extends default

    The root entity being queried.

  • SK

    The inferred sort key condition type.