Add initial config type
This commit is contained in:
parent
28065831c4
commit
7b2a5eeda4
1 changed files with 21 additions and 0 deletions
21
server/src/types/config.d.ts
vendored
Normal file
21
server/src/types/config.d.ts
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
interface config {
|
||||||
|
log: {
|
||||||
|
level: `silly` | `debug` | `info` | `error` | `warn` | `fatal` | `trace`;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
websocket: {
|
||||||
|
port: number;
|
||||||
|
};
|
||||||
|
webserver: {
|
||||||
|
enabled: boolean;
|
||||||
|
port: number;
|
||||||
|
code_length: number;
|
||||||
|
hostname: string;
|
||||||
|
};
|
||||||
|
cards: {
|
||||||
|
type: `csv` //| `sheets`;
|
||||||
|
key?: string;
|
||||||
|
questions: string;
|
||||||
|
objects: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue