Attributes<M>: M["_attributes"]

Returns the creation attributes of a given Model.

This returns the Attributes of a Model that have already been defined, it does not build them. If you need to build them, use InferAttributes.

Type Parameters

Example

function getValue<M extends Model>(modelClass: ModelStatic<M>, attribute: keyof Attributes<M>) {}