diff --git a/index.d.ts b/index.d.ts index e069a6f..c91d4b3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -13,7 +13,8 @@ declare module 'egg' { type MongooseConfig = { url: string, - options?: mongoose.ConnectionOptions + options?: mongoose.ConnectionOptions, + plugins?:Array }; // extend app @@ -33,6 +34,10 @@ declare module 'egg' { mongoose: { url?: string, options?: mongoose.ConnectionOptions, + plugins?: Array, + loadModel?: boolean | (() => void), + app?: boolean, + agent?: boolean, client?: MongooseConfig, clients?: { [key: string]: MongooseConfig @@ -40,4 +45,4 @@ declare module 'egg' { }; } -} \ No newline at end of file +}