You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The items property (which is a property in my WebComponent class) is annotated with the @readonly JSDoc tag but is still serialized without the readonly modifier afterwards in the JSON file. I’m using the --format json2 flag.
Is there any other way to make the read-only modifier available in the JSON file?
// ....../** * Gets or sets the `items` property. * * @public * @readonly <- it should be readonly but is missing in the generated json file. */publicgetitems(): Array<HTMLElement>{returnthis._slot?.assignedElements()asArray<HTMLElement>??[];}// ......
The text was updated successfully, but these errors were encountered:
The items property (which is a property in my WebComponent class) is annotated with the @readonly JSDoc tag but is still serialized without the readonly modifier afterwards in the JSON file. I’m using the --format json2 flag.
Is there any other way to make the read-only modifier available in the JSON file?
The text was updated successfully, but these errors were encountered: