UNPKG

795 BTypeScriptView Raw
1import { BelongsToManyOptions } from './belongs-to-many-options';
2import { ModelClassGetter } from '../../model/shared/model-class-getter';
3export declare function BelongsToMany<TCreationAttributes, TModelAttributes, TCreationAttributesThrough, TModelAttributesThrough>(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, through: ModelClassGetter<TCreationAttributesThrough, TModelAttributesThrough> | string, foreignKey?: string, otherKey?: string): Function;
4export declare function BelongsToMany<TCreationAttributes, TModelAttributes, TCreationAttributesThrough, TModelAttributesThrough>(associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, options: BelongsToManyOptions<TCreationAttributesThrough, TModelAttributesThrough>): Function;