Skip to content

Commit fcf4272

Browse files
refactor: align property types and default values to framework (#9334)
With the introduction of property initializers (#8846) many properties have changed they default values or types but on some places: - JSDoc wasn't changed - Properties with declared `declare` keyword were using wrong type This change fixes most of the things until custom element analyzer plugin is adjusted to generate correct output
1 parent 597367b commit fcf4272

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/main/src/TimePicker.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class TimePicker extends UI5Element implements IFormInputElement {
209209
* @public
210210
*/
211211
@property()
212-
value = ""
212+
value = "";
213213

214214
/**
215215
* Determines the name by which the component will be identified upon submission in an HTML form.
@@ -343,8 +343,8 @@ class TimePicker extends UI5Element implements IFormInputElement {
343343
* @public
344344
* @default null
345345
*/
346-
get dateValue(): Date | Date[] | null {
347-
return this.getFormat().parse(this._effectiveValue);
346+
get dateValue(): Date | null {
347+
return this.getFormat().parse(this._effectiveValue) as Date;
348348
}
349349

350350
/**

0 commit comments

Comments
 (0)