Skip to content
Snippets Groups Projects
Commit 907e39ef authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

add factory function

parent 4ec89dd8
No related branches found
No related tags found
1 merge request!6add factory function
Pipeline #65499 failed
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
export class Config {
constructor(basePath?: string, envPrefix?: string);
// Define the shape of the return type of the config function
interface Config {
_reload(): void;
_show(): any;
// Index signature
[key: string]: any;
[key: string]: any; // Index signature for dynamic properties
}
// Declare the function that returns a Config object
declare function createConfig(basePath?: string, envPrefix?: string): Config;
// Export the declared function
export = createConfig;
{
"name": "@libs/config",
"version": "1.13.3",
"version": "1.13.4",
"description": "Simple Config with ENV Support",
"main": "index.js",
"scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment