Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Thylossus authored Jul 6, 2016
2 parents 7ac9e1b + 283237d commit 39b5073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ interface Thing { // interface used to create/update an instance
id?: number;
name?: string;
}
interface ThingInstance extends Sequelize.Instance<Thing, ThingInstance> { // an instance
interface ThingInstance extends Sequelize.Instance<ThingInstance, Thing> { // an instance
id: number;

// you should add all instance methods here
doSomething(): any;
}
const Thing = sequelize.define<Thing, ThingInstance>('thing', {
const Thing = sequelize.define<ThingInstance, Thing>('thing', {
name: Sequelize.STRING,
}, {
instanceMethods: {
Expand Down

0 comments on commit 39b5073

Please sign in to comment.