From 6e17670da989de587254dfefade211151529269f Mon Sep 17 00:00:00 2001 From: Carlos Fuentes Date: Sun, 2 Feb 2020 22:52:48 +0100 Subject: [PATCH] Change interface name to pascal case --- types/index.d.ts | 2 +- types/test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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();