dyna-record
    Preparing search index...

    Type Alias SingleRelationshipKeysTo<T, Target>

    SingleRelationshipKeysTo: {
        [K in RelationshipProperties<T>]: NonNullable<T[K]> extends readonly unknown[]
            ? never
            : IsSameEntity<NonNullable<T[K]>, Target> extends true ? K : never
    }[RelationshipProperties<T>]

    The single-valued relationship keys of T whose entity is Target.

    Type Parameters

    • T extends default

      The entity declaring the relationships.

    • Target

      The related entity to look for.