We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to the API document, we shall just use
let hashString: string = image.hash();
Or according to the jimp.d.ts
jimp.d.ts
image.hash(hash => { hashString = hash; };
image.hash() return Jimp object. And the callback function return a type null | Error
image.hash()
Jimp
null | Error
The text was updated successfully, but these errors were encountered:
.hash()
.pHash()
Seems that it's a bug in jimp.d.ts where hash() should return string not this. Manually change the file solves the problem.
hash()
string
this
Sorry, something went wrong.
Fix: #745 Tyepscript definition wrong return type on hash() (#746)
a4a8196
* Fix: hash() type-definition wrong return type * Fix: hash() remove Error return type
🚀 Issue was released in v0.6.5 🚀
Successfully merging a pull request may close this issue.
Expected Behavior
According to the API document, we shall just use
Or according to the
jimp.d.ts
Current Behavior
image.hash()
returnJimp
object. And the callback function return a typenull | Error
The text was updated successfully, but these errors were encountered: