@dsmrt/axiom-config 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -15,12 +15,12 @@ interface ConfigMethods {
|
|
|
15
15
|
isProd(): boolean;
|
|
16
16
|
asParameterPath(name: string): string;
|
|
17
17
|
}
|
|
18
|
-
declare class ConfigContainer
|
|
18
|
+
declare class ConfigContainer implements BaseConfig, ConfigMethods {
|
|
19
19
|
readonly name: string;
|
|
20
20
|
readonly env: string;
|
|
21
21
|
readonly aws: AwsConfigs;
|
|
22
22
|
readonly prodEnvName?: string;
|
|
23
|
-
constructor(config:
|
|
23
|
+
constructor(config: BaseConfig);
|
|
24
24
|
isProd(): boolean;
|
|
25
25
|
asParameterPath(name: string): string;
|
|
26
26
|
}
|
|
@@ -39,7 +39,7 @@ interface LoadConfigInput {
|
|
|
39
39
|
cwd?: string;
|
|
40
40
|
}
|
|
41
41
|
declare const importConfigFromPath: (path: string) => Config;
|
|
42
|
-
declare const loadConfig: <T extends object>(input?: LoadConfigInput) => ConfigContainer
|
|
42
|
+
declare const loadConfig: <T extends object>(input?: LoadConfigInput) => ConfigContainer & T;
|
|
43
43
|
/**
|
|
44
44
|
* Simple object check.
|
|
45
45
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -15,12 +15,12 @@ interface ConfigMethods {
|
|
|
15
15
|
isProd(): boolean;
|
|
16
16
|
asParameterPath(name: string): string;
|
|
17
17
|
}
|
|
18
|
-
declare class ConfigContainer
|
|
18
|
+
declare class ConfigContainer implements BaseConfig, ConfigMethods {
|
|
19
19
|
readonly name: string;
|
|
20
20
|
readonly env: string;
|
|
21
21
|
readonly aws: AwsConfigs;
|
|
22
22
|
readonly prodEnvName?: string;
|
|
23
|
-
constructor(config:
|
|
23
|
+
constructor(config: BaseConfig);
|
|
24
24
|
isProd(): boolean;
|
|
25
25
|
asParameterPath(name: string): string;
|
|
26
26
|
}
|
|
@@ -39,7 +39,7 @@ interface LoadConfigInput {
|
|
|
39
39
|
cwd?: string;
|
|
40
40
|
}
|
|
41
41
|
declare const importConfigFromPath: (path: string) => Config;
|
|
42
|
-
declare const loadConfig: <T extends object>(input?: LoadConfigInput) => ConfigContainer
|
|
42
|
+
declare const loadConfig: <T extends object>(input?: LoadConfigInput) => ConfigContainer & T;
|
|
43
43
|
/**
|
|
44
44
|
* Simple object check.
|
|
45
45
|
*/
|