Add is_blocked to FileModel (#8842)

* Add is_blocked to FileModel

* fix type in the docs

* use correct type in docs
This commit is contained in:
Elias Nahum
2025-05-07 15:33:04 +08:00
committed by GitHub
parent 974f2419ef
commit f320dd65ad
12 changed files with 69 additions and 22 deletions

View File

@@ -45,6 +45,9 @@ declare class FileModel extends Model {
/** post : The related Post record for this file */
post: Relation<PostModel>;
/** isBlocked : Whether the file is blocked and cannot be opened */
isBlocked: boolean;
toFileInfo: (authorId: string) => FileInfo;
}