TypeScript/tests/cases/conformance/jsdoc/jsdocImplements_properties.ts
Titian Cernicova-Dragomir f883bf3acb
Adding support for @implements. (#36292)
* Adding support for @implements.

* Fixed code review issues for @implements, added some more tests.

* Fixed declaration emit for @interface

* Improved getImplementsTypes to not cache the results since it is only used once.

* Removed unnecessary checks from getImplementsTypes
2020-02-27 09:27:37 -08:00

21 lines
335 B
TypeScript

// @allowJs: true
// @checkJs: true
// @declaration: true
// @emitDeclarationOnly: true
// @outDir: ./out
// @Filename: /a.js
class A { constructor() { this.x = 0; } }
/** @implements A*/
class B {}
/** @implements A*/
class B2 {
x = 10
}
/** @implements {A}*/
class B3 {
constructor() { this.x = 10 }
}