Przeglądaj źródła

improve CrowiRequest interface

Yuki Takei 1 rok temu
rodzic
commit
97ac08d5fd
1 zmienionych plików z 2 dodań i 2 usunięć
  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,