QSlider markerLabels property (SliderMarkerLabels) can be Array<number|string> but not typed (TypeScript) nor documented #17450
Labels
area/components
area/typescript
bug/1-hard-to-reproduce
A reproduction is available, but it's hard to reproduce, so it has a lower priority.
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
If you use an array of numbers for markerLabels of QSlider works fine, but shows type error (vue-tsc) because SliderMarkerLabels has no definition to use Array<number|string>.
What did you expect to happen?
It works, but I really don't know if this will be expected (not documented). As it works and is a valid and useful alternative (model is array index, label is array data), simply add to type (for TypeScript) and document.
Reproduction URL
https://github.com/lugrinder/quasar
How to reproduce?
Open project in an editor with Volar, or check using
vue-tsc
.Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar), TypeScript Support
Platforms/Browsers
No response
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: