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

getPalette() return type is different from API document #190

Open
rikapo opened this issue Jun 15, 2020 · 0 comments
Open

getPalette() return type is different from API document #190

rikapo opened this issue Jun 15, 2020 · 0 comments

Comments

@rikapo
Copy link

rikapo commented Jun 15, 2020

Hello,

According to the API document,
getPalette() function is supposed to return an array containing colors,
but in fact, also returns null. (src/color-thief-node.js line 87)

It would be great if getPallete() uses reject() or returns an empty array instead of returning null.
or API document informs about the possibility of returning null.

Best regards.

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

No branches or pull requests

2 participants