@dsmrt/axiom-config 0.0.8-alpha.0 → 0.0.8

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4,11 +4,12 @@ export interface AwsConfigs {
4
4
  profile: string;
5
5
  baseParameterPath: string;
6
6
  }
7
- export interface Config {
7
+ export interface BaseConfig {
8
8
  name: string;
9
9
  env: string;
10
10
  aws: AwsConfigs;
11
11
  }
12
+ export type Config<T = object> = T & BaseConfig;
12
13
  export interface LoadConfigInput {
13
14
  /**
14
15
  * defaults to prod
@@ -24,7 +25,7 @@ export interface LoadConfigInput {
24
25
  cwd?: string;
25
26
  }
26
27
  export declare const importConfigFromPath: (path: string) => Config;
27
- export declare const loadConfig: <T extends object>(input?: LoadConfigInput) => Config & T;
28
+ export declare const loadConfig: <T extends object>(input?: LoadConfigInput) => object & BaseConfig & T;
28
29
  /**
29
30
  * Simple object check.
30
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-config",
3
- "version": "0.0.8-alpha.0",
3
+ "version": "0.0.8",
4
4
  "description": "Config library for axiom cli",
5
5
  "main": "lib/index.js",
6
6
  "repository": {