webserver-framework/@types/Controller.ts
2023-04-17 14:10:45 +03:00

29 lines
723 B
TypeScript

import { LoggerMasterOptions, LoggerClientOptions } from '@navy.gif/logger';
import { ServerOptions } from './Server.js';
import { DatabaseOptions, DiscordOptions } from './Other.js';
type Env = {
[key: string]: string
}
export type ShardOptions = {
path: string,
args?: string[],
execArgv?: string[],
env?: Env,
respawn?: boolean,
serverOptions?: ServerOptions
}
export type ControllerOptions = {
projectName: string
logger?: LoggerMasterOptions & LoggerClientOptions,
serverFilePath: string,
shardCount?: number,
shardOptions: ShardOptions,
serverOptions: ServerOptions,
discord: DiscordOptions,
databases: DatabaseOptions,
env: Env,
srcDir: string
}