From 632e2ee917ad58061b4ec39dda5f43f593b0b3c1 Mon Sep 17 00:00:00 2001 From: Andy <68723584+LovelyAndy@users.noreply.github.com> Date: Sat, 15 Jan 2022 08:25:33 -0600 Subject: [PATCH 1/4] fix: allow colors as array --- types/color.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/color.d.ts b/types/color.d.ts index 4a68f98bbd6..7f68213a2f3 100644 --- a/types/color.d.ts +++ b/types/color.d.ts @@ -1 +1 @@ -export type Color = string | CanvasGradient | CanvasPattern; +export type Color = string | string[] | CanvasGradient | CanvasPattern; From 3f1f55e00b99790433ca8da1067ba14e0bdc6134 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 15 Jan 2022 08:44:56 -0600 Subject: [PATCH 2/4] Revert "fix: allow colors as array" This reverts commit 632e2ee917ad58061b4ec39dda5f43f593b0b3c1. --- types/color.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/color.d.ts b/types/color.d.ts index 7f68213a2f3..4a68f98bbd6 100644 --- a/types/color.d.ts +++ b/types/color.d.ts @@ -1 +1 @@ -export type Color = string | string[] | CanvasGradient | CanvasPattern; +export type Color = string | CanvasGradient | CanvasPattern; From dd8584781a4e16ed481b619853153b9d86622253 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 15 Jan 2022 08:46:47 -0600 Subject: [PATCH 3/4] fix: allow colors as array --- types/index.esm.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 0b049117cef..65a77a0184c 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2900,7 +2900,7 @@ export interface TickOptions { * Color of tick * @see Defaults.color */ - color: Scriptable; + color: Scriptable | Color[]; /** * see Fonts */ From 5ed800059d78855bc38ddd9d046953951ec02990 Mon Sep 17 00:00:00 2001 From: Andy <68723584+LovelyAndy@users.noreply.github.com> Date: Fri, 21 Jan 2022 07:28:29 -0600 Subject: [PATCH 4/4] Update types/index.esm.d.ts Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> --- types/index.esm.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 65a77a0184c..2611131cf2e 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2900,7 +2900,7 @@ export interface TickOptions { * Color of tick * @see Defaults.color */ - color: Scriptable | Color[]; + color: ScriptableAndArray; /** * see Fonts */