Skip to content

Commit 283237d

Browse files
authored
Fix typo in order of type params in example code
Closes #14
1 parent 52f863b commit 283237d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ interface Thing { // interface used to create/update an instance
2222
id?: number;
2323
name?: string;
2424
}
25-
interface ThingInstance extends Sequelize.Instance<Thing, ThingInstance> { // an instance
25+
interface ThingInstance extends Sequelize.Instance<ThingInstance, Thing> { // an instance
2626
id: number;
2727

2828
// you should add all instance methods here
2929
doSomething(): any;
3030
}
31-
const Thing = sequelize.define<Thing, ThingInstance>('thing', {
31+
const Thing = sequelize.define<ThingInstance, Thing>('thing', {
3232
name: Sequelize.STRING,
3333
}, {
3434
instanceMethods: {

0 commit comments

Comments
 (0)