Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DotenvPopulateOutput typing is incorrect #790

@richard-paragon

Description

@richard-paragon

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions