Skip to content

Commit 75cb496

Browse files
authored
docs(ui5-daterange-picker): correct jsdoc (#11248)
With #11162, the override still appears and is only partially applied, leading to incorrect CEM information. This PR adds explicit JSDoc for the isValid and isValidInRange methods.
1 parent 9a36df5 commit 75cb496

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/main/src/DateRangePicker.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,19 @@ class DateRangePicker extends DatePicker implements IFormInputElement {
226226
}
227227

228228
/**
229-
* @override
229+
* Checks if a value is valid against the current date format of the DatePicker.
230+
* @public
231+
* @param value A value to be tested against the current date format
230232
*/
231233
isValid(value: string): boolean {
232234
const parts = this._splitValueByDelimiter(value);
233235
return parts.length <= 2 && parts.every(dateString => super.isValid(dateString)); // must be at most 2 dates and each must be valid
234236
}
235237

236238
/**
237-
* @override
239+
* Checks if a date is between the minimum and maximum date.
240+
* @public
241+
* @param value A value to be checked
238242
*/
239243
isInValidRange(value: string): boolean {
240244
return this._splitValueByDelimiter(value).every(dateString => super.isInValidRange(dateString));

0 commit comments

Comments
 (0)