We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4573fc + 6e17670 commit 7301ac9Copy full SHA for 7301ac9
types/index.d.ts
@@ -55,5 +55,12 @@ export interface DotenvConfigOutput {
55
*
56
*/
57
export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
58
+
59
+/** dotenv library interface */
60
+export interface DotEnv {
61
+ config: typeof config;
62
+ parse: typeof parse;
63
+}
64
65
/** @deprecated since v7.0.0 Use config instead. */
66
export const load: typeof config;
types/test.ts
@@ -1,4 +1,9 @@
1
-import { config, parse } from "dotenv";
+import * as dotenv from "dotenv";
2
3
+const { config, parse }: dotenv.DotEnv = {
4
+ config: dotenv.config,
5
+ parse: dotenv.parse
6
+};
7
8
const env = config();
9
const dbUrl: string | null =
0 commit comments