Просмотр исходного кода

improve CrowiRequest interface

Yuki Takei 1 год назад
Родитель
Сommit
97ac08d5fd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/interfaces/crowi-request.ts

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

@@ -1,11 +1,11 @@
 import type { IUser } from '@growi/core';
 import type { Request } from 'express';
-import type { Document } from 'mongoose';
+import type { HydratedDocument } from 'mongoose';
 
 
 export interface CrowiProperties {
 
-  user?: IUser & Document,
+  user?: HydratedDocument<IUser>,
 
   // eslint-disable-next-line @typescript-eslint/no-explicit-any
   crowi: any,