motdotla / dotenv

Loads environment variables from .env for nodejs projects.
https://www.dotenvx.com
BSD 2-Clause "Simplified" License
19.01k stars 853 forks source link

DotenvPopulateOutput typing is incorrect #790

Closed richard-paragon closed 7 months ago

richard-paragon commented 8 months ago

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 commented 7 months ago

will go into next release