UNPKG

968 BTypeScriptView Raw
1import { ConfigSource as BaseConfigSource } from '@erect/config';
2export { BaseConfigSource };
3export interface CortexQLConfigSource {
4 /**
5 * The address the server will listen
6 */
7 listenAddress: string;
8 /**
9 * The port the server will listen
10 */
11 listenPort: number;
12 /**
13 * The host accessable through the browser
14 */
15 host: string;
16 /**
17 * Disable subscription websocket (Subscription wont show)
18 */
19 disableSubscription: boolean;
20}
21export interface ConfigSource extends BaseConfigSource, CortexQLConfigSource {
22}
23export declare const extendConfig: <T extends ConfigSource>() => {
24 config: ((path: string | number | symbol | PropertyKey[], defaultValue?: any) => any) & T;
25 loadConfig: (values: T) => void;
26};
27export declare const config: ((path: string | number | symbol | PropertyKey[], defaultValue?: any) => any) & ConfigSource, loadConfig: (values: ConfigSource) => void;
28export default config;