typedoc 0.26.11 → 0.27.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/bin/package.json +3 -0
  2. package/bin/typedoc +1 -1
  3. package/dist/index.d.ts +23 -13
  4. package/dist/index.js +22 -81
  5. package/dist/lib/application-events.js +1 -4
  6. package/dist/lib/application.d.ts +26 -16
  7. package/dist/lib/application.js +222 -242
  8. package/dist/lib/cli.js +3 -40
  9. package/dist/lib/converter/comments/blockLexer.d.ts +1 -1
  10. package/dist/lib/converter/comments/blockLexer.js +24 -30
  11. package/dist/lib/converter/comments/declarationReference.js +10 -21
  12. package/dist/lib/converter/comments/declarationReferenceResolver.d.ts +2 -2
  13. package/dist/lib/converter/comments/declarationReferenceResolver.js +40 -36
  14. package/dist/lib/converter/comments/discovery.d.ts +4 -4
  15. package/dist/lib/converter/comments/discovery.js +154 -172
  16. package/dist/lib/converter/comments/index.d.ts +4 -4
  17. package/dist/lib/converter/comments/index.js +39 -50
  18. package/dist/lib/converter/comments/lexer.d.ts +1 -1
  19. package/dist/lib/converter/comments/lexer.js +2 -5
  20. package/dist/lib/converter/comments/lineLexer.d.ts +1 -1
  21. package/dist/lib/converter/comments/lineLexer.js +12 -15
  22. package/dist/lib/converter/comments/linkResolver.d.ts +2 -2
  23. package/dist/lib/converter/comments/linkResolver.js +14 -21
  24. package/dist/lib/converter/comments/parser.d.ts +6 -6
  25. package/dist/lib/converter/comments/parser.js +69 -96
  26. package/dist/lib/converter/comments/rawLexer.d.ts +1 -1
  27. package/dist/lib/converter/comments/rawLexer.js +13 -16
  28. package/dist/lib/converter/comments/tagName.js +1 -4
  29. package/dist/lib/converter/comments/textParser.d.ts +4 -4
  30. package/dist/lib/converter/comments/textParser.js +28 -30
  31. package/dist/lib/converter/components.d.ts +2 -3
  32. package/dist/lib/converter/components.js +2 -7
  33. package/dist/lib/converter/context.d.ts +9 -9
  34. package/dist/lib/converter/context.js +54 -44
  35. package/dist/lib/converter/convert-expression.js +16 -23
  36. package/dist/lib/converter/converter-events.d.ts +1 -0
  37. package/dist/lib/converter/converter-events.js +2 -4
  38. package/dist/lib/converter/converter.d.ts +16 -13
  39. package/dist/lib/converter/converter.js +212 -239
  40. package/dist/lib/converter/factories/index-signature.d.ts +3 -3
  41. package/dist/lib/converter/factories/index-signature.js +43 -26
  42. package/dist/lib/converter/factories/signature.d.ts +2 -2
  43. package/dist/lib/converter/factories/signature.js +95 -106
  44. package/dist/lib/converter/index.d.ts +6 -7
  45. package/dist/lib/converter/index.js +3 -11
  46. package/dist/lib/converter/jsdoc.d.ts +1 -1
  47. package/dist/lib/converter/jsdoc.js +34 -41
  48. package/dist/lib/converter/plugins/CategoryPlugin.d.ts +6 -21
  49. package/dist/lib/converter/plugins/CategoryPlugin.js +57 -139
  50. package/dist/lib/converter/plugins/CommentPlugin.d.ts +3 -5
  51. package/dist/lib/converter/plugins/CommentPlugin.js +153 -163
  52. package/dist/lib/converter/plugins/GroupPlugin.d.ts +10 -9
  53. package/dist/lib/converter/plugins/GroupPlugin.js +87 -124
  54. package/dist/lib/converter/plugins/ImplementsPlugin.d.ts +3 -5
  55. package/dist/lib/converter/plugins/ImplementsPlugin.js +255 -321
  56. package/dist/lib/converter/plugins/IncludePlugin.d.ts +11 -0
  57. package/dist/lib/converter/plugins/IncludePlugin.js +72 -0
  58. package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +4 -3
  59. package/dist/lib/converter/plugins/InheritDocPlugin.js +41 -72
  60. package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +5 -5
  61. package/dist/lib/converter/plugins/LinkResolverPlugin.js +37 -58
  62. package/dist/lib/converter/plugins/MergeModuleWithPlugin.d.ts +12 -0
  63. package/dist/lib/converter/plugins/MergeModuleWithPlugin.js +49 -0
  64. package/dist/lib/converter/plugins/PackagePlugin.d.ts +4 -3
  65. package/dist/lib/converter/plugins/PackagePlugin.js +62 -111
  66. package/dist/lib/converter/plugins/SourcePlugin.d.ts +3 -5
  67. package/dist/lib/converter/plugins/SourcePlugin.js +69 -110
  68. package/dist/lib/converter/plugins/TypePlugin.d.ts +4 -6
  69. package/dist/lib/converter/plugins/TypePlugin.js +95 -158
  70. package/dist/lib/converter/plugins/index.d.ts +10 -9
  71. package/dist/lib/converter/plugins/index.js +10 -21
  72. package/dist/lib/converter/symbols.d.ts +1 -1
  73. package/dist/lib/converter/symbols.js +234 -227
  74. package/dist/lib/converter/types.d.ts +2 -2
  75. package/dist/lib/converter/types.js +252 -237
  76. package/dist/lib/converter/utils/nodes.js +5 -13
  77. package/dist/lib/converter/utils/reflections.d.ts +1 -1
  78. package/dist/lib/converter/utils/reflections.js +4 -7
  79. package/dist/lib/converter/utils/repository.d.ts +1 -1
  80. package/dist/lib/converter/utils/repository.js +103 -97
  81. package/dist/lib/converter/utils/symbols.js +3 -9
  82. package/dist/lib/internationalization/index.d.ts +3 -4
  83. package/dist/lib/internationalization/index.js +3 -8
  84. package/dist/lib/internationalization/internationalization.d.ts +5 -4
  85. package/dist/lib/internationalization/internationalization.js +97 -103
  86. package/dist/lib/internationalization/locale-utils.cjs +8 -0
  87. package/dist/lib/internationalization/locale-utils.d.cts +8 -0
  88. package/dist/lib/internationalization/locales/en.cjs +372 -2
  89. package/dist/lib/internationalization/locales/en.d.cts +343 -2
  90. package/dist/lib/internationalization/locales/jp.cjs +13 -14
  91. package/dist/lib/internationalization/locales/jp.d.cts +307 -1
  92. package/dist/lib/internationalization/locales/ko.cjs +12 -11
  93. package/dist/lib/internationalization/locales/ko.d.cts +221 -1
  94. package/dist/lib/internationalization/locales/zh.cjs +43 -19
  95. package/dist/lib/internationalization/locales/zh.d.cts +409 -1
  96. package/dist/lib/internationalization/translatable.d.ts +4 -327
  97. package/dist/lib/internationalization/translatable.js +2 -360
  98. package/dist/lib/models/FileRegistry.d.ts +20 -9
  99. package/dist/lib/models/FileRegistry.js +54 -45
  100. package/dist/lib/models/ReflectionCategory.d.ts +2 -2
  101. package/dist/lib/models/ReflectionCategory.js +16 -12
  102. package/dist/lib/models/ReflectionGroup.d.ts +3 -3
  103. package/dist/lib/models/ReflectionGroup.js +23 -14
  104. package/dist/lib/models/comments/comment.d.ts +23 -37
  105. package/dist/lib/models/comments/comment.js +388 -325
  106. package/dist/lib/models/comments/index.d.ts +2 -2
  107. package/dist/lib/models/comments/index.js +1 -6
  108. package/dist/lib/models/index.d.ts +7 -7
  109. package/dist/lib/models/index.js +7 -23
  110. package/dist/lib/models/reflections/ReflectionSymbolId.d.ts +2 -2
  111. package/dist/lib/models/reflections/ReflectionSymbolId.js +42 -34
  112. package/dist/lib/models/reflections/abstract.d.ts +17 -20
  113. package/dist/lib/models/reflections/abstract.js +249 -256
  114. package/dist/lib/models/reflections/container.d.ts +7 -7
  115. package/dist/lib/models/reflections/container.js +43 -16
  116. package/dist/lib/models/reflections/declaration.d.ts +15 -12
  117. package/dist/lib/models/reflections/declaration.js +150 -29
  118. package/dist/lib/models/reflections/document.d.ts +3 -3
  119. package/dist/lib/models/reflections/document.js +26 -13
  120. package/dist/lib/models/reflections/index.d.ts +15 -15
  121. package/dist/lib/models/reflections/index.js +12 -31
  122. package/dist/lib/models/reflections/kind.d.ts +1 -1
  123. package/dist/lib/models/reflections/kind.js +3 -6
  124. package/dist/lib/models/reflections/parameter.d.ts +5 -4
  125. package/dist/lib/models/reflections/parameter.js +11 -13
  126. package/dist/lib/models/reflections/project.d.ts +14 -9
  127. package/dist/lib/models/reflections/project.js +104 -56
  128. package/dist/lib/models/reflections/reference.d.ts +3 -3
  129. package/dist/lib/models/reflections/reference.js +6 -9
  130. package/dist/lib/models/reflections/signature.d.ts +8 -8
  131. package/dist/lib/models/reflections/signature.js +35 -14
  132. package/dist/lib/models/reflections/type-parameter.d.ts +5 -5
  133. package/dist/lib/models/reflections/type-parameter.js +9 -10
  134. package/dist/lib/models/reflections/utils.js +1 -4
  135. package/dist/lib/models/reflections/variant.d.ts +8 -7
  136. package/dist/lib/models/reflections/variant.js +1 -2
  137. package/dist/lib/models/sources/file.d.ts +2 -2
  138. package/dist/lib/models/sources/file.js +22 -5
  139. package/dist/lib/models/sources/index.d.ts +1 -1
  140. package/dist/lib/models/sources/index.js +1 -5
  141. package/dist/lib/models/types.d.ts +29 -16
  142. package/dist/lib/models/types.js +236 -151
  143. package/dist/lib/output/components.d.ts +5 -11
  144. package/dist/lib/output/components.js +84 -125
  145. package/dist/lib/output/events.d.ts +3 -3
  146. package/dist/lib/output/events.js +128 -94
  147. package/dist/lib/output/formatter.d.ts +84 -0
  148. package/dist/lib/output/formatter.js +624 -0
  149. package/dist/lib/output/index.d.ts +9 -8
  150. package/dist/lib/output/index.js +7 -19
  151. package/dist/lib/output/models/UrlMapping.d.ts +2 -2
  152. package/dist/lib/output/models/UrlMapping.js +4 -5
  153. package/dist/lib/output/output.d.ts +14 -0
  154. package/dist/lib/output/output.js +91 -0
  155. package/dist/lib/output/plugins/AssetsPlugin.d.ts +9 -8
  156. package/dist/lib/output/plugins/AssetsPlugin.js +64 -80
  157. package/dist/lib/output/plugins/HierarchyPlugin.d.ts +7 -0
  158. package/dist/lib/output/plugins/HierarchyPlugin.js +67 -0
  159. package/dist/lib/output/plugins/IconsPlugin.d.ts +3 -2
  160. package/dist/lib/output/plugins/IconsPlugin.js +28 -84
  161. package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +9 -2
  162. package/dist/lib/output/plugins/JavascriptIndexPlugin.js +90 -96
  163. package/dist/lib/output/plugins/NavigationPlugin.d.ts +3 -2
  164. package/dist/lib/output/plugins/NavigationPlugin.js +22 -102
  165. package/dist/lib/output/plugins/SitemapPlugin.d.ts +3 -2
  166. package/dist/lib/output/plugins/SitemapPlugin.js +60 -120
  167. package/dist/lib/output/plugins/index.d.ts +7 -6
  168. package/dist/lib/output/plugins/index.js +7 -15
  169. package/dist/lib/output/renderer.d.ts +14 -13
  170. package/dist/lib/output/renderer.js +130 -185
  171. package/dist/lib/output/theme.d.ts +9 -5
  172. package/dist/lib/output/theme.js +14 -62
  173. package/dist/lib/output/themes/MarkedPlugin.d.ts +8 -9
  174. package/dist/lib/output/themes/MarkedPlugin.js +152 -117
  175. package/dist/lib/output/themes/default/DefaultTheme.d.ts +17 -29
  176. package/dist/lib/output/themes/default/DefaultTheme.js +334 -310
  177. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +63 -48
  178. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +119 -95
  179. package/dist/lib/output/themes/default/Slugger.d.ts +13 -0
  180. package/dist/lib/output/themes/default/Slugger.js +46 -0
  181. package/dist/lib/output/themes/default/layouts/default.d.ts +5 -5
  182. package/dist/lib/output/themes/default/layouts/default.js +48 -36
  183. package/dist/lib/output/themes/default/partials/anchor-icon.d.ts +2 -2
  184. package/dist/lib/output/themes/default/partials/anchor-icon.js +4 -7
  185. package/dist/lib/output/themes/default/partials/breadcrumb.d.ts +3 -3
  186. package/dist/lib/output/themes/default/partials/breadcrumb.js +4 -8
  187. package/dist/lib/output/themes/default/partials/comment.d.ts +6 -4
  188. package/dist/lib/output/themes/default/partials/comment.js +52 -29
  189. package/dist/lib/output/themes/default/partials/footer.d.ts +2 -2
  190. package/dist/lib/output/themes/default/partials/footer.js +11 -14
  191. package/dist/lib/output/themes/default/partials/header.d.ts +4 -4
  192. package/dist/lib/output/themes/default/partials/header.js +9 -13
  193. package/dist/lib/output/themes/default/partials/hierarchy.d.ts +4 -4
  194. package/dist/lib/output/themes/default/partials/hierarchy.js +12 -15
  195. package/dist/lib/output/themes/default/partials/icon.d.ts +4 -4
  196. package/dist/lib/output/themes/default/partials/icon.js +78 -73
  197. package/dist/lib/output/themes/default/partials/index.d.ts +3 -3
  198. package/dist/lib/output/themes/default/partials/index.js +19 -22
  199. package/dist/lib/output/themes/default/partials/member.d.ts +3 -3
  200. package/dist/lib/output/themes/default/partials/member.declaration.d.ts +3 -3
  201. package/dist/lib/output/themes/default/partials/member.declaration.js +18 -61
  202. package/dist/lib/output/themes/default/partials/member.getterSetter.d.ts +3 -3
  203. package/dist/lib/output/themes/default/partials/member.getterSetter.js +10 -26
  204. package/dist/lib/output/themes/default/partials/member.js +19 -24
  205. package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +3 -3
  206. package/dist/lib/output/themes/default/partials/member.signature.body.js +17 -21
  207. package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +4 -7
  208. package/dist/lib/output/themes/default/partials/member.signature.title.js +8 -35
  209. package/dist/lib/output/themes/default/partials/member.signatures.d.ts +3 -3
  210. package/dist/lib/output/themes/default/partials/member.signatures.js +9 -13
  211. package/dist/lib/output/themes/default/partials/member.sources.d.ts +3 -3
  212. package/dist/lib/output/themes/default/partials/member.sources.js +13 -17
  213. package/dist/lib/output/themes/default/partials/members.d.ts +3 -3
  214. package/dist/lib/output/themes/default/partials/members.js +10 -42
  215. package/dist/lib/output/themes/default/partials/moduleReflection.d.ts +5 -0
  216. package/dist/lib/output/themes/default/partials/moduleReflection.js +62 -0
  217. package/dist/lib/output/themes/default/partials/navigation.d.ts +4 -4
  218. package/dist/lib/output/themes/default/partials/navigation.js +51 -62
  219. package/dist/lib/output/themes/default/partials/reflectionPreview.d.ts +3 -3
  220. package/dist/lib/output/themes/default/partials/reflectionPreview.js +12 -15
  221. package/dist/lib/output/themes/default/partials/toolbar.d.ts +4 -4
  222. package/dist/lib/output/themes/default/partials/toolbar.js +16 -20
  223. package/dist/lib/output/themes/default/partials/type.d.ts +4 -6
  224. package/dist/lib/output/themes/default/partials/type.js +8 -388
  225. package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +3 -3
  226. package/dist/lib/output/themes/default/partials/typeAndParent.js +11 -15
  227. package/dist/lib/output/themes/default/partials/typeDetails.d.ts +8 -0
  228. package/dist/lib/output/themes/default/partials/typeDetails.js +222 -0
  229. package/dist/lib/output/themes/default/partials/typeParameters.d.ts +3 -3
  230. package/dist/lib/output/themes/default/partials/typeParameters.js +14 -17
  231. package/dist/lib/output/themes/default/templates/document.d.ts +4 -4
  232. package/dist/lib/output/themes/default/templates/document.js +3 -7
  233. package/dist/lib/output/themes/default/templates/hierarchy.d.ts +4 -4
  234. package/dist/lib/output/themes/default/templates/hierarchy.js +24 -22
  235. package/dist/lib/output/themes/default/templates/index.d.ts +4 -4
  236. package/dist/lib/output/themes/default/templates/index.js +3 -7
  237. package/dist/lib/output/themes/default/templates/reflection.d.ts +4 -4
  238. package/dist/lib/output/themes/default/templates/reflection.js +32 -34
  239. package/dist/lib/output/themes/lib.d.ts +17 -3
  240. package/dist/lib/output/themes/lib.js +118 -50
  241. package/dist/lib/serialization/components.d.ts +2 -5
  242. package/dist/lib/serialization/components.js +1 -2
  243. package/dist/lib/serialization/deserializer.d.ts +21 -7
  244. package/dist/lib/serialization/deserializer.js +138 -123
  245. package/dist/lib/serialization/events.d.ts +2 -2
  246. package/dist/lib/serialization/events.js +6 -5
  247. package/dist/lib/serialization/index.d.ts +5 -5
  248. package/dist/lib/serialization/index.js +4 -33
  249. package/dist/lib/serialization/schema.d.ts +8 -2
  250. package/dist/lib/serialization/schema.js +2 -2
  251. package/dist/lib/serialization/serializer.d.ts +11 -5
  252. package/dist/lib/serialization/serializer.js +32 -25
  253. package/dist/lib/utils/array.d.ts +3 -0
  254. package/dist/lib/utils/array.js +26 -27
  255. package/dist/lib/utils/component.d.ts +2 -44
  256. package/dist/lib/utils/component.js +10 -102
  257. package/dist/lib/utils/entry-point.d.ts +3 -4
  258. package/dist/lib/utils/entry-point.js +114 -85
  259. package/dist/lib/utils/enum.js +6 -14
  260. package/dist/lib/utils/events.js +6 -12
  261. package/dist/lib/utils/fs.js +50 -91
  262. package/dist/lib/utils/general.d.ts +2 -1
  263. package/dist/lib/utils/general.js +50 -40
  264. package/dist/lib/utils/highlighter.js +30 -57
  265. package/dist/lib/utils/hooks.js +7 -13
  266. package/dist/lib/utils/html-entities.d.ts +8926 -0
  267. package/dist/lib/utils/html-entities.js +2329 -0
  268. package/dist/lib/utils/html.d.ts +8 -0
  269. package/dist/lib/utils/html.js +81 -34
  270. package/dist/lib/utils/index.d.ts +22 -22
  271. package/dist/lib/utils/index.js +20 -91
  272. package/dist/lib/utils/jsx.d.ts +12 -6
  273. package/dist/lib/utils/jsx.elements.d.ts +1 -1
  274. package/dist/lib/utils/jsx.elements.js +3 -4
  275. package/dist/lib/utils/jsx.js +82 -52
  276. package/dist/lib/utils/loggers.d.ts +3 -3
  277. package/dist/lib/utils/loggers.js +36 -46
  278. package/dist/lib/utils/map.js +6 -13
  279. package/dist/lib/utils/minimalSourceFile.js +5 -7
  280. package/dist/lib/utils/options/declaration.d.ts +35 -7
  281. package/dist/lib/utils/options/declaration.js +20 -22
  282. package/dist/lib/utils/options/defaults.d.ts +3 -2
  283. package/dist/lib/utils/options/defaults.js +18 -38
  284. package/dist/lib/utils/options/help.d.ts +2 -2
  285. package/dist/lib/utils/options/help.js +7 -10
  286. package/dist/lib/utils/options/index.d.ts +6 -6
  287. package/dist/lib/utils/options/index.js +4 -18
  288. package/dist/lib/utils/options/options.d.ts +8 -5
  289. package/dist/lib/utils/options/options.js +47 -71
  290. package/dist/lib/utils/options/readers/arguments.d.ts +2 -2
  291. package/dist/lib/utils/options/readers/arguments.js +15 -17
  292. package/dist/lib/utils/options/readers/index.d.ts +4 -4
  293. package/dist/lib/utils/options/readers/index.js +4 -11
  294. package/dist/lib/utils/options/readers/package-json.d.ts +3 -3
  295. package/dist/lib/utils/options/readers/package-json.js +15 -21
  296. package/dist/lib/utils/options/readers/tsconfig.d.ts +2 -2
  297. package/dist/lib/utils/options/readers/tsconfig.js +54 -63
  298. package/dist/lib/utils/options/readers/typedoc.d.ts +3 -3
  299. package/dist/lib/utils/options/readers/typedoc.js +44 -76
  300. package/dist/lib/utils/options/sources/index.d.ts +1 -1
  301. package/dist/lib/utils/options/sources/index.js +1 -5
  302. package/dist/lib/utils/options/sources/typedoc.d.ts +1 -1
  303. package/dist/lib/utils/options/sources/typedoc.js +232 -196
  304. package/dist/lib/utils/options/tsdoc-defaults.d.ts +3 -3
  305. package/dist/lib/utils/options/tsdoc-defaults.js +16 -12
  306. package/dist/lib/utils/package-manifest.d.ts +1 -1
  307. package/dist/lib/utils/package-manifest.js +15 -19
  308. package/dist/lib/utils/paths.js +9 -15
  309. package/dist/lib/utils/perf.js +6 -11
  310. package/dist/lib/utils/plugins.d.ts +1 -1
  311. package/dist/lib/utils/plugins.js +7 -10
  312. package/dist/lib/utils/reflections.d.ts +1 -1
  313. package/dist/lib/utils/reflections.js +9 -12
  314. package/dist/lib/utils/set.js +2 -6
  315. package/dist/lib/utils/sort.d.ts +3 -3
  316. package/dist/lib/utils/sort.js +20 -24
  317. package/dist/lib/utils/tsconfig.d.ts +1 -1
  318. package/dist/lib/utils/tsconfig.js +13 -21
  319. package/dist/lib/utils/tsutils.d.ts +1 -1
  320. package/dist/lib/utils/tsutils.js +3 -30
  321. package/dist/lib/utils/validation.js +6 -12
  322. package/dist/lib/validation/documentation.d.ts +2 -2
  323. package/dist/lib/validation/documentation.js +26 -29
  324. package/dist/lib/validation/exports.d.ts +2 -2
  325. package/dist/lib/validation/exports.js +9 -11
  326. package/dist/lib/validation/links.d.ts +2 -2
  327. package/dist/lib/validation/links.js +4 -7
  328. package/dist/lib/validation/unusedMergeModuleWith.d.ts +3 -0
  329. package/dist/lib/validation/unusedMergeModuleWith.js +11 -0
  330. package/package.json +17 -14
  331. package/static/main.js +4 -4
  332. package/static/style.css +109 -17
  333. package/tsdoc.json +30 -0
  334. package/dist/lib/output/themes/default/partials/member.reference.d.ts +0 -4
  335. package/dist/lib/output/themes/default/partials/member.reference.js +0 -30
  336. package/dist/lib/output/themes/default/partials/parameter.d.ts +0 -4
  337. package/dist/lib/output/themes/default/partials/parameter.js +0 -79
  338. package/dist/lib/utils/html-entities.json +0 -2326
