Type alias ForeignEntityAttribute<T>

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

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

Type Parameters

Generated using TypeDoc