types / sequelize

The typings for https://github.com/sequelize/sequelize
63 stars 37 forks source link

interface incomplete: InitOptions #166

Open tonyke-bot opened 6 years ago

tonyke-bot commented 6 years ago

modelName should be one member of InitOptions, which type is string.

Although this parameters is optional and if it's left blank, sequelize will use Class name as modelName. But I port my old project from js to ts and my table name is camelCase, but class name is usually in PascalCase, so I need to defined the model name myself when I invoke Model.init;

Plz fix it.