diff --git a/types/index.d.ts b/types/index.d.ts index 3f923e27..23f05f69 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -57,7 +57,7 @@ export interface DotenvConfigOutput { export function config(options?: DotenvConfigOptions): DotenvConfigOutput; /** dotenv library interface */ -export interface dotenv { +export interface DotEnv { config: typeof config; parse: typeof parse; } diff --git a/types/test.ts b/types/test.ts index 5c139ce1..84b17601 100644 --- a/types/test.ts +++ b/types/test.ts @@ -1,8 +1,8 @@ -import * as DotEnv from "dotenv"; +import * as dotenv from "dotenv"; -const { config, parse }: DotEnv.dotenv = { - config: DotEnv.config, - parse: DotEnv.parse +const { config, parse }: dotenv.DotEnv = { + config: dotenv.config, + parse: dotenv.parse }; const env = config();