Type alias CreationAttributes<M>

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.

Example

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

Type Parameters

Generated using TypeDoc