From d24103adf4426e482ed7fe51923564688507e6c1 Mon Sep 17 00:00:00 2001 From: "Dominik.Sigmund" <dominik.sigmund@br.de> Date: Tue, 19 Mar 2024 14:32:39 +0100 Subject: [PATCH] readded config to export --- index.d.ts | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index e849d18..520df0a 100755 --- a/index.d.ts +++ b/index.d.ts @@ -1,12 +1,10 @@ // Define the shape of the return type of the config function -interface Config { +export interface Config { _reload(): void; _show(): 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 declare function createConfig(basePath?: string, envPrefix?: string): Config; -// Export the declared function -export = createConfig; diff --git a/package.json b/package.json index d143900..cd836eb 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@libs/config", - "version": "1.13.4", + "version": "1.13.5", "description": "Simple Config with ENV Support", "main": "index.js", "scripts": { -- GitLab