The Wayback Machine - https://web.archive.org/web/20200916183746/https://github.com/nodegit/nodegit/issues/1745
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

DiffDelta documentation suggests status and newFile are properties, when in fact they are functions #1745

Open
DaGaMs opened this issue Dec 29, 2019 · 0 comments

Comments

@DaGaMs
Copy link

@DaGaMs DaGaMs commented Dec 29, 2019

System information

  • node version:
    v10.15.3
  • npm or yarn version:
    npm 6.13.1
  • OS/version/architecture:
    macOS 10.14.6
  • Applicable nodegit version:
    0.26.3

The most recent API doc suggest that status and newFile etc of DiffDelta should be properties: https://www.nodegit.org/api/diff_delta/ . Consequently, the TypeScript types also have them as properties, not functions.

However, when I use delta.status, I get a function, not a value, even with the latest release of nodegit. Any idea what the problem could be?

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.