@runejs/common
Version:
Common logging, networking, compression, and other miscellaneous functionality for RuneJS.
12 lines (11 loc) • 469 B
TypeScript
export declare type ConfigFileFormat = 'json' | 'yaml';
export interface ServerConfigOptions {
useDefault?: boolean;
configDir?: string;
cacheDir?: string;
filestoreDir?: string;
configFileName?: string;
}
export declare const defaults: ServerConfigOptions;
export declare const sanitizeConfigOptions: (options?: ServerConfigOptions) => ServerConfigOptions;
export declare function parseServerConfig<T>(options?: ServerConfigOptions): T;