不要怂,就是干,撸起袖子干!

Commit e59b3ff2 by Sam Dhondt Committed by GitHub

types: correct Model.init return type (#12148)

1 parent 740b4286
Showing with 2 additions and 1 deletions
......@@ -1591,8 +1591,9 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
* An object, where each attribute is a column of the table. Each column can be either a DataType, a
* string or a type-description object, with the properties described below:
* @param options These options are merged with the default define options provided to the Sequelize constructor
* @return Return the initialized model
*/
public static init<M extends Model = Model>(this: ModelCtor<M>, attributes: ModelAttributes<M>, options: InitOptions<M>): void;
public static init<M extends Model = Model>(this: ModelCtor<M>, attributes: ModelAttributes<M>, options: InitOptions<M>): Model;
/**
* Remove attribute from model definition
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!