]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix: allow colors as array (#10075)
authorAndy <68723584+LovelyAndy@users.noreply.github.com>
Sat, 5 Feb 2022 17:51:01 +0000 (11:51 -0600)
committerGitHub <noreply@github.com>
Sat, 5 Feb 2022 17:51:01 +0000 (19:51 +0200)
* fix: allow colors as array

* Revert "fix: allow colors as array"

This reverts commit 632e2ee917ad58061b4ec39dda5f43f593b0b3c1.

* fix: allow colors as array

* Update types/index.esm.d.ts

Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
types/index.esm.d.ts

index c8993984ee37de314424a226685d73706a72844b..10ac49f4ef56ccb14618f752c6f74277396dae7c 100644 (file)
@@ -2902,7 +2902,7 @@ export interface TickOptions {
    * Color of tick
    * @see Defaults.color
    */
-  color: Scriptable<Color, ScriptableScaleContext>;
+  color: ScriptableAndArray<Color, ScriptableScaleContext>;
   /**
    * see Fonts
    */