I'm using the date picker with ranges, in TypeScript.
When using a date picker, it works fine as the type of the "rules" prop is DatePartsRules.
However, when using a date range ie "v-model.range='range'" the type of the "rules" prop is not allowed to be an array of DatePartsRules (one for startTime, one for endTime) so this is noted as an error in TypeScript.
Having and array confirms to the examples in the online documentation and runs fine at runtime, however it is the wrong type for TypeScript.
The type of the "rules" prop should therefore be DatePartsRules | DatePartsRules[]
I'm using the date picker with ranges, in TypeScript.
When using a date picker, it works fine as the type of the "rules" prop is DatePartsRules.
However, when using a date range ie "v-model.range='range'" the type of the "rules" prop is not allowed to be an array of DatePartsRules (one for startTime, one for endTime) so this is noted as an error in TypeScript.
Having and array confirms to the examples in the online documentation and runs fine at runtime, however it is the wrong type for TypeScript.
The type of the "rules" prop should therefore be DatePartsRules | DatePartsRules[]