UNPKG

1.13 kBTypeScriptView Raw
1import { BaseAssociation } from '../shared/base-association';
2import { BelongsToManyOptions } from './belongs-to-many-options';
3import { ModelClassGetter } from '../../model/shared/model-class-getter';
4import { Association } from '../shared/association';
5import { Sequelize } from '../../sequelize/sequelize/sequelize';
6import { UnionAssociationOptions } from '../shared/union-association-options';
7import { ModelType } from '../../model/model/model';
8export declare class BelongsToManyAssociation<TCreationAttributes, TModelAttributes, TCreationAttributesThrough, TModelAttributesThrough> extends BaseAssociation<TCreationAttributes, TModelAttributes> {
9 protected options: BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough>;
10 constructor(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough>);
11 getAssociation(): Association;
12 getSequelizeOptions(model: ModelType<TCreationAttributes, TModelAttributes>, sequelize: Sequelize): UnionAssociationOptions;
13 private getThroughOptions;
14}