Skip to content
Snippets Groups Projects

readded config to export

Merged Sigmund, Dominik requested to merge 2-add-optional-prefix-for-env-variables into main
2 files
+ 3
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
4
// Define the shape of the return type of the config function
// Define the shape of the return type of the config function
interface Config {
export interface Config {
_reload(): void;
_reload(): void;
_show(): any;
_show(): any;
[key: string]: any; // Index signature for dynamic properties
[key: string]: any; // Index signature for dynamic properties
}
}
// Declare the function that returns a Config object
// Declare the function that returns a Config object
declare function createConfig(basePath?: string, envPrefix?: string): Config;
export declare function createConfig(basePath?: string, envPrefix?: string): Config;
// Export the declared function
export = createConfig;
Loading