We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebcc9ff + d50f44d commit 3f57082Copy full SHA for 3f57082
2 files changed
lib/main.d.ts
@@ -124,7 +124,7 @@ export interface DotenvPopulateOptions {
124
}
125
126
export interface DotenvPopulateInput {
127
- [name: string]: string;
+ [name: string]: string | undefined;
128
129
130
/**
tests/types/test.ts
@@ -17,3 +17,8 @@ const dbHost: string = parsed["DB_HOST"];
17
18
const parsedFromBuffer = parse(Buffer.from("JUSTICE=league\n"));
19
const justice: string = parsedFromBuffer["JUSTICE"];
20
+
21
+config({
22
+ // make sure the type accepts process.env (it didn't in the past)
23
+ processEnv: process.env,
24
+});
0 commit comments