UNPKG

883 BTypeScriptView Raw
1import { BelongsToManyOptions } from './belongs-to-many-options';
2import { ModelClassGetter } from '../../model/shared/model-class-getter';
3export 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;
4export declare function BelongsToMany<TCreationAttributes extends {}, TModelAttributes extends {}, TCreationAttributesThrough extends {}, TModelAttributesThrough extends {}>(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough>): Function;