Răsfoiți Sursa

add type annotations

Yuki Takei 1 an în urmă
părinte
comite
29978a707b

+ 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 { Request } from 'express';
 import type { HydratedDocument } from 'mongoose';
 import type { HydratedDocument } from 'mongoose';
 
 
+import type Crowi from '~/server/crowi';
+
 
 
 export interface CrowiProperties {
 export interface CrowiProperties {
 
 
   user?: HydratedDocument<IUser>,
   user?: HydratedDocument<IUser>,
 
 
-  // eslint-disable-next-line @typescript-eslint/no-explicit-any
-  crowi: any,
+  crowi: Crowi,
 
 
   session: any,
   session: any,
 
 

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

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