refactor: add typescript support to project

This commit is contained in:
HD
2022-06-29 16:54:58 +08:00
parent ccfee28e13
commit 003353e43f
33 changed files with 358 additions and 224 deletions
+7
View File
@@ -27,6 +27,13 @@ export interface Channel {
pinned_messages: PinnedMessage[];
}
export interface CreateChannelDTO {
name: string;
description: string;
members?: number[];
is_public: boolean;
}
export interface UpdateChannelDTO {
operation: "add_member" | "remove_member";
members?: number[];