refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 10:18:23 +08:00
parent be6822e568
commit 678b8515ca
36 changed files with 210 additions and 220 deletions
+13
View File
@@ -1,2 +1,15 @@
export type ContentType = "text/plain" | "text/markdown" | "vocechat/file" | "vocechat/archive";
export type ContentTypeKey = "text" | "markdown" | "file" | "archive";
export interface MuteDTO {
add_users?: {
uid: number;
expired_in: number;
}[];
add_groups?: {
gid: number;
expired_in: number;
}[];
remove_users?: number[];
remove_groups?: number[];
}