rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[api-extractor ]support for @defaultvalue or @default and @type

Open RueDeRennes opened this issue 8 years ago • 2 comments

is there any support for @defaultvalue or @default and @type? in my usecase: ` /**

 * Gets or the `role` property. The role is depending on the actions count.
 * Posible values are: `dialog` | `alertdialog` | `alert`
 * @public
 * @type `boolean`
 * @defaultvalue `''`
 */
readonly role: string;

`

RueDeRennes avatar Jun 23 '18 11:06 RueDeRennes

What is the role of @type, given that the TypeScript language already has a full type system?

The @default tag seems like a pretty useful feature. Could you also open an issue for the TSDoc project to propose adding @default to the standard?

octogonz avatar Jun 24 '18 00:06 octogonz

I opened https://github.com/Microsoft/tsdoc/issues/27 to track this. I'm closing this issue since @type seems to be already handled by the type system (although note that there is a JSDoc-in-JavaScript scenario that might be relevant.

Feel free to reopen this issue if you have more questions specific to API Extractor.

octogonz avatar Jun 26 '18 21:06 octogonz