Skip to content

Conversation

@iclanton
Copy link

@iclanton iclanton commented Dec 21, 2022

The package.json declares that this package ships with typings, but the index.d.ts file is not included in the shipped package.

This PR adds that file to the shipped package and does some minor cleanup to the typings.


//The default function returns a promise
export default function(options: INpmCheckOptions): {
export default function (options: INpmCheckOptions): {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer equivalent, since the previous export used the CJS syntax.

We need to use the same syntax here to work as before:

Suggested change
export default function (options: INpmCheckOptions): {
export = function (options: INpmCheckOptions): {

Also, I think that we should remove the declare module block altogether. It only causes problems, and since this file is shipped next to index.js I don't see any reason why to have it?

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 this pull request may close these issues.

2 participants