refactor: add typescript support to project

This commit is contained in:
HD
2022-06-20 17:44:42 +08:00
parent 45419bbcf4
commit c2c051d94c
25 changed files with 407 additions and 222 deletions
+6 -1
View File
@@ -3,6 +3,11 @@ export interface ChannelMember {
}
// todo: check message fields
export interface ChannelMessage {
mid: number;
}
export type ContentType =
'text/plain' |
'text/markdown' |
@@ -22,7 +27,7 @@ export interface PinnedMessage {
export interface Channel {
gid: number;
icon: string; // added by frontend
// icon: string; // todo: check
owner: number;
name: string;
description: string;