Skip to content

Commit

Permalink
Change interface name to pascal case
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Feb 2, 2020
1 parent 985e0d2 commit 6e17670
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions types/test.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 6e17670

Please sign in to comment.