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

apply user and page interfaces

kaori 4 лет назад
Родитель
Сommit
7d30c3668f
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      packages/app/src/interfaces/in-app-notification.ts

+ 4 - 2
packages/app/src/interfaces/in-app-notification.ts

@@ -1,13 +1,15 @@
 import { Types } from 'mongoose';
 import { Types } from 'mongoose';
+import { IUser } from './user';
+import { IPage } from './page';
 
 
 export interface IInAppNotification {
 export interface IInAppNotification {
   _id: string
   _id: string
   user: string
   user: string
   targetModel: 'Page'
   targetModel: 'Page'
-  target: any /* Need to set "Page" as a type" */
+  target: IPage
   action: 'COMMENT' | 'LIKE'
   action: 'COMMENT' | 'LIKE'
   status: string
   status: string
-  actionUsers: any[] /* Need to set "User[]" as a type" */
+  actionUsers: IUser[]
   createdAt: string
   createdAt: string
 }
 }