@@ -204,16 +200,13 @@ async function doStuffWithUser() {
...
@@ -204,16 +200,13 @@ async function doStuffWithUser() {
The typings for Sequelize v5 allowed you to define models without specifying types for the attributes. This is still possible for backwards compatibility and for cases where you feel strict typing for attributes isn't worth it.
The typings for Sequelize v5 allowed you to define models without specifying types for the attributes. This is still possible for backwards compatibility and for cases where you feel strict typing for attributes isn't worth it.
<!--
**NOTE:** Keep the following code in sync with `typescriptDocs/ModelInitNoAttributes.ts` to ensure
NOTE!
Keep the following code in sync with `typescriptDocs/ModelInitNoAttributes.ts` to ensure
@@ -260,16 +253,13 @@ async function doStuffWithUserModel() {
...
@@ -260,16 +253,13 @@ async function doStuffWithUserModel() {
In Sequelize versions before v5, the default way of defining a model involved using `sequelize.define`. It's still possible to define models with that, and you can also add typings to these models using interfaces.
In Sequelize versions before v5, the default way of defining a model involved using `sequelize.define`. It's still possible to define models with that, and you can also add typings to these models using interfaces.
<!--
**NOTE:** Keep the following code in sync with `typescriptDocs/Define.ts` to ensure
NOTE!
Keep the following code in sync with `typescriptDocs/Define.ts` to ensure
If you're comfortable with somewhat less strict typing for the attributes on a model, you can save some code by defining the Instance to just extend `Model` without any attributes in the generic types.
If you're comfortable with somewhat less strict typing for the attributes on a model, you can save some code by defining the Instance to just extend `Model` without any attributes in the generic types.
<!--
**NOTE:** Keep the following code in sync with `typescriptDocs/DefineNoAttributes.ts` to ensure
NOTE!
Keep the following code in sync with `typescriptDocs/DefineNoAttributes.ts` to ensure