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
This would be awesome! There's already support for Readonly and readonly in JSDoc closure syntax. E.g.:
/** * @typedef {Readonly<{ * foo: ReadonlyArray<Foo> * bar: number * }>} Baz */
/** * @typedef {{ * readonly foo: ReadonlyArray<Foo> * readonly bar: number * }} Baz */
Both of the above examples work as expected. However, resolving this ticket would enable readonly support for member properties too:
/** * @typedef {Object} Baz * @prop {ReadonlyArray<Foo>} foo This syntax supports comments. * @prop {number} bar But there's no support for marking properties as @readonly. */
Activity
niedzielski commentedon Oct 14, 2018
This would be awesome! There's already support for
Readonlyandreadonlyin JSDoc closure syntax. E.g.:Both of the above examples work as expected. However, resolving this ticket would enable readonly support for member properties too: