dyna-record
    Preparing search index...

    Type Alias StrictIntersectWithSK<T, Names, SK>

    StrictIntersectWithSK: ExtractEntityFromSK<T, SK> extends infer SKNames
        ? ShouldNarrow<T, SKNames> extends true
            ? StrictNarrowByNames<T, Extract<Names, SKNames & string>>
            : StrictNarrowByNames<T, Names>
        : StrictNarrowByNames<T, Names>

    Strict variant of IntersectWithSK that preserves never[] for empty name sets. Used when Names is already the result of an intersection (e.g. filter keys ∩ $or blocks) and may be never — in that case the result must stay never[], not fall back to QueryResults<T>.

    Type Parameters

    • T extends default
    • Names extends string
    • SK