Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@default JSDOC always turn into string #237

Open
Sarin-Udompanish opened this issue Nov 26, 2021 · 1 comment
Open

@default JSDOC always turn into string #237

Sarin-Udompanish opened this issue Nov 26, 2021 · 1 comment

Comments

@Sarin-Udompanish
Copy link

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
@2bro-ncsoft
Copy link

me too :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants