Skip to content

Conversation

haakemon
Copy link
Contributor

@haakemon haakemon commented Nov 9, 2021

The typings for get/set methods for compile are incorrect. The set method only accepts 1 param, and set method only accepts 2 params.

This PR fixes the typings for get/set method for compile function.

@janl
Copy link
Owner

janl commented Nov 17, 2021

@janl janl closed this Nov 17, 2021
@haakemon
Copy link
Contributor Author

haakemon commented Nov 17, 2021

Hi @janl

Thank you for the feedback. However, I think the PR should be reopened, you are looking at the incorrect lines.

Yes, the get/set functions themselves and typings are correct. This PR does not change the typings for those functions, as they are already correct.

The typings for get/set methods on the compile function however are not correct - these accept 1 and 2 parameters respectively;
https://github.com/janl/node-jsonpointer/blob/main/jsonpointer.js#L89
https://github.com/janl/node-jsonpointer/blob/main/jsonpointer.js#L92

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