Type Alias ForeignEntityAttribute<T>

ForeignEntityAttribute: {
    [K in keyof T]: T[K] extends ForeignKey
        ? K
        : T[K] extends NullableForeignKey ? Optional<K> : never
}[keyof EntityAttributesOnly<T>]

Returns attributes on the provided model which are EntityAttributes of type ForeignKey

Type Parameters