Slight re-structure (types)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
import Channel from "./channel";
|
||||
|
||||
export default interface Server {
|
||||
id: string;
|
||||
name: string;
|
||||
channels: Channel[];
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
export default interface Channel {
|
||||
id: string;
|
||||
name: string;
|
||||
kind: "text" | "voice";
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
export default interface Message {
|
||||
id: number;
|
||||
channel_id: string | number;
|
||||
from: number;
|
||||
contents: string;
|
||||
timestamp: number;
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user