JSDoc types references can often be to values, which can often be circular in ways that types tied to declarations cannot. I decided to create a separate property on SymbolLinks rather than reusing declaredType, although I'm not sure that's strictly required.
9 lines
153 B
TypeScript
9 lines
153 B
TypeScript
// @allowJs: true
|
|
// @noEmit: true
|
|
// @checkJs: true
|
|
// @Filename: bug27346.js
|
|
/**
|
|
* @type {MyClass}
|
|
*/
|
|
function MyClass() { }
|
|
MyClass.prototype = {};
|