From aa5dd3c64723280c67a16b131682f04d7c845543 Mon Sep 17 00:00:00 2001 From: Cooper Liu Date: Wed, 3 Mar 2021 15:34:49 +0800 Subject: [PATCH] style: config type support plugins --- index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index e069a6f..945befc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -36,8 +36,9 @@ declare module 'egg' { client?: MongooseConfig, clients?: { [key: string]: MongooseConfig - } + }, + plugins?: Array<(schema: mongoose.Schema, opts?: any) => void> }; } -} \ No newline at end of file +}