Yuki Takei 1 год назад
Родитель
Сommit
29978a707b
2 измененных файлов с 6 добавлено и 2 удалено
  1. 3 2
      apps/app/src/interfaces/crowi-request.ts
  2. 3 0
      apps/app/src/server/crowi/index.js

+ 3 - 2
apps/app/src/interfaces/crowi-request.ts

@@ -2,13 +2,14 @@ import type { IUser } from '@growi/core';
 import type { Request } from 'express';
 import type { HydratedDocument } from 'mongoose';
 
+import type Crowi from '~/server/crowi';
+
 
 export interface CrowiProperties {
 
   user?: HydratedDocument<IUser>,
 
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  crowi: any,
+  crowi: Crowi,
 
   session: any,
 

+ 3 - 0
apps/app/src/server/crowi/index.js

@@ -59,6 +59,9 @@ class Crowi {
    */
   accessTokenParser;
 
+  /** @type {import('../service/config-manager').IConfigManagerForApp} */
+  configManager;
+
   /** @type {AppService} */
   appService;