sequelize-typescript
Version:
Decorators and some other features for sequelize
13 lines (12 loc) • 844 B
TypeScript
import { BelongsToOptions } from 'sequelize';
import { BaseAssociation } from '../shared/base-association';
import { ModelClassGetter } from '../../model/shared/model-class-getter';
import { Association } from '../shared/association';
import { ModelType } from '../../model/model/model';
import { UnionAssociationOptions } from '../shared/union-association-options';
export declare class BelongsToAssociation<TCreationAttributes extends {}, TModelAttributes extends {}> extends BaseAssociation<TCreationAttributes, TModelAttributes> {
protected options: BelongsToOptions;
constructor(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: BelongsToOptions);
getAssociation(): Association;
getSequelizeOptions(model: ModelType<TCreationAttributes, TModelAttributes>): UnionAssociationOptions;
}