Skip to content

Commit 5bf6de7

Browse files
authored
🤖 Merge PR DefinitelyTyped#55473 [dotenv-flow] Add support for the silent config option by @joshuaharry
* dotenv-flow * Version bump
1 parent c2f5e71 commit 5bf6de7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎types/dotenv-flow/dotenv-flow-tests.ts

+2
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ dotenv.config({
2020
purge_dotenv: true,
2121
silent: false,
2222
});
23+
24+
dotenv.load('/path', { silent: true });

‎types/dotenv-flow/index.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for dotenv-flow 3.1
1+
// Type definitions for dotenv-flow 3.2
22
// Project: https://github.com/kerimdzhanov/dotenv-flow
33
// Definitions by: Vincent Langlet <https://github.com/vincentlanglet>
44
// Dan Kerimdzhanov <https://github.com/kerimdzhanov>
@@ -26,6 +26,10 @@ export interface DotenvReadFileOptions {
2626
* Encoding for reading the `.env*` files.
2727
*/
2828
encoding?: string | undefined;
29+
/**
30+
* Whether to support suppressing the console output.
31+
*/
32+
silent?: boolean | undefined;
2933
}
3034

3135
export interface DotenvParseOutput {

0 commit comments

Comments
 (0)