CreationAttributes<M>: MakeNullishOptional<M["_creationAttributes"]>

Returns the creation attributes of a given Model.

This returns the Creation Attributes of a Model, it does not build them. If you need to build them, use InferCreationAttributes.

Type Parameters

Example

function buildModel<M extends Model>(modelClass: ModelStatic<M>, attributes: CreationAttributes<M>) {}