@azure-net/node-kit 0.1.0 → 0.1.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.
|
@@ -11,9 +11,9 @@ export interface EnvParseOptions<T> extends EnvGetOptions {
|
|
|
11
11
|
parse: (context: EnvParseContext) => T;
|
|
12
12
|
}
|
|
13
13
|
/** Reads the supplied object on each get; never reads process.env implicitly. */
|
|
14
|
-
export declare class Env {
|
|
14
|
+
export declare class Env<TKey extends string = string> {
|
|
15
15
|
private readonly values;
|
|
16
16
|
constructor(values: EnvValues);
|
|
17
|
-
get<T>(name:
|
|
18
|
-
get(name:
|
|
17
|
+
get<T>(name: TKey, options: EnvParseOptions<T>): T;
|
|
18
|
+
get(name: TKey, options?: EnvGetOptions): string;
|
|
19
19
|
}
|