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);