Browse Source

improve CrowiRequest interface

Yuki Takei 1 năm trước cách đây
mục cha
commit
97ac08d5fd
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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,