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

Typing for .hsl() is wrong #272

Open
GMaiolo opened this issue Jun 22, 2021 · 0 comments
Open

Typing for .hsl() is wrong #272

GMaiolo opened this issue Jun 22, 2021 · 0 comments

Comments

@GMaiolo
Copy link

GMaiolo commented Jun 22, 2021

The current type for the .hsl() method is the following:

interface ColorSpaces {
    ...
    hsl: [number, number, number];
}

But according to the docs and the actual result, the method returns 4 numbers, including the alpha.

The actual type should be:

[number, number, number, number]
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

No branches or pull requests

1 participant