Improve typing

This commit is contained in:
tamaina
2020-05-26 14:33:55 +09:00
parent 05c7cacdd1
commit 9bee9d20f7
9 changed files with 24 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ export class NotificationRepository extends Repository<Notification> {
id: notification.id,
createdAt: notification.createdAt.toISOString(),
type: notification.type,
isRead: notification.isRead,
userId: notification.notifierId,
user: notification.notifierId ? Users.pack(notification.notifier || notification.notifierId) : null,
...(notification.type === 'mention' ? {