Skip to content

Commit

Permalink
Resolve issue #530
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Morand committed May 12, 2021
1 parent 96dfcf7 commit cb68c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export interface DotenvParseOutput {
* @param options - additional options
* @returns an object with keys and values based on `src`
*/
export function parse(
export function parse<T extends DotenvParseOutput = DotenvParseOutput>(
src: string | Buffer,
options?: DotenvParseOptions
): DotenvParseOutput;
): T;

export interface DotenvConfigOptions {
/**
Expand Down

0 comments on commit cb68c5a

Please sign in to comment.