refactor: more TS code
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { ChatEvent } from "./sse";
|
||||
|
||||
export type ContentType = "text/plain" | "text/markdown" | "vocechat/file" | "vocechat/archive";
|
||||
export type ContentTypeKey = "text" | "markdown" | "file" | "archive";
|
||||
|
||||
@@ -13,3 +15,13 @@ export interface MuteDTO {
|
||||
remove_users?: number[];
|
||||
remove_groups?: number[];
|
||||
}
|
||||
export interface UploadFileResponse {
|
||||
path: string;
|
||||
size: number;
|
||||
hash: string;
|
||||
image_properties: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}
|
||||
export interface ChatMessage extends Omit<ChatEvent, "type"> {}
|
||||
|
||||
Reference in New Issue
Block a user