UNPKG

565 BTypeScriptView Raw
1import { BelongsToManyOptions as OriginBelongsToManyOptions } from 'sequelize';
2import { ModelClassGetter } from '../../model/shared/model-class-getter';
3import { ThroughOptions } from '../through/through-options';
4export declare type BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough> = {
5 [K in keyof OriginBelongsToManyOptions]: K extends 'through' ? ModelClassGetter<TCreationAttributesThrough, TModelAttributesThrough> | string | ThroughOptions<TCreationAttributesThrough, TModelAttributesThrough> : OriginBelongsToManyOptions[K];
6};