Fix default data objects and update the types
This commit is contained in:
parent
60a83eef3d
commit
02644bb510
2 changed files with 14 additions and 10 deletions
|
|
@ -1,11 +1,12 @@
|
|||
export var BRACKET_DATA = {
|
||||
export var BRACKET_DATA: bracket_data = {
|
||||
msg: "",
|
||||
quotes: [],
|
||||
votes: {},
|
||||
users: {},
|
||||
channel: "",
|
||||
};
|
||||
|
||||
export var CHANNEL_DATA = {
|
||||
export var CHANNEL_DATA: channel_data = {
|
||||
version: 2,
|
||||
webhook: {
|
||||
token: "",
|
||||
id: "",
|
||||
|
|
|
|||
7
server/src/types/database.d.ts
vendored
7
server/src/types/database.d.ts
vendored
|
|
@ -12,14 +12,17 @@ interface bracket_data {
|
|||
users: { [index: string]: number };
|
||||
}
|
||||
|
||||
interface database {
|
||||
[index: string]: {
|
||||
interface channel_data {
|
||||
version: 2,
|
||||
webhook: {
|
||||
id: string;
|
||||
token: string;
|
||||
};
|
||||
bracket: bracket_data;
|
||||
}
|
||||
|
||||
interface database {
|
||||
[index: string]: channel_data;
|
||||
}
|
||||
|
||||
interface bracket_history {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue