From ad430f49f717681b64774c2bc5674e10e7837da8 Mon Sep 17 00:00:00 2001 From: "ruilong.zhao" Date: Tue, 9 Mar 2021 14:19:59 +0800 Subject: [PATCH] feat: update index.d.ts --- index.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 +}