Slight re-structure (types)

This commit is contained in:
2025-10-12 13:16:54 +02:00
parent 6bdf2233fe
commit ab84de8b03
10 changed files with 25 additions and 28 deletions
-7
View File
@@ -1,7 +0,0 @@
import Channel from "./channel";
export default interface Server {
id: string;
name: string;
channels: Channel[];
}
-5
View File
@@ -1,5 +0,0 @@
export default interface Channel {
id: string;
name: string;
kind: "text" | "voice";
}
-7
View File
@@ -1,7 +0,0 @@
export default interface Message {
id: number;
channel_id: string | number;
from: number;
contents: string;
timestamp: number;
}
+19
View File
@@ -0,0 +1,19 @@
export interface Channel {
id: string;
name: string;
kind: "text" | "voice";
}
export interface Message {
id: number;
channel_id: string | number;
from: number;
contents: string;
timestamp: number;
}
export interface Server {
id: string;
name: string;
channels: Channel[];
}