UNPKG

908 BTypeScriptView Raw
1import { HasManyOptions, HasOneOptions } from 'sequelize';
2import { BaseAssociation } from '../shared/base-association';
3import { ModelClassGetter } from '../../model/shared/model-class-getter';
4import { Association } from '../shared/association';
5import { UnionAssociationOptions } from '../shared/union-association-options';
6import { ModelType } from '../../model/model/model';
7export declare class HasAssociation<TCreationAttributes, TModelAttributes> extends BaseAssociation<TCreationAttributes, TModelAttributes> {
8 protected options: HasManyOptions | HasOneOptions;
9 private association;
10 constructor(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: HasManyOptions | HasOneOptions, association: Association);
11 getAssociation(): Association;
12 getSequelizeOptions(model: ModelType<TCreationAttributes, TModelAttributes>): UnionAssociationOptions;
13}