Incorrect TS type for markerList
of QSliderSlots
#17060
Labels
area/typescript
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
The type definition for when defining custom QSlider marker labels, defined here:
quasar/ui/src/components/slider/use-slider.json
Lines 315 to 316 in 881803b
quasar/ui/src/components/slider/use-slider.json
Lines 408 to 409 in 881803b
Results in an incorrect generated types.
Show generated TS interface
Note how
markerList
in generated types for both slots isSliderMarkerLabelArrayConfig[]
. However,SliderMarkerLabelArrayConfig
is already an array ofSliderMarkerLabelConfig
:quasar/ui/types/api/slider.d.ts
Line 43 in 881803b
So we end up with
typeof markerList === SliderMarkerLabelConfig[][]
.The text was updated successfully, but these errors were encountered: