sequelize-typescript
Version:
Decorators and some other features for sequelize
7 lines (6 loc) • 587 B
TypeScript
import { BelongsToManyOptions as OriginBelongsToManyOptions } from 'sequelize';
import { ModelClassGetter } from '../../model/shared/model-class-getter';
import { ThroughOptions } from '../through/through-options';
export declare type BelongsToManyOptions<TCreationAttributesThrough extends {}, TModelAttributesThrough extends {}> = {
[K in keyof OriginBelongsToManyOptions]: K extends 'through' ? ModelClassGetter<TCreationAttributesThrough, TModelAttributesThrough> | string | ThroughOptions<TCreationAttributesThrough, TModelAttributesThrough> : OriginBelongsToManyOptions[K];
};