diff --git a/index.d.ts b/index.d.ts index e849d188ad95da8fdb9317c64562ee51a0cb7df3..520df0a30cb2918d0547bceffeb116179d285900 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 d143900eb824b1d192f4e0cc1956337fddbaf37c..cd836eb79d6acb9a4536a259331951b9efcf2601 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": {