Explorar el Código

add type to target property

WNomunomu hace 2 años
padre
commit
e6d49cee76
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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[]