From fbc9d5ecba46bb7da4bffcaf793e209658e5bf50 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 19 Mar 2021 18:22:14 +0900 Subject: [PATCH] refactor --- src/models/repositories/drive-file.ts | 2 +- src/models/repositories/notification.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/repositories/drive-file.ts b/src/models/repositories/drive-file.ts index 62416f69e..61d24bd24 100644 --- a/src/models/repositories/drive-file.ts +++ b/src/models/repositories/drive-file.ts @@ -134,7 +134,7 @@ export class DriveFileRepository extends Repository { } public async packMany( - files: any[], + files: (DriveFile['id'] | DriveFile)[], options?: PackOptions ) { const items = await Promise.all(files.map(f => this.pack(f, options))); diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index 16de6c8c2..d593dc22a 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -53,7 +53,7 @@ export class NotificationRepository extends Repository { } public packMany( - notifications: any[], + notifications: Notification[], ) { return Promise.all(notifications.map(x => this.pack(x))); }