]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
move scriptable or array to helper function (#10078)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Sun, 16 Jan 2022 22:06:56 +0000 (23:06 +0100)
committerGitHub <noreply@github.com>
Sun, 16 Jan 2022 22:06:56 +0000 (17:06 -0500)
types/index.esm.d.ts

index 0b049117cef7db0b516a7ffcc3f8998a7785c8af..aa5821c497a5ce98c182f5f0185fbaae4d885e65 100644 (file)
@@ -2819,7 +2819,7 @@ export interface GridLineOptions {
   /**
    * @default 'rgba(0, 0, 0, 0.1)'
    */
-  color: Scriptable<Color, ScriptableScaleContext> | readonly Color[];
+  color: ScriptableAndArray<Color, ScriptableScaleContext>;
   /**
    * @default []
    */
@@ -2831,7 +2831,7 @@ export interface GridLineOptions {
   /**
    * @default 1
    */
-  lineWidth: Scriptable<number, ScriptableScaleContext> | readonly number[];
+  lineWidth: ScriptableAndArray<number, ScriptableScaleContext>;
 
   /**
    * @default true
@@ -2856,7 +2856,7 @@ export interface GridLineOptions {
   /**
    * @default 'rgba(0, 0, 0, 0.1)'
    */
-  tickColor: Scriptable<Color, ScriptableScaleContext> | readonly Color[];
+  tickColor: ScriptableAndArray<Color, ScriptableScaleContext>;
   /**
    * @default 10
    */