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

Merge branch '2-add-optional-prefix-for-env-variables' into 'main'

add factory function

Closes #2

See merge request !6
parents b77a07a7 907e39ef
No related branches found
Tags 1.13.4
1 merge request!6add factory function
Pipeline #65502 passed
export class Config { // Define the shape of the return type of the config function
constructor(basePath?: string, envPrefix?: string); interface Config {
_reload(): void; _reload(): void;
_show(): any; _show(): any;
// Index signature [key: string]: any; // Index signature for dynamic properties
[key: string]: any; }
}
\ No newline at end of file // 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", "name": "@libs/config",
"version": "1.13.3", "version": "1.13.4",
"description": "Simple Config with ENV Support", "description": "Simple Config with ENV Support",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment