* Fix for jsdoc modifiers on constructor params * Update Public API baseline and fix unique symbol grammar check for js
43 lines
851 B
TypeScript
43 lines
851 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: esnext
|
|
// @out: foo.js
|
|
// @declaration: true
|
|
// @Filename: jsdocAccessibilityTagDeclarations.js
|
|
class Protected {
|
|
/** @protected */
|
|
constructor(c) {
|
|
/** @protected */
|
|
this.c = c
|
|
}
|
|
/** @protected */
|
|
m() {
|
|
return this.c
|
|
}
|
|
/** @protected */
|
|
get p() { return this.c }
|
|
/** @protected */
|
|
set p(value) { this.c = value }
|
|
}
|
|
|
|
class Private {
|
|
/** @private */
|
|
constructor(c) {
|
|
/** @private */
|
|
this.c = c
|
|
}
|
|
/** @private */
|
|
m() {
|
|
return this.c
|
|
}
|
|
/** @private */
|
|
get p() { return this.c }
|
|
/** @private */
|
|
set p(value) { this.c = value }
|
|
}
|
|
|
|
// https://github.com/microsoft/TypeScript/issues/38401
|
|
class C {
|
|
constructor(/** @public */ x, /** @protected */ y, /** @private */ z) {
|
|
}
|
|
} |