From efc1902da7213cd3dbdba02ac6609388e4a2ce2f Mon Sep 17 00:00:00 2001 From: Moses Mendoza Date: Wed, 7 Apr 2021 21:21:03 -0700 Subject: [PATCH] Include `grace` in LinearScaleOptions type definition (#8847) This commit adds the `grace` option, to the LinearScaleOptions type definition as documented here, https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without this commit the TS compiler does not allow the option. Signed-off-by: Moses Mendoza --- types/index.esm.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 709b2034b..4c3dde692 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -2821,6 +2821,10 @@ export type LinearScaleOptions = CartesianScaleOptions & { * Adjustment used when calculating the minimum data value. */ suggestedMax?: number; + /** + * Percentage (string ending with %) or amount (number) for added room in the scale range above and below data. + */ + grace?: string | number; ticks: { /**