47 lines
980 B
TypeScript
47 lines
980 B
TypeScript
import { LoggerClientOptions } from '@navy.gif/logger';
|
|
|
|
export type DiscordOptions = {
|
|
//
|
|
}
|
|
|
|
type MariaDBOptions = {
|
|
load: boolean,
|
|
client: {
|
|
waitForConnections: boolean,
|
|
connectionLimit: number,
|
|
supportBigNumbers: boolean,
|
|
bigNumberStrings: boolean,
|
|
multipleStatements: boolean,
|
|
collation: string
|
|
},
|
|
cluster: {
|
|
canRetry: boolean,
|
|
removeNodeErrorCount: number,
|
|
restoreNodeTimeout: number,
|
|
defaultSelector: string
|
|
},
|
|
loggerOptions: LoggerClientOptions
|
|
}
|
|
|
|
type MongoDBOptions = {
|
|
load: boolean,
|
|
client: object,
|
|
loggerOptions: LoggerClientOptions
|
|
}
|
|
|
|
export type DatabaseOptions = {
|
|
mariadb: MariaDBOptions,
|
|
mongodb: MongoDBOptions
|
|
}
|
|
|
|
export type SignupCode = {
|
|
[key:string]: unknown,
|
|
code: string,
|
|
created: number,
|
|
validFor: number,
|
|
}
|
|
|
|
export type IPCMessage = {
|
|
_id?: string,
|
|
[key: string]: string | number | object | undefined
|
|
} |