Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotenvPopulateOutput typing is incorrect #790

Closed
richard-paragon opened this issue Dec 13, 2023 · 1 comment · Fixed by #792
Closed

DotenvPopulateOutput typing is incorrect #790

richard-paragon opened this issue Dec 13, 2023 · 1 comment · Fixed by #792

Comments

@richard-paragon
Copy link

The populate function has no return statement, so it cannot return an object of the form that DotenvPopulateOutput describes.

For reference:

export interface DotenvPopulateOutput {
  error?: Error;
}

/**
 * [...]
 * @returns {void}
 */
export function populate(/* ... */): DotenvPopulateOutput;

Should be:

export function populate(/* ... */): void;
@motdotla
Copy link
Owner

will go into next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants