Type alias BelongsToCreateAssociationMixin<T>

BelongsToCreateAssociationMixin<T>: ((values?, options?) => Promise<T>)

Type Parameters

Type declaration

    • (values?, options?): Promise<T>
    • The createAssociation mixin applied to models with belongsTo. An example of usage is as follows:

      class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {
      declare createRole: BelongsToCreateAssociationMixin<Role>;
      }

      User.belongsTo(Role);

      Parameters

      Returns Promise<T>

      See

      Model.belongsTo

Generated using TypeDoc