-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove kleur #176
base: main
Are you sure you want to change the base?
Remove kleur #176
Conversation
46e18fd
to
af56edb
Compare
af56edb
to
e416b73
Compare
04220e7
to
479978a
Compare
479978a
to
a31ed56
Compare
We need to add |
a31ed56
to
5fd2109
Compare
if (color === null) { | ||
this.#color = (str: string) => str; | ||
} | ||
else { | ||
this.#color = color in kleur ? kleur[color] : kleur.white; | ||
|
||
const colors = Array.isArray(color) ? color : [color]; | ||
|
||
if (colors.every((color) => kAvailableColors.has(color)) === false) { | ||
throw new Error("Invalid color given"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We removed the assignment to colors property so nothing work as expected
No description provided.