package/dist/lib/cli.js CHANGED
@@ -1,29 +1,4 @@
1
- "use strict";
2
1
  /* eslint-disable no-console */
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || function (mod) {
20
- if (mod && mod.__esModule) return mod;
21
- var result = {};
22
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
- __setModuleDefault(result, mod);
24
- return result;
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
2
  const ExitCodes = {
28
3
  Ok: 0,
29
4
  OptionError: 1,
@@ -33,7 +8,7 @@ const ExitCodes = {
33
8
  ExceptionThrown: 6,
34
9
  Watching: 7,
35
10
  };
36
- const td = __importStar(require("typedoc"));
11
+ import * as td from "../index.js";
37
12
  void main();
38
13
  async function main() {
39
14
  let app;
@@ -85,13 +60,7 @@ async function run(app) {
85
60
  if (app.options.getValue("watch")) {
86
61
  app.convertAndWatch(async (project) => {
87
62
  app.validate(project);
88
- const json = app.options.getValue("json");
89
- if (!json || app.options.isSet("out")) {
90
- await app.generateDocs(project, app.options.getValue("out"));
91
- }
92
- if (json) {
93
- await app.generateJson(project, json);
94
- }
63
+ await app.generateOutputs(project);
95
64
  });
96
65
  return ExitCodes.Watching;
97
66
  }
@@ -115,13 +84,7 @@ async function run(app) {
115
84
  return ExitCodes.ValidationError;
116
85
  }
117
86
  if (app.options.getValue("emit") !== "none") {
118
- const json = app.options.getValue("json");
119
- if (!json || app.options.isSet("out")) {
120
- await app.generateDocs(project, app.options.getValue("out"));
121
- }
122
- if (json) {
123
- await app.generateJson(project, json);
124
- }
87
+ await app.generateOutputs(project);
125
88
  if (app.logger.hasErrors()) {
126
89
  return ExitCodes.OutputError;
127
90
  }
@@ -1,3 +1,3 @@
1
1
  import ts from "typescript";
2
- import { type Token } from "./lexer";
2
+ import { type Token } from "./lexer.js";
3
3
  export declare function lexBlockComment(file: string, pos?: number, end?: number, jsDoc?: ts.JSDoc | undefined, checker?: ts.TypeChecker | undefined): Generator<Token, undefined, undefined>;
@@ -1,18 +1,12 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.lexBlockComment = lexBlockComment;
7
- const typescript_1 = __importDefault(require("typescript"));
8
- const lexer_1 = require("./lexer");
9
- const ReflectionSymbolId_1 = require("../../models/reflections/ReflectionSymbolId");
10
- const symbols_1 = require("../utils/symbols");
11
- function* lexBlockComment(file, pos = 0, end = file.length, jsDoc = undefined, checker = undefined) {
1
+ import ts from "typescript";
2
+ import { TokenSyntaxKind } from "./lexer.js";
3
+ import { ReflectionSymbolId } from "../../models/reflections/ReflectionSymbolId.js";
4
+ import { resolveAliasedSymbol } from "../utils/symbols.js";
5
+ export function* lexBlockComment(file, pos = 0, end = file.length, jsDoc = undefined, checker = undefined) {
12
6
  // Wrapper around our real lex function to collapse adjacent text tokens.
13
7
  let textToken;
14
8
  for (const token of lexBlockComment2(file, pos, end, getLinkTags(jsDoc), checker)) {
15
- if (token.kind === lexer_1.TokenSyntaxKind.Text) {
9
+ if (token.kind === TokenSyntaxKind.Text) {
16
10
  if (textToken) {
17
11
  textToken.text += token.text;
18
12
  }
@@ -38,9 +32,9 @@ function getLinkTags(jsDoc) {
38
32
  if (jsDoc?.comment && typeof jsDoc.comment !== "string") {
39
33
  for (const part of jsDoc.comment) {
40
34
  switch (part.kind) {
41
- case typescript_1.default.SyntaxKind.JSDocLink:
42
- case typescript_1.default.SyntaxKind.JSDocLinkCode:
43
- case typescript_1.default.SyntaxKind.JSDocLinkPlain:
35
+ case ts.SyntaxKind.JSDocLink:
36
+ case ts.SyntaxKind.JSDocLinkCode:
37
+ case ts.SyntaxKind.JSDocLinkPlain:
44
38
  result.push(part);
45
39
  }
46
40
  }
@@ -50,9 +44,9 @@ function getLinkTags(jsDoc) {
50
44
  continue;
51
45
  for (const part of block.comment) {
52
46
  switch (part.kind) {
53
- case typescript_1.default.SyntaxKind.JSDocLink:
54
- case typescript_1.default.SyntaxKind.JSDocLinkCode:
55
- case typescript_1.default.SyntaxKind.JSDocLinkPlain:
47
+ case ts.SyntaxKind.JSDocLink:
48
+ case ts.SyntaxKind.JSDocLinkCode:
49
+ case ts.SyntaxKind.JSDocLinkPlain:
56
50
  result.push(part);
57
51
  }
58
52
  }
@@ -95,20 +89,20 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
95
89
  }
96
90
  switch (file[pos]) {
97
91
  case "\n":
98
- yield makeToken(lexer_1.TokenSyntaxKind.NewLine, 1);
92
+ yield makeToken(TokenSyntaxKind.NewLine, 1);
99
93
  lineStart = true;
100
94
  break;
101
95
  case "{":
102
96
  if (braceStartsType && nextNonWs(pos + 1) !== "@") {
103
- yield makeToken(lexer_1.TokenSyntaxKind.TypeAnnotation, findEndOfType(pos) - pos);
97
+ yield makeToken(TokenSyntaxKind.TypeAnnotation, findEndOfType(pos) - pos);
104
98
  braceStartsType = false;
105
99
  }
106
100
  else {
107
- yield makeToken(lexer_1.TokenSyntaxKind.OpenBrace, 1);
101
+ yield makeToken(TokenSyntaxKind.OpenBrace, 1);
108
102
  }
109
103
  break;
110
104
  case "}":
111
- yield makeToken(lexer_1.TokenSyntaxKind.CloseBrace, 1);
105
+ yield makeToken(TokenSyntaxKind.CloseBrace, 1);
112
106
  braceStartsType = false;
113
107
  break;
114
108
  case "`": {
@@ -132,7 +126,7 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
132
126
  lookahead += tickCount;
133
127
  codeText.push(file.substring(lookaheadStart, lookahead));
134
128
  yield {
135
- kind: lexer_1.TokenSyntaxKind.Code,
129
+ kind: TokenSyntaxKind.Code,
136
130
  text: codeText.join(""),
137
131
  pos,
138
132
  };
@@ -177,14 +171,14 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
177
171
  file.substring(pos, end).includes("\n")) {
178
172
  codeText.push(file.substring(lookaheadStart, end));
179
173
  yield {
180
- kind: lexer_1.TokenSyntaxKind.Code,
174
+ kind: TokenSyntaxKind.Code,
181
175
  text: codeText.join(""),
182
176
  pos,
183
177
  };
184
178
  pos = lookahead;
185
179
  }
186
180
  else {
187
- yield makeToken(lexer_1.TokenSyntaxKind.Text, tickCount);
181
+ yield makeToken(TokenSyntaxKind.Text, tickCount);
188
182
  }
189
183
  }
190
184
  break;
@@ -203,7 +197,7 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
203
197
  if (lookahead !== pos + 1 &&
204
198
  (lookahead === end || /[\s}]/.test(file[lookahead]))) {
205
199
  braceStartsType = true;
206
- const token = makeToken(lexer_1.TokenSyntaxKind.Tag, lookahead - pos);
200
+ const token = makeToken(TokenSyntaxKind.Tag, lookahead - pos);
207
201
  attachLinkTagResult(token);
208
202
  yield token;
209
203
  break;
@@ -238,7 +232,7 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
238
232
  }
239
233
  // This piece of text had line continuations or escaped text
240
234
  yield {
241
- kind: lexer_1.TokenSyntaxKind.Text,
235
+ kind: TokenSyntaxKind.Text,
242
236
  text: textParts.join(""),
243
237
  pos,
244
238
  };
@@ -260,7 +254,7 @@ function* lexBlockComment2(file, pos, end, linkTags, checker) {
260
254
  if (link.name) {
261
255
  const tsTarget = checker?.getSymbolAtLocation(getRightmostName(link.name));
262
256
  if (tsTarget) {
263
- token.tsLinkTarget = new ReflectionSymbolId_1.ReflectionSymbolId((0, symbols_1.resolveAliasedSymbol)(tsTarget, checker));
257
+ token.tsLinkTarget = new ReflectionSymbolId(resolveAliasedSymbol(tsTarget, checker));
264
258
  token.tsLinkText = link.text.replace(/^\s*\|\s*/, "");
265
259
  }
266
260
  }
@@ -368,10 +362,10 @@ function discoverIndent(file, pos, end) {
368
362
  return [commentHasStars, indent];
369
363
  }
370
364
  function getRightmostName(name) {
371
- if (typescript_1.default.isJSDocMemberName(name)) {
365
+ if (ts.isJSDocMemberName(name)) {
372
366
  return name.right;
373
367
  }
374
- if (typescript_1.default.isQualifiedName(name)) {
368
+ if (ts.isQualifiedName(name)) {
375
369
  return name.right;
376
370
  }
377
371
  return name;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * Parser for declaration references, see the [TSDoc grammar](https://github.com/microsoft/tsdoc/blob/main/tsdoc/src/beta/DeclarationReference.grammarkdown)
4
3
  * for reference. TypeDoc **does not** support the full grammar today. This is intentional, since the TSDoc
@@ -6,17 +5,7 @@
6
5
  *
7
6
  * @module
8
7
  */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.MeaningKeywords = void 0;
11
- exports.meaningToString = meaningToString;
12
- exports.parseString = parseString;
13
- exports.parseModuleSource = parseModuleSource;
14
- exports.parseSymbolReference = parseSymbolReference;
15
- exports.parseComponent = parseComponent;
16
- exports.parseComponentPath = parseComponentPath;
17
- exports.parseMeaning = parseMeaning;
18
- exports.parseDeclarationReference = parseDeclarationReference;
19
- exports.MeaningKeywords = [
8
+ export const MeaningKeywords = [
20
9
  "class", // SymbolFlags.Class
21
10
  "interface", // SymbolFlags.Interface
22
11
  "type", // SymbolFlags.TypeAlias
@@ -35,7 +24,7 @@ exports.MeaningKeywords = [
35
24
  "getter",
36
25
  "setter",
37
26
  ];
38
- function meaningToString(meaning) {
27
+ export function meaningToString(meaning) {
39
28
  let result = "";
40
29
  if (meaning.keyword) {
41
30
  result += meaning.keyword;
@@ -144,7 +133,7 @@ function parseUnicodeEscapeSequence(source, pos, end) {
144
133
  // StringCharacter::
145
134
  // SourceCharacter but not one of `"` or `\` or LineTerminator
146
135
  // `\` EscapeSequence
147
- function parseString(source, pos, end) {
136
+ export function parseString(source, pos, end) {
148
137
  let result = "";
149
138
  if (source[pos++] !== '"')
150
139
  return;
@@ -166,7 +155,7 @@ function parseString(source, pos, end) {
166
155
  }
167
156
  }
168
157
  // ModuleSource:: String | ModuleSourceCharacters
169
- function parseModuleSource(source, pos, end) {
158
+ export function parseModuleSource(source, pos, end) {
170
159
  if (pos >= end)
171
160
  return;
172
161
  if (source[pos] === '"') {
@@ -184,7 +173,7 @@ function parseModuleSource(source, pos, end) {
184
173
  // SymbolReference:
185
174
  // ComponentPath Meaning?
186
175
  // Meaning
187
- function parseSymbolReference(source, pos, end) {
176
+ export function parseSymbolReference(source, pos, end) {
188
177
  const path = parseComponentPath(source, pos, end);
189
178
  pos = path?.[1] ?? pos;
190
179
  const meaning = parseMeaning(source, pos, end);
@@ -197,7 +186,7 @@ function parseSymbolReference(source, pos, end) {
197
186
  // String
198
187
  // ComponentCharacters
199
188
  // `[` DeclarationReference `]` <--- THIS ONE IS NOT IMPLEMENTED.
200
- function parseComponent(source, pos, end) {
189
+ export function parseComponent(source, pos, end) {
201
190
  if (pos < end && source[pos] === '"') {
202
191
  return parseString(source, pos, end);
203
192
  }
@@ -219,7 +208,7 @@ function parseComponent(source, pos, end) {
219
208
  // ComponentPath `.` Component // Navigate via 'exports' of |ComponentPath|
220
209
  // ComponentPath `#` Component // Navigate via 'members' of |ComponentPath|
221
210
  // ComponentPath `~` Component // Navigate via 'locals' of |ComponentPath|
222
- function parseComponentPath(source, pos, end) {
211
+ export function parseComponentPath(source, pos, end) {
223
212
  const components = [];
224
213
  let component = parseComponent(source, pos, end);
225
214
  if (!component)
@@ -249,10 +238,10 @@ function parseComponentPath(source, pos, end) {
249
238
  //
250
239
  // UserLabel:
251
240
  // UserLabelStart UserLabelCharacter*
252
- function parseMeaning(source, pos, end) {
241
+ export function parseMeaning(source, pos, end) {
253
242
  if (source[pos++] !== ":")
254
243
  return;
255
- const keyword = exports.MeaningKeywords.find((kw) => pos + kw.length <= end && source.startsWith(kw, pos));
244
+ const keyword = MeaningKeywords.find((kw) => pos + kw.length <= end && source.startsWith(kw, pos));
256
245
  if (keyword) {
257
246
  pos += keyword.length;
258
247
  }
@@ -307,7 +296,7 @@ function parseMeaning(source, pos, end) {
307
296
  // ModuleSource `!` SymbolReference // Reference to an export of a module
308
297
  // ModuleSource `!` `~` SymbolReference // Reference to a local of a module
309
298
  // `!` SymbolReference // Reference to global symbol
310
- function parseDeclarationReference(source, pos, end) {
299
+ export function parseDeclarationReference(source, pos, end) {
311
300
  let moduleSource;
312
301
  let symbolReference;
313
302
  let resolutionStart = "local";
@@ -1,3 +1,3 @@
1
- import { type Reflection } from "../../models";
2
- import type { DeclarationReference } from "./declarationReference";
1
+ import { type Reflection } from "../../models/index.js";
2
+ import type { DeclarationReference } from "./declarationReference.js";
3
3
  export declare function resolveDeclarationReference(reflection: Reflection, ref: DeclarationReference): Reflection | undefined;
@@ -1,55 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveDeclarationReference = resolveDeclarationReference;
4
- const assert_1 = require("assert");
5
- const models_1 = require("../../models");
6
- const utils_1 = require("../../utils");
1
+ import { ok } from "assert";
2
+ import { ContainerReflection, DeclarationReflection, ReferenceReflection, ReflectionKind, } from "../../models/index.js";
3
+ import { assertNever, filterMap } from "../../utils/index.js";
7
4
  function resolveReferenceReflection(ref) {
8
- if (ref instanceof models_1.ReferenceReflection) {
5
+ if (ref instanceof ReferenceReflection) {
9
6
  return ref.getTargetReflectionDeep();
10
7
  }
11
8
  return ref;
12
9
  }
13
- function resolveDeclarationReference(reflection, ref) {
10
+ export function resolveDeclarationReference(reflection, ref) {
14
11
  let high = [];
15
12
  let low = [];
16
13
  if (ref.moduleSource) {
17
14
  high =
18
- reflection.project.children?.filter((c) => c.kindOf(models_1.ReflectionKind.SomeModule) &&
15
+ reflection.project.children?.filter((c) => c.kindOf(ReflectionKind.SomeModule) &&
19
16
  c.name === ref.moduleSource) || [];
20
17
  }
21
18
  else if (ref.resolutionStart === "global") {
22
19
  high.push(reflection.project);
20
+ if (reflection.project.children?.length === 1) {
21
+ high.push(reflection.project.children[0]);
22
+ }
23
23
  }
24
24
  else {
25
25
  // Work around no-unnecessary-condition, should be unnecessary... want a trap if it ever becomes false.
26
- (0, assert_1.ok)(ref.resolutionStart.startsWith("local") &&
26
+ ok(ref.resolutionStart.startsWith("local") &&
27
27
  ref.resolutionStart.length === 5);
28
28
  // TypeScript's behavior is to first try to resolve links via variable scope, and then
29
29
  // if the link still hasn't been found, check either siblings (if comment belongs to a member)
30
30
  // or otherwise children.
31
31
  let refl = reflection;
32
- if (refl.kindOf(models_1.ReflectionKind.ExportContainer)) {
32
+ if (refl.kindOf(ReflectionKind.ExportContainer)) {
33
33
  high.push(refl);
34
34
  }
35
35
  while (refl.parent) {
36
36
  refl = refl.parent;
37
- if (refl.kindOf(models_1.ReflectionKind.ExportContainer)) {
37
+ if (refl.kindOf(ReflectionKind.ExportContainer)) {
38
38
  high.push(refl);
39
39
  }
40
40
  else {
41
41
  low.push(refl);
42
42
  }
43
+ if (refl.kindOf(ReflectionKind.Project) &&
44
+ refl.children?.length === 1) {
45
+ high.push(refl.children[0]);
46
+ }
43
47
  }
44
- if (reflection.kindOf(models_1.ReflectionKind.SomeMember)) {
48
+ if (reflection.kindOf(ReflectionKind.SomeMember)) {
45
49
  high.push(reflection.parent);
46
50
  }
47
- else if (reflection.kindOf(models_1.ReflectionKind.SomeSignature) &&
48
- reflection.parent.kindOf(models_1.ReflectionKind.SomeMember)) {
51
+ else if (reflection.kindOf(ReflectionKind.SomeSignature) &&
52
+ reflection.parent.kindOf(ReflectionKind.SomeMember)) {
49
53
  high.push(reflection.parent.parent);
50
54
  }
51
55
  else if (high[0] !== reflection) {
52
- if (reflection.parent instanceof models_1.ContainerReflection) {
56
+ if (reflection.parent instanceof ContainerReflection) {
53
57
  high.push(...(reflection.parent.childrenIncludingDocuments?.filter((c) => c.name === reflection.name) || []));
54
58
  }
55
59
  else {
@@ -82,7 +86,7 @@ function resolveDeclarationReference(reflection, ref) {
82
86
  return high[0] || low[0];
83
87
  }
84
88
  function filterMapByMeaning(reflections, meaning) {
85
- return (0, utils_1.filterMap)(reflections, (refl) => {
89
+ return filterMap(reflections, (refl) => {
86
90
  const kwResolved = resolveKeyword(refl, meaning.keyword) || [];
87
91
  if (meaning.label) {
88
92
  return kwResolved.find((r) => r.comment?.label === meaning.label);
@@ -93,48 +97,48 @@ function filterMapByMeaning(reflections, meaning) {
93
97
  function resolveKeyword(refl, kw) {
94
98
  switch (kw) {
95
99
  case undefined:
96
- return refl instanceof models_1.DeclarationReflection && refl.signatures
100
+ return refl instanceof DeclarationReflection && refl.signatures
97
101
  ? refl.signatures
98
102
  : [refl];
99
103
  case "class":
100
- if (refl.kindOf(models_1.ReflectionKind.Class))
104
+ if (refl.kindOf(ReflectionKind.Class))
101
105
  return [refl];
102
106
  break;
103
107
  case "interface":
104
- if (refl.kindOf(models_1.ReflectionKind.Interface))
108
+ if (refl.kindOf(ReflectionKind.Interface))
105
109
  return [refl];
106
110
  break;
107
111
  case "type":
108
- if (refl.kindOf(models_1.ReflectionKind.SomeType))
112
+ if (refl.kindOf(ReflectionKind.SomeType))
109
113
  return [refl];
110
114
  break;
111
115
  case "enum":
112
- if (refl.kindOf(models_1.ReflectionKind.Enum))
116
+ if (refl.kindOf(ReflectionKind.Enum))
113
117
  return [refl];
114
118
  break;
115
119
  case "namespace":
116
- if (refl.kindOf(models_1.ReflectionKind.SomeModule))
120
+ if (refl.kindOf(ReflectionKind.SomeModule))
117
121
  return [refl];
118
122
  break;
119
123
  case "function":
120
- if (refl.kindOf(models_1.ReflectionKind.FunctionOrMethod)) {
124
+ if (refl.kindOf(ReflectionKind.FunctionOrMethod)) {
121
125
  return refl.signatures;
122
126
  }
123
127
  break;
124
128
  case "var":
125
- if (refl.kindOf(models_1.ReflectionKind.Variable))
129
+ if (refl.kindOf(ReflectionKind.Variable))
126
130
  return [refl];
127
131
  break;
128
132
  case "new":
129
133
  case "constructor":
130
- if (refl.kindOf(models_1.ReflectionKind.ClassOrInterface |
131
- models_1.ReflectionKind.TypeLiteral)) {
132
- const ctor = refl.children?.find((c) => c.kindOf(models_1.ReflectionKind.Constructor));
134
+ if (refl.kindOf(ReflectionKind.ClassOrInterface |
135
+ ReflectionKind.TypeLiteral)) {
136
+ const ctor = refl.children?.find((c) => c.kindOf(ReflectionKind.Constructor));
133
137
  return ctor.signatures;
134
138
  }
135
139
  break;
136
140
  case "member":
137
- if (refl.kindOf(models_1.ReflectionKind.SomeMember))
141
+ if (refl.kindOf(ReflectionKind.SomeMember))
138
142
  return [refl];
139
143
  break;
140
144
  case "event":
@@ -150,7 +154,7 @@ function resolveKeyword(refl, kw) {
150
154
  }
151
155
  break;
152
156
  case "complex":
153
- if (refl.kindOf(models_1.ReflectionKind.SomeType))
157
+ if (refl.kindOf(ReflectionKind.SomeType))
154
158
  return [refl];
155
159
  break;
156
160
  case "getter":
@@ -164,13 +168,13 @@ function resolveKeyword(refl, kw) {
164
168
  }
165
169
  break;
166
170
  default:
167
- (0, utils_1.assertNever)(kw);
171
+ assertNever(kw);
168
172
  }
169
173
  }
170
174
  function resolveSymbolReferencePart(refl, path) {
171
175
  let high = [];
172
176
  let low = [];
173
- if (!(refl instanceof models_1.ContainerReflection) ||
177
+ if (!(refl instanceof ContainerReflection) ||
174
178
  !refl.childrenIncludingDocuments) {
175
179
  return { high, low };
176
180
  }
@@ -181,9 +185,9 @@ function resolveSymbolReferencePart(refl, path) {
181
185
  // Also is more consistent with how TypeScript resolves link tags.
182
186
  case ".":
183
187
  high = refl.childrenIncludingDocuments.filter((r) => r.name === path.path &&
184
- (r.kindOf(models_1.ReflectionKind.SomeExport) || r.flags.isStatic));
188
+ (r.kindOf(ReflectionKind.SomeExport) || r.flags.isStatic));
185
189
  low = refl.childrenIncludingDocuments.filter((r) => r.name === path.path &&
186
- (!r.kindOf(models_1.ReflectionKind.SomeExport) || !r.flags.isStatic));
190
+ (!r.kindOf(ReflectionKind.SomeExport) || !r.flags.isStatic));
187
191
  break;
188
192
  // Resolve via "members", interface children, class instance properties/accessors/methods,
189
193
  // enum members, type literal properties
@@ -191,14 +195,14 @@ function resolveSymbolReferencePart(refl, path) {
191
195
  high =
192
196
  refl.children?.filter((r) => {
193
197
  return (r.name === path.path &&
194
- r.kindOf(models_1.ReflectionKind.SomeMember) &&
198
+ r.kindOf(ReflectionKind.SomeMember) &&
195
199
  !r.flags.isStatic);
196
200
  }) || [];
197
201
  break;
198
202
  // Resolve via "locals"... treat this as a stricter `.` which only supports traversing
199
203
  // module/namespace exports since TypeDoc doesn't support documenting locals.
200
204
  case "~":
201
- if (refl.kindOf(models_1.ReflectionKind.SomeModule | models_1.ReflectionKind.Project)) {
205
+ if (refl.kindOf(ReflectionKind.SomeModule | ReflectionKind.Project)) {
202
206
  high = refl.children?.filter((r) => r.name === path.path) || [];
203
207
  }
204
208
  break;
@@ -1,7 +1,7 @@
1
1
  import ts from "typescript";
2
- import { ReflectionKind } from "../../models";
3
- import { type Logger } from "../../utils";
4
- import { CommentStyle } from "../../utils/options/declaration";
2
+ import { ReflectionKind } from "../../models/index.js";
3
+ import { type Logger } from "../../utils/index.js";
4
+ import { CommentStyle } from "../../utils/options/declaration.js";
5
5
  export interface DiscoveredComment {
6
6
  file: ts.SourceFile;
7
7
  ranges: ts.CommentRange[];
@@ -10,5 +10,5 @@ export interface DiscoveredComment {
10
10
  }
11
11
  export declare function discoverFileComments(node: ts.SourceFile, commentStyle: CommentStyle): DiscoveredComment[];
12
12
  export declare function discoverNodeComment(node: ts.Node, commentStyle: CommentStyle): DiscoveredComment | undefined;
13
- export declare function discoverComment(symbol: ts.Symbol, kind: ReflectionKind, logger: Logger, commentStyle: CommentStyle, checker: ts.TypeChecker): DiscoveredComment | undefined;
13
+ export declare function discoverComment(symbol: ts.Symbol, kind: ReflectionKind, logger: Logger, commentStyle: CommentStyle, checker: ts.TypeChecker, declarationWarnings: boolean): DiscoveredComment | undefined;
14
14
  export declare function discoverSignatureComment(declaration: ts.SignatureDeclaration | ts.JSDocSignature, checker: ts.TypeChecker, commentStyle: CommentStyle): DiscoveredComment | undefined;