Răsfoiți Sursa

add type to target property

WNomunomu 2 ani în urmă
părinte
comite
e6d49cee76
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      apps/app/src/interfaces/in-app-notification.ts

+ 2 - 2
apps/app/src/interfaces/in-app-notification.ts

@@ -10,10 +10,10 @@ export enum InAppNotificationStatuses {
 
 // TODO: do not use any type
 // https://redmine.weseek.co.jp/issues/120632
-export interface IInAppNotification {
+export interface IInAppNotification<T> {
   user: IUser
   targetModel: SupportedTargetModelType
-  target: any
+  target: T
   action: SupportedActionType
   status: InAppNotificationStatuses
   actionUsers: IUser[]