From b83c6709f18b3f87375898829bc0d85422e2d5f2 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Wed, 2 Oct 2024 14:46:30 +0300 Subject: [PATCH] fix(ui): allow number[] in QSlider markerLabels type --- ui/types/api/slider.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/types/api/slider.d.ts b/ui/types/api/slider.d.ts index 0c1c5308a5b..8df9ebbb0ae 100644 --- a/ui/types/api/slider.d.ts +++ b/ui/types/api/slider.d.ts @@ -26,7 +26,8 @@ interface SliderMarkerLabelObjectDefinition { export type SliderMarkerLabels = | boolean - | Array + // using a number is shorthand for { value: number } + | (SliderMarkerLabelDefinitionRequiredValue | number)[] | SliderMarkerLabelObjectDefinition | ((value: number) => string | SliderMarkerLabelDefinition);