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
Jimp.rgbaToInt
I'm getting the following TypeScript error:
even though I should be able to use the method as such (from the README):
Jimp.rgbaToInt(r, g, b, a); // e.g. converts 255, 255, 255, 255 to 0xFFFFFFFF
I think the error occurs because of a missing ? in the typings:
?
rgbaToInt: https://github.com/oliver-moran/jimp/blob/585c1aba7ef2967eb948486b047ba766d761d9f0/packages/core/types/jimp.d.ts#L102
rgbaToInt
I think that's the issue, because for, for example, intToRGBA the callback is optional: https://github.com/oliver-moran/jimp/blob/585c1aba7ef2967eb948486b047ba766d761d9f0/packages/core/types/jimp.d.ts#L104
intToRGBA
Relatively new to TypeScript, so I definitely could be missing something.
Cheers!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm getting the following TypeScript error:
even though I should be able to use the method as such (from the README):
I think the error occurs because of a missing
?
in the typings:rgbaToInt
:https://github.com/oliver-moran/jimp/blob/585c1aba7ef2967eb948486b047ba766d761d9f0/packages/core/types/jimp.d.ts#L102
I think that's the issue, because for, for example,
intToRGBA
the callback is optional:https://github.com/oliver-moran/jimp/blob/585c1aba7ef2967eb948486b047ba766d761d9f0/packages/core/types/jimp.d.ts#L104
Relatively new to TypeScript, so I definitely could be missing something.
Cheers!
The text was updated successfully, but these errors were encountered: