web-component-analyzer
web-component-analyzer copied to clipboard
@default JSDOC always turn into string
Example code
/**
* Set the first day of the week. 0 - for Sunday, 6 - for Saturday
* @param firstDayOfWeek The first day of the week
* @type {number}
* @default 0
*/
@property({ type: Number, attribute: 'first-day-of-week' })
public set firstDayOfWeek (firstDayOfWeek: number) {
firstDayOfWeek %= 7;
const oldFirstDayOfWeek = this._firstDayOfWeek;
if (oldFirstDayOfWeek !== firstDayOfWeek) {
this._firstDayOfWeek = firstDayOfWeek;
this.requestUpdate('firstDayOfWeek', oldFirstDayOfWeek);
}
}
Expected output
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
firstDayOfWeek |
first-day-of-week |
number |
0 | Set the first day of the week. 0 - for Sunday, 6 - for Saturday |
Actual output
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
firstDayOfWeek |
first-day-of-week |
number |
"0" | Set the first day of the week. 0 - for Sunday, 6 - for Saturday |
me too :(