summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@biribiri.dev>2022-09-17 08:44:41 -0400
committerGitHub <noreply@github.com>2022-09-17 21:44:41 +0900
commitc89374c321aeb1cca2582922d4a9a9be059c691e (patch)
treefabe6d79ea736de24e6726476c6ec5c0638081ee /src
parentUpdate .eslintrc.js (diff)
downloadmisskey-c89374c321aeb1cca2582922d4a9a9be059c691e.tar.gz
misskey-c89374c321aeb1cca2582922d4a9a9be059c691e.tar.bz2
misskey-c89374c321aeb1cca2582922d4a9a9be059c691e.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/entities.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entities.ts b/src/entities.ts
index bb3541632e..90cee3f4d1 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<string, any>;
};