Type alias RelationshipAttributeNames<T>

RelationshipAttributeNames<T>: {
    [K in keyof T]: Exclude<T[K], undefined> extends default | default[]
        ? K
        : never
}[keyof T]

Returns Keys of T which are HasMany, BelongsTo or HasOne relationships

Type Parameters

  • T

Generated using TypeDoc