Skip to content

Commit

Permalink
fix: using sequelize.Options for sequelize config. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foveluy authored and fengmk2 committed Apr 13, 2018
1 parent 2d63647 commit c8a1c60
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'egg' {

// extend app
interface Application {
Sequelize: sequelize;
Sequelize: sequelize.SequelizeStatic;
model: sequelize.Sequelize;
}

Expand All @@ -15,14 +15,7 @@ declare module 'egg' {

// extend your config
interface EggAppConfig {
sequelize: {
dialect: string;
database: string;
host: string;
port: number;
username: string;
password: string;
};
sequelize: sequelize.Options;
}

}

0 comments on commit c8a1c60

Please sign in to comment.