0
0
Fork 0

Put the compiled types into the repo

This commit is contained in:
Oliver-Akins 2023-08-27 19:58:49 -06:00
parent ff9dfb5789
commit 0db0ee18ae
5 changed files with 95 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,7 +3,6 @@ data/
*.toml
!config.template.toml
.vscode/
src/types/**/*.ts
words/
data.json

68
src/types/config.ts Normal file
View file

@ -0,0 +1,68 @@
/*
This file was automatically generated by joi-to-typescript
Do not modify this file manually
*/
/**
* The configuration format for the server
*/
export interface config {
/**
* The database specific options
*/
database: databaseOptions;
/**
* The game-specific options
*/
game: gameOptions;
/**
* The web server options
*/
server: serverOptions;
}
/**
* The database specific options
*/
export interface databaseOptions {
/**
* The location indicator where the database is. This can be a filepath or a socket URI, depending on what database is being used.
*/
uri: string;
}
/**
* The game-specific options
*/
export interface gameOptions {
files: {
/**
* Unknown Property
*/
[x: string]: unknown;
};
max_incorrect: number;
/**
* The options for all of the penalties from actions
*/
penalties: penaltyOptions;
}
/**
* The options for all of the penalties from actions
*/
export interface penaltyOptions {
duplicate: number;
guess: number;
solve: number;
}
/**
* The web server options
*/
export interface serverOptions {
/**
* The port the server will run on
*/
port: number;
}

6
src/types/general.ts Normal file
View file

@ -0,0 +1,6 @@
/*
This file was automatically generated by joi-to-typescript
Do not modify this file manually
*/
export type channelSchema = string;

8
src/types/index.ts Normal file
View file

@ -0,0 +1,8 @@
/*
This file was automatically generated by joi-to-typescript
Do not modify this file manually
*/
export * from './config';
export * from './general';
export * from './nightbot';

13
src/types/nightbot.ts Normal file
View file

@ -0,0 +1,13 @@
/*
This file was automatically generated by joi-to-typescript
Do not modify this file manually
*/
/**
* The custom headers Nightbot makes requests with
*/
export interface nightbotCustomHeaders {
'nightbot-channel'?: string;
'nightbot-response-url'?: string;
'nightbot-user'?: string;
}