Skip to content

postgrelize / HasOneSetAssociationMixin

Type Alias: HasOneSetAssociationMixin<TModel, TModelPrimaryKey> ​

HasOneSetAssociationMixin<TModel, TModelPrimaryKey> = (newAssociation?, options?) => Promise<void>

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

Type of the setX accessor of a hasOne association (Sequelize v6).

Type Parameters ​

TModel ​

TModel

TModelPrimaryKey ​

TModelPrimaryKey

Parameters ​

newAssociation? ​

TModel | TModelPrimaryKey

options? ​

HasOneSetAssociationMixinOptions

Returns ​

Promise<void>

Released under the MIT License.