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;
}
+2 -2
View File
@@ -6,8 +6,8 @@ export interface Server {
description: string;
}
export interface GithubAuthConfig {
client_id: string;
client_secret: string; // todo: check security problem!
client_id?: string;
client_secret?: string;
}
export interface FirebaseConfig {
enabled: boolean;