File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed
Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -245,12 +245,27 @@ declare module TypeDoc {
245245 }
246246}
247247declare module TypeDoc {
248+ /**
249+ * Alias to TypeScript.LanguageVersion
250+ *
251+ * @resolve
252+ */
253+ var CodeGenTarget : typeof TypeScript . LanguageVersion ;
254+ /**
255+ * Alias to TypeScript.ModuleGenTarget
256+ *
257+ * @resolve
258+ */
259+ var ModuleGenTarget : typeof TypeScript . ModuleGenTarget ;
248260 /**
249261 * Holds all settings used by TypeDoc.
250262 */
251263 class Settings {
252264 /**
253265 * The settings used by the TypeScript compiler.
266+ *
267+ * @see [[CodeGenTarget]]
268+ * @see [[ModuleGenTarget]]
254269 */
255270 public compiler : TypeScript . CompilationSettings ;
256271 /**
@@ -1645,6 +1660,12 @@ declare module TypeDoc.Models {
16451660 */
16461661 constructor ( shortText ?: string , text ?: string ) ;
16471662 /**
1663+ * Has this comment a visible component?
1664+ *
1665+ * @returns TRUE when this comment has a visible component.
1666+ */
1667+ public hasVisibleComponent ( ) : boolean ;
1668+ /**
16481669 * Test whether this comment contains a tag with the given name.
16491670 *
16501671 * @param tagName The name of the tag to look for.
Original file line number Diff line number Diff line change @@ -1110,6 +1110,20 @@ var TypeDoc;
11101110} ) ( TypeDoc || ( TypeDoc = { } ) ) ;
11111111var TypeDoc ;
11121112( function ( TypeDoc ) {
1113+ /**
1114+ * Alias to TypeScript.LanguageVersion
1115+ *
1116+ * @resolve
1117+ */
1118+ TypeDoc . CodeGenTarget = TypeScript . LanguageVersion ;
1119+
1120+ /**
1121+ * Alias to TypeScript.ModuleGenTarget
1122+ *
1123+ * @resolve
1124+ */
1125+ TypeDoc . ModuleGenTarget = TypeScript . ModuleGenTarget ;
1126+
11131127 /**
11141128 * Holds all settings used by TypeDoc.
11151129 */
@@ -4747,6 +4761,15 @@ var TypeDoc;
47474761 this . shortText = shortText || '' ;
47484762 this . text = text || '' ;
47494763 }
4764+ /**
4765+ * Has this comment a visible component?
4766+ *
4767+ * @returns TRUE when this comment has a visible component.
4768+ */
4769+ Comment . prototype . hasVisibleComponent = function ( ) {
4770+ return ( this . shortText || this . text || this . tags ) ;
4771+ } ;
4772+
47504773 /**
47514774 * Test whether this comment contains a tag with the given name.
47524775 *
@@ -4956,7 +4979,7 @@ var TypeDoc;
49564979 * @returns TRUE when this reflection has a visible comment.
49574980 */
49584981 BaseReflection . prototype . hasComment = function ( ) {
4959- return ( this . comment && ( this . comment . shortText || this . comment . text || this . comment . tags ) ) ;
4982+ return ( this . comment && this . comment . hasVisibleComponent ( ) ) ;
49604983 } ;
49614984
49624985 /**
You can’t perform that action at this time.
0 commit comments