@karmaniverous/get-dotenv 6.2.1 → 6.2.3
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/dist/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -367,6 +367,20 @@ interface GetDotenvConfig<Vars extends ProcessEnv, Env extends string = string>
|
|
|
367
367
|
* @returns The same `cfg` value, with its type preserved for inference.
|
|
368
368
|
*/
|
|
369
369
|
declare function defineGetDotenvConfig<Vars extends ProcessEnv, Env extends string = string, T extends GetDotenvConfig<Vars, Env> = GetDotenvConfig<Vars, Env>>(cfg: T): T;
|
|
370
|
+
/**
|
|
371
|
+
* Internal helper type used by {@link InferGetDotenvVarsFromConfig}.
|
|
372
|
+
*
|
|
373
|
+
* This exists to give TypeDoc a stable symbol for the `vars` probe used in the
|
|
374
|
+
* conditional type, avoiding anonymous `__type` warnings.
|
|
375
|
+
*
|
|
376
|
+
* @typeParam V - The `vars` bag shape declared on the config.
|
|
377
|
+
*/
|
|
378
|
+
interface GetDotenvConfigWithVars<V extends ProcessEnv = ProcessEnv> {
|
|
379
|
+
/**
|
|
380
|
+
* Variables declared on a typed getdotenv config document.
|
|
381
|
+
*/
|
|
382
|
+
vars?: V;
|
|
383
|
+
}
|
|
370
384
|
/**
|
|
371
385
|
* Compile-time helper to derive the Vars shape from a typed getdotenv config document.
|
|
372
386
|
*/
|
package/package.json
CHANGED