Skip to content

postgrelize / HasManyCreateAssociationMixin

Type Alias: HasManyCreateAssociationMixin<TModel, TForeignKey, TScope> ​

HasManyCreateAssociationMixin<TModel, TForeignKey, TScope> = (values?, options?) => Promise<TModel>

Defined in: src/associations/mixin-types.ts:406

Type of the createX accessor of a hasMany association; the foreign key and scope attributes are filled in for you (Sequelize v6).

Type Parameters ​

TModel ​

TModel extends AnyModel

TForeignKey ​

TForeignKey extends keyof CreationAttributes<TModel> = never

TScope ​

TScope extends keyof CreationAttributes<TModel> = never

Parameters ​

values? ​

Omit<CreationAttributes<TModel>, TForeignKey | TScope>

options? ​

HasManyCreateAssociationMixinOptions

Returns ​

Promise<TModel>

Released under the MIT License.