From c89374c321aeb1cca2582922d4a9a9be059c691e Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Sat, 17 Sep 2022 08:44:41 -0400 Subject: [PATCH] fix: Add comment property to DriveFile (#46) * Add comment property to DriveFile Some components of Misskey like the image viewer use this property, but it hasn't been defined in the type definition itself. * Make DriveFile.comment nullable There's a few places in the client code that checks for a null comment, suggesting this field may be set to null. --- src/entities.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entities.ts b/src/entities.ts index bb3541632..90cee3f4d 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -117,6 +117,7 @@ export type DriveFile = { size: number; md5: string; blurhash: string; + comment: string | null; properties: Record; };