UNPKG

351 BTypeScriptView Raw
1import sequelize from "sequelize";
2
3declare module 'egg' {
4
5 // extend app
6 interface Application {
7 Sequelize: sequelize.SequelizeStatic;
8 model: sequelize.Sequelize;
9 }
10
11 // extend context
12 interface Context {
13 model: sequelize.Sequelize;
14 }
15
16 // extend your config
17 interface EggAppConfig {
18 sequelize: sequelize.Options;
19 }
20
21}
\No newline at end of file