sequelize-typescript
Version:
Decorators and some other features for sequelize
5 lines (4 loc) • 883 B
TypeScript
import { BelongsToManyOptions } from './belongs-to-many-options';
import { ModelClassGetter } from '../../model/shared/model-class-getter';
export declare function BelongsToMany<TCreationAttributes extends {}, TModelAttributes extends {}, TCreationAttributesThrough extends {}, TModelAttributesThrough extends {}>(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, through: ModelClassGetter<TCreationAttributesThrough, TModelAttributesThrough> | string, foreignKey?: string, otherKey?: string): Function;
export declare function BelongsToMany<TCreationAttributes extends {}, TModelAttributes extends {}, TCreationAttributesThrough extends {}, TModelAttributesThrough extends {}>(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough>): Function;