@runejs/core
Version:
Core logging, networking, and buffer functionality for RuneJS applications.
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;