We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f863b commit 283237dCopy full SHA for 283237d
README.md
@@ -22,13 +22,13 @@ interface Thing { // interface used to create/update an instance
22
id?: number;
23
name?: string;
24
}
25
-interface ThingInstance extends Sequelize.Instance<Thing, ThingInstance> { // an instance
+interface ThingInstance extends Sequelize.Instance<ThingInstance, Thing> { // an instance
26
id: number;
27
28
// you should add all instance methods here
29
doSomething(): any;
30
31
-const Thing = sequelize.define<Thing, ThingInstance>('thing', {
+const Thing = sequelize.define<ThingInstance, Thing>('thing', {
32
name: Sequelize.STRING,
33
}, {
34
instanceMethods: {
0 commit comments