Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: Add comment property to DriveFile (#46)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
normikoto authored Sep 17, 2022
1 parent 6a87f4a commit c89374c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export type DriveFile = {
size: number;
md5: string;
blurhash: string;
comment: string | null;
properties: Record<string, any>;
};

Expand Down

0 comments on commit c89374c

Please sign in to comment.