]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Types: add autopadding to typing (#9858)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Mon, 15 Nov 2021 21:23:51 +0000 (22:23 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 21:23:51 +0000 (23:23 +0200)
* add autopadding to types

* fix failing test

types/index.esm.d.ts

index e83ea4dbc01881ccaa52758abb77f61c544c6b47..d8759fa6b9281596cd9afd4a32f98e765ab11c00 100644 (file)
@@ -1490,9 +1490,10 @@ export interface CoreChartOptions<TType extends ChartType> extends ParsingOption
    */
   onClick(event: ChartEvent, elements: ActiveElement[], chart: Chart): void;
 
-  layout: {
+  layout: Partial<{
+    autoPadding: boolean;
     padding: Scriptable<number | Partial<ChartArea>, ScriptableContext<TType>>;
-  };
+  }>;
 }
 
 export type EasingFunction =