UNPKG

sequelize-typescript

Version:
7 lines (6 loc) 587 B
import { BelongsToManyOptions as OriginBelongsToManyOptions } from 'sequelize'; import { ModelClassGetter } from '../../model/shared/model-class-getter'; import { ThroughOptions } from '../through/through-options'; export declare type BelongsToManyOptions<TCreationAttributesThrough extends {}, TModelAttributesThrough extends {}> = { [K in keyof OriginBelongsToManyOptions]: K extends 'through' ? ModelClassGetter<TCreationAttributesThrough, TModelAttributesThrough> | string | ThroughOptions<TCreationAttributesThrough, TModelAttributesThrough> : OriginBelongsToManyOptions[K]; };