Skip to content

postgrelize / ModelDefined

Type Alias: ModelDefined<S, T> ​

ModelDefined<S, T> = ModelStatic<Model<S, T>>

Defined in: src/model/v6-aliases.ts:28

A model class with the given attribute and creation attribute types (Sequelize v6 ModelDefined), the return type of sequelize.define in typed code.

Type Parameters ​

S ​

S extends object

T ​

T extends object

Example ​

ts
type UserModel = ModelDefined<{ id: number; name: string }, { name: string }>;

Released under the MIT License.