refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-22 21:19:49 +08:00
parent 6427af90ef
commit dae0b80ee0
20 changed files with 81 additions and 88 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export interface CreateChannelDTO {
is_public: boolean;
}
export interface ChannelDTO extends Pick<Channel, "owner" | "description" | "name"> {
export interface ChannelDTO extends Partial<Pick<Channel, "owner" | "description" | "name">> {
id: number;
}