typedoc 0.26.11 → 0.27.0-beta.0

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 (335) 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 +210 -238
  40. package/dist/lib/converter/factories/index-signature.d.ts +1 -1
  41. package/dist/lib/converter/factories/index-signature.js +11 -17
  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 +366 -2
  89. package/dist/lib/internationalization/locales/en.d.cts +339 -2
  90. package/dist/lib/internationalization/locales/jp.cjs +8 -11
  91. package/dist/lib/internationalization/locales/jp.d.cts +310 -1
  92. package/dist/lib/internationalization/locales/ko.cjs +7 -9
  93. package/dist/lib/internationalization/locales/ko.d.cts +223 -1
  94. package/dist/lib/internationalization/locales/zh.cjs +7 -10
  95. package/dist/lib/internationalization/locales/zh.d.cts +381 -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 +26 -13
  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 +619 -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 +13 -0
  154. package/dist/lib/output/output.js +72 -0
  155. package/dist/lib/output/plugins/AssetsPlugin.d.ts +7 -8
  156. package/dist/lib/output/plugins/AssetsPlugin.js +62 -80
  157. package/dist/lib/output/plugins/IconsPlugin.d.ts +3 -2
  158. package/dist/lib/output/plugins/IconsPlugin.js +28 -84
  159. package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +9 -2
  160. package/dist/lib/output/plugins/JavascriptIndexPlugin.js +90 -96
  161. package/dist/lib/output/plugins/NavigationPlugin.d.ts +3 -2
  162. package/dist/lib/output/plugins/NavigationPlugin.js +22 -102
  163. package/dist/lib/output/plugins/SitemapPlugin.d.ts +3 -2
  164. package/dist/lib/output/plugins/SitemapPlugin.js +60 -120
  165. package/dist/lib/output/plugins/index.d.ts +6 -6
  166. package/dist/lib/output/plugins/index.js +6 -15
  167. package/dist/lib/output/renderer.d.ts +14 -13
  168. package/dist/lib/output/renderer.js +129 -185
  169. package/dist/lib/output/theme.d.ts +9 -5
  170. package/dist/lib/output/theme.js +14 -62
  171. package/dist/lib/output/themes/MarkedPlugin.d.ts +8 -9
  172. package/dist/lib/output/themes/MarkedPlugin.js +152 -117
  173. package/dist/lib/output/themes/default/DefaultTheme.d.ts +17 -29
  174. package/dist/lib/output/themes/default/DefaultTheme.js +334 -310
  175. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +63 -48
  176. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +119 -95
  177. package/dist/lib/output/themes/default/Slugger.d.ts +13 -0
  178. package/dist/lib/output/themes/default/Slugger.js +46 -0
  179. package/dist/lib/output/themes/default/layouts/default.d.ts +5 -5
  180. package/dist/lib/output/themes/default/layouts/default.js +47 -36
  181. package/dist/lib/output/themes/default/partials/anchor-icon.d.ts +2 -2
  182. package/dist/lib/output/themes/default/partials/anchor-icon.js +4 -7
  183. package/dist/lib/output/themes/default/partials/breadcrumb.d.ts +3 -3
  184. package/dist/lib/output/themes/default/partials/breadcrumb.js +4 -8
  185. package/dist/lib/output/themes/default/partials/comment.d.ts +6 -4
  186. package/dist/lib/output/themes/default/partials/comment.js +52 -29
  187. package/dist/lib/output/themes/default/partials/footer.d.ts +2 -2
  188. package/dist/lib/output/themes/default/partials/footer.js +11 -14
  189. package/dist/lib/output/themes/default/partials/header.d.ts +4 -4
  190. package/dist/lib/output/themes/default/partials/header.js +9 -13
  191. package/dist/lib/output/themes/default/partials/hierarchy.d.ts +3 -3
  192. package/dist/lib/output/themes/default/partials/hierarchy.js +9 -12
  193. package/dist/lib/output/themes/default/partials/icon.d.ts +4 -4
  194. package/dist/lib/output/themes/default/partials/icon.js +78 -73
  195. package/dist/lib/output/themes/default/partials/index.d.ts +3 -3
  196. package/dist/lib/output/themes/default/partials/index.js +19 -22
  197. package/dist/lib/output/themes/default/partials/member.d.ts +3 -3
  198. package/dist/lib/output/themes/default/partials/member.declaration.d.ts +3 -3
  199. package/dist/lib/output/themes/default/partials/member.declaration.js +18 -61
  200. package/dist/lib/output/themes/default/partials/member.getterSetter.d.ts +3 -3
  201. package/dist/lib/output/themes/default/partials/member.getterSetter.js +10 -26
  202. package/dist/lib/output/themes/default/partials/member.js +19 -24
  203. package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +3 -3
  204. package/dist/lib/output/themes/default/partials/member.signature.body.js +17 -21
  205. package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +4 -7
  206. package/dist/lib/output/themes/default/partials/member.signature.title.js +8 -35
  207. package/dist/lib/output/themes/default/partials/member.signatures.d.ts +3 -3
  208. package/dist/lib/output/themes/default/partials/member.signatures.js +9 -13
  209. package/dist/lib/output/themes/default/partials/member.sources.d.ts +3 -3
  210. package/dist/lib/output/themes/default/partials/member.sources.js +13 -17
  211. package/dist/lib/output/themes/default/partials/members.d.ts +3 -3
  212. package/dist/lib/output/themes/default/partials/members.js +10 -42
  213. package/dist/lib/output/themes/default/partials/moduleReflection.d.ts +5 -0
  214. package/dist/lib/output/themes/default/partials/moduleReflection.js +62 -0
  215. package/dist/lib/output/themes/default/partials/navigation.d.ts +4 -4
  216. package/dist/lib/output/themes/default/partials/navigation.js +51 -62
  217. package/dist/lib/output/themes/default/partials/reflectionPreview.d.ts +3 -3
  218. package/dist/lib/output/themes/default/partials/reflectionPreview.js +12 -15
  219. package/dist/lib/output/themes/default/partials/toolbar.d.ts +4 -4
  220. package/dist/lib/output/themes/default/partials/toolbar.js +16 -20
  221. package/dist/lib/output/themes/default/partials/type.d.ts +4 -6
  222. package/dist/lib/output/themes/default/partials/type.js +8 -388
  223. package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +3 -3
  224. package/dist/lib/output/themes/default/partials/typeAndParent.js +11 -15
  225. package/dist/lib/output/themes/default/partials/typeDetails.d.ts +8 -0
  226. package/dist/lib/output/themes/default/partials/typeDetails.js +221 -0
  227. package/dist/lib/output/themes/default/partials/typeParameters.d.ts +3 -3
  228. package/dist/lib/output/themes/default/partials/typeParameters.js +14 -17
  229. package/dist/lib/output/themes/default/templates/document.d.ts +4 -4
  230. package/dist/lib/output/themes/default/templates/document.js +3 -7
  231. package/dist/lib/output/themes/default/templates/hierarchy.d.ts +4 -4
  232. package/dist/lib/output/themes/default/templates/hierarchy.js +10 -13
  233. package/dist/lib/output/themes/default/templates/index.d.ts +4 -4
  234. package/dist/lib/output/themes/default/templates/index.js +3 -7
  235. package/dist/lib/output/themes/default/templates/reflection.d.ts +4 -4
  236. package/dist/lib/output/themes/default/templates/reflection.js +31 -34
  237. package/dist/lib/output/themes/lib.d.ts +17 -3
  238. package/dist/lib/output/themes/lib.js +110 -49
  239. package/dist/lib/serialization/components.d.ts +2 -5
  240. package/dist/lib/serialization/components.js +1 -2
  241. package/dist/lib/serialization/deserializer.d.ts +21 -7
  242. package/dist/lib/serialization/deserializer.js +138 -123
  243. package/dist/lib/serialization/events.d.ts +2 -2
  244. package/dist/lib/serialization/events.js +6 -5
  245. package/dist/lib/serialization/index.d.ts +5 -5
  246. package/dist/lib/serialization/index.js +4 -33
  247. package/dist/lib/serialization/schema.d.ts +8 -2
  248. package/dist/lib/serialization/schema.js +2 -2
  249. package/dist/lib/serialization/serializer.d.ts +11 -5
  250. package/dist/lib/serialization/serializer.js +32 -25
  251. package/dist/lib/utils/array.d.ts +3 -0
  252. package/dist/lib/utils/array.js +26 -27
  253. package/dist/lib/utils/component.d.ts +2 -44
  254. package/dist/lib/utils/component.js +10 -102
  255. package/dist/lib/utils/entry-point.d.ts +3 -4
  256. package/dist/lib/utils/entry-point.js +114 -85
  257. package/dist/lib/utils/enum.js +6 -14
  258. package/dist/lib/utils/events.js +6 -12
  259. package/dist/lib/utils/fs.js +50 -91
  260. package/dist/lib/utils/general.d.ts +2 -1
  261. package/dist/lib/utils/general.js +50 -40
  262. package/dist/lib/utils/highlighter.js +30 -57
  263. package/dist/lib/utils/hooks.js +7 -13
  264. package/dist/lib/utils/html-entities.d.ts +8926 -0
  265. package/dist/lib/utils/html-entities.js +2329 -0
  266. package/dist/lib/utils/html.d.ts +8 -0
  267. package/dist/lib/utils/html.js +81 -34
  268. package/dist/lib/utils/index.d.ts +22 -22
  269. package/dist/lib/utils/index.js +20 -91
  270. package/dist/lib/utils/jsx.d.ts +12 -5
  271. package/dist/lib/utils/jsx.elements.js +1 -4
  272. package/dist/lib/utils/jsx.js +53 -20
  273. package/dist/lib/utils/loggers.d.ts +3 -3
  274. package/dist/lib/utils/loggers.js +36 -46
  275. package/dist/lib/utils/map.js +6 -13
  276. package/dist/lib/utils/minimalSourceFile.js +5 -7
  277. package/dist/lib/utils/options/declaration.d.ts +33 -7
  278. package/dist/lib/utils/options/declaration.js +20 -22
  279. package/dist/lib/utils/options/defaults.d.ts +3 -2
  280. package/dist/lib/utils/options/defaults.js +18 -38
  281. package/dist/lib/utils/options/help.d.ts +2 -2
  282. package/dist/lib/utils/options/help.js +7 -10
  283. package/dist/lib/utils/options/index.d.ts +6 -6
  284. package/dist/lib/utils/options/index.js +4 -18
  285. package/dist/lib/utils/options/options.d.ts +8 -5
  286. package/dist/lib/utils/options/options.js +47 -71
  287. package/dist/lib/utils/options/readers/arguments.d.ts +2 -2
  288. package/dist/lib/utils/options/readers/arguments.js +15 -17
  289. package/dist/lib/utils/options/readers/index.d.ts +4 -4
  290. package/dist/lib/utils/options/readers/index.js +4 -11
  291. package/dist/lib/utils/options/readers/package-json.d.ts +3 -3
  292. package/dist/lib/utils/options/readers/package-json.js +15 -21
  293. package/dist/lib/utils/options/readers/tsconfig.d.ts +2 -2
  294. package/dist/lib/utils/options/readers/tsconfig.js +54 -63
  295. package/dist/lib/utils/options/readers/typedoc.d.ts +3 -3
  296. package/dist/lib/utils/options/readers/typedoc.js +44 -76
  297. package/dist/lib/utils/options/sources/index.d.ts +1 -1
  298. package/dist/lib/utils/options/sources/index.js +1 -5
  299. package/dist/lib/utils/options/sources/typedoc.d.ts +1 -1
  300. package/dist/lib/utils/options/sources/typedoc.js +220 -196
  301. package/dist/lib/utils/options/tsdoc-defaults.d.ts +3 -3
  302. package/dist/lib/utils/options/tsdoc-defaults.js +16 -12
  303. package/dist/lib/utils/package-manifest.d.ts +1 -1
  304. package/dist/lib/utils/package-manifest.js +15 -19
  305. package/dist/lib/utils/paths.js +9 -15
  306. package/dist/lib/utils/perf.js +6 -11
  307. package/dist/lib/utils/plugins.d.ts +1 -1
  308. package/dist/lib/utils/plugins.js +7 -10
  309. package/dist/lib/utils/reflections.d.ts +1 -1
  310. package/dist/lib/utils/reflections.js +9 -12
  311. package/dist/lib/utils/set.js +2 -6
  312. package/dist/lib/utils/sort.d.ts +3 -3
  313. package/dist/lib/utils/sort.js +20 -24
  314. package/dist/lib/utils/tsconfig.d.ts +1 -1
  315. package/dist/lib/utils/tsconfig.js +13 -21
  316. package/dist/lib/utils/tsutils.d.ts +1 -1
  317. package/dist/lib/utils/tsutils.js +3 -30
  318. package/dist/lib/utils/validation.js +6 -12
  319. package/dist/lib/validation/documentation.d.ts +2 -2
  320. package/dist/lib/validation/documentation.js +26 -29
  321. package/dist/lib/validation/exports.d.ts +2 -2
  322. package/dist/lib/validation/exports.js +9 -11
  323. package/dist/lib/validation/links.d.ts +2 -2
  324. package/dist/lib/validation/links.js +4 -7
  325. package/dist/lib/validation/unusedMergeModuleWith.d.ts +3 -0
  326. package/dist/lib/validation/unusedMergeModuleWith.js +11 -0
  327. package/package.json +14 -11
  328. package/static/main.js +4 -4
  329. package/static/style.css +91 -2
  330. package/tsdoc.json +30 -0
  331. package/dist/lib/output/themes/default/partials/member.reference.d.ts +0 -4
  332. package/dist/lib/output/themes/default/partials/member.reference.js +0 -30
  333. package/dist/lib/output/themes/default/partials/parameter.d.ts +0 -4
  334. package/dist/lib/output/themes/default/partials/parameter.js +0 -79
  335. package/dist/lib/utils/html-entities.json +0 -2326
@@ -1,9 +1,9 @@
1
1
  import type * as ts from "typescript";
2
- import type { NeverIfInternal } from "..";
3
- import type { Application } from "../../..";
4
- import type { Logger } from "../loggers";
5
- import { type DeclarationOption, type KeyToDeclaration, type TypeDocOptionMap, type TypeDocOptions, type TypeDocOptionValues } from "./declaration";
6
- import type { TranslationProxy } from "../../internationalization/internationalization";
2
+ import type { NeverIfInternal } from "../index.js";
3
+ import type { Application } from "../../../index.js";
4
+ import type { Logger } from "../loggers.js";
5
+ import { type DeclarationOption, type KeyToDeclaration, type TypeDocOptionMap, type TypeDocOptions, type TypeDocOptionValues } from "./declaration.js";
6
+ import type { TranslationProxy } from "../../internationalization/internationalization.js";
7
7
  /**
8
8
  * Describes an option reader that discovers user configuration and converts it to the
9
9
  * TypeDoc format.
@@ -60,6 +60,9 @@ export interface OptionsReader {
60
60
  * 3. tsconfig-json (200) - Last config file reader, cannot specify the typedoc.json file to read.
61
61
  * 4. argv (300) - Read argv again since any options set there should override those set in config
62
62
  * files.
63
+ *
64
+ * @group Common
65
+ * @summary Contains all of TypeDoc's option declarations & values
63
66
  */
64
67
  export declare class Options {
65
68
  private _readers;
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Options = void 0;
4
- exports.Option = Option;
5
- const declaration_1 = require("./declaration");
6
- const map_1 = require("../map");
7
- const array_1 = require("../array");
8
- const declaration_2 = require("./declaration");
9
- const sources_1 = require("./sources");
10
- const help_1 = require("./help");
1
+ import { resolve } from "path";
2
+ import { ParameterType } from "./declaration.js";
3
+ import { insertOrderSorted, unique } from "../array.js";
4
+ import { convert, getDefaultValue, } from "./declaration.js";
5
+ import { addTypeDocOptions } from "./sources/index.js";
6
+ import { getOptionsHelp } from "./help.js";
7
+ import { getSimilarValues } from "../general.js";
11
8
  const optionSnapshots = new WeakMap();
12
9
  /**
13
10
  * Maintains a collection of option declarations split into TypeDoc options
@@ -28,18 +25,26 @@ const optionSnapshots = new WeakMap();
28
25
  * 3. tsconfig-json (200) - Last config file reader, cannot specify the typedoc.json file to read.
29
26
  * 4. argv (300) - Read argv again since any options set there should override those set in config
30
27
  * files.
28
+ *
29
+ * @group Common
30
+ * @summary Contains all of TypeDoc's option declarations & values
31
31
  */
32
- class Options {
32
+ export class Options {
33
+ _readers = [];
34
+ _declarations = new Map();
35
+ _values = {};
36
+ _setOptions = new Set();
37
+ _compilerOptions = {};
38
+ _fileNames = [];
39
+ _projectReferences = [];
40
+ _i18n;
41
+ /**
42
+ * In packages mode, the directory of the package being converted.
43
+ */
44
+ packageDir;
33
45
  constructor(i18n) {
34
- this._readers = [];
35
- this._declarations = new Map();
36
- this._values = {};
37
- this._setOptions = new Set();
38
- this._compilerOptions = {};
39
- this._fileNames = [];
40
- this._projectReferences = [];
41
46
  this._i18n = i18n;
42
- (0, sources_1.addTypeDocOptions)(this);
47
+ addTypeDocOptions(this);
43
48
  }
44
49
  /**
45
50
  * Clones the options, intended for use in packages mode.
@@ -94,12 +99,12 @@ class Options {
94
99
  if (!declaration) {
95
100
  throw new Error(`Cannot reset an option (${name}) which has not been declared.`);
96
101
  }
97
- this._values[declaration.name] = (0, declaration_2.getDefaultValue)(declaration);
102
+ this._values[declaration.name] = getDefaultValue(declaration);
98
103
  this._setOptions.delete(declaration.name);
99
104
  }
100
105
  else {
101
106
  for (const declaration of this.getDeclarations()) {
102
- this._values[declaration.name] = (0, declaration_2.getDefaultValue)(declaration);
107
+ this._values[declaration.name] = getDefaultValue(declaration);
103
108
  }
104
109
  this._setOptions.clear();
105
110
  this._compilerOptions = {};
@@ -112,7 +117,7 @@ class Options {
112
117
  * @param reader
113
118
  */
114
119
  addReader(reader) {
115
- (0, array_1.insertOrderSorted)(this._readers, reader);
120
+ insertOrderSorted(this._readers, reader);
116
121
  }
117
122
  async read(logger, cwd = process.cwd()) {
118
123
  for (const reader of this._readers) {
@@ -127,7 +132,7 @@ class Options {
127
132
  else {
128
133
  this._declarations.set(declaration.name, declaration);
129
134
  }
130
- this._values[declaration.name] = (0, declaration_2.getDefaultValue)(declaration);
135
+ this._values[declaration.name] = getDefaultValue(declaration);
131
136
  }
132
137
  /**
133
138
  * Gets a declaration by one of its names.
@@ -140,7 +145,7 @@ class Options {
140
145
  * Gets all declared options.
141
146
  */
142
147
  getDeclarations() {
143
- return (0, array_1.unique)(this._declarations.values());
148
+ return unique(this._declarations.values());
144
149
  }
145
150
  isSet(name) {
146
151
  if (!this._declarations.has(name)) {
@@ -172,12 +177,23 @@ class Options {
172
177
  throw new Error(this._i18n.unknown_option_0_you_may_have_meant_1(name, nearNames.join("\n\t")));
173
178
  }
174
179
  let oldValue = this._values[declaration.name];
175
- if (typeof oldValue === "undefined")
176
- oldValue = (0, declaration_2.getDefaultValue)(declaration);
177
- const converted = (0, declaration_2.convert)(value, declaration, this._i18n, configPath ?? process.cwd(), oldValue);
178
- if (declaration.type === declaration_1.ParameterType.Flags) {
180
+ if (typeof oldValue === "undefined") {
181
+ oldValue = getDefaultValue(declaration);
182
+ }
183
+ const converted = convert(value, declaration, this._i18n, configPath ?? process.cwd(), oldValue);
184
+ if (declaration.type === ParameterType.Flags) {
179
185
  this._values[declaration.name] = Object.assign({}, this._values[declaration.name], converted);
180
186
  }
187
+ else if (declaration.name === "outputs") {
188
+ // This is very unfortunate... there's probably some smarter way to define options
189
+ // so that this can be done intelligently via the convert function.
190
+ this._values[declaration.name] = converted.map((c) => {
191
+ return {
192
+ ...c,
193
+ path: resolve(configPath ?? process.cwd(), c.path),
194
+ };
195
+ });
196
+ }
181
197
  else {
182
198
  this._values[declaration.name] = converted;
183
199
  }
@@ -237,33 +253,21 @@ class Options {
237
253
  * Discover similar option names to the given name, for use in error reporting.
238
254
  */
239
255
  getSimilarOptions(missingName) {
240
- const results = new map_1.DefaultMap(() => []);
241
- let lowest = Infinity;
242
- for (const name of this._declarations.keys()) {
243
- const distance = editDistance(missingName, name);
244
- lowest = Math.min(lowest, distance);
245
- results.get(distance).push(name);
246
- }
247
- // Experimenting a bit, it seems an edit distance of 3 is roughly the
248
- // right metric for relevant "similar" results without showing obviously wrong suggestions
249
- return results
250
- .get(lowest)
251
- .concat(results.get(lowest + 1), results.get(lowest + 2));
256
+ return getSimilarValues(this._declarations.keys(), missingName);
252
257
  }
253
258
  /**
254
259
  * Get the help message to be displayed to the user if `--help` is passed.
255
260
  */
256
261
  getHelp(i18n) {
257
- return (0, help_1.getOptionsHelp)(this, i18n);
262
+ return getOptionsHelp(this, i18n);
258
263
  }
259
264
  }
260
- exports.Options = Options;
261
265
  /**
262
266
  * Binds an option to an accessor. Does not register the option.
263
267
  *
264
268
  * Note: This is a standard ES decorator. It will not work with pre-TS 5.0 experimental decorators enabled.
265
269
  */
266
- function Option(name) {
270
+ export function Option(name) {
267
271
  return (_, _context) => {
268
272
  return {
269
273
  get() {
@@ -276,31 +280,3 @@ function Option(name) {
276
280
  };
277
281
  };
278
282
  }
279
- // Based on https://en.wikipedia.org/wiki/Levenshtein_distance#Iterative_with_two_matrix_rows
280
- // Slightly modified for improved match results for options
281
- function editDistance(s, t) {
282
- if (s.length < t.length)
283
- return editDistance(t, s);
284
- let v0 = Array.from({ length: t.length + 1 }, (_, i) => i);
285
- let v1 = Array.from({ length: t.length + 1 }, () => 0);
286
- for (let i = 0; i < s.length; i++) {
287
- v1[0] = i + 1;
288
- for (let j = 0; j < s.length; j++) {
289
- const deletionCost = v0[j + 1] + 1;
290
- const insertionCost = v1[j] + 1;
291
- let substitutionCost;
292
- if (s[i] === t[j]) {
293
- substitutionCost = v0[j];
294
- }
295
- else if (s[i]?.toUpperCase() === t[j]?.toUpperCase()) {
296
- substitutionCost = v0[j] + 1;
297
- }
298
- else {
299
- substitutionCost = v0[j] + 3;
300
- }
301
- v1[j + 1] = Math.min(deletionCost, insertionCost, substitutionCost);
302
- }
303
- [v0, v1] = [v1, v0];
304
- }
305
- return v0[t.length];
306
- }
@@ -1,5 +1,5 @@
1
- import type { OptionsReader, Options } from "..";
2
- import type { Logger } from "../../loggers";
1
+ import type { OptionsReader, Options } from "../index.js";
2
+ import type { Logger } from "../../loggers.js";
3
3
  /**
4
4
  * Obtains option values from command-line arguments
5
5
  */
@@ -1,21 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgumentsReader = void 0;
4
- const assert_1 = require("assert");
5
- const declaration_1 = require("../declaration");
1
+ import { ok } from "assert";
2
+ import { ParameterType } from "../declaration.js";
6
3
  const ARRAY_OPTION_TYPES = new Set([
7
- declaration_1.ParameterType.Array,
8
- declaration_1.ParameterType.PathArray,
9
- declaration_1.ParameterType.ModuleArray,
10
- declaration_1.ParameterType.GlobArray,
4
+ ParameterType.Array,
5
+ ParameterType.PathArray,
6
+ ParameterType.ModuleArray,
7
+ ParameterType.GlobArray,
11
8
  ]);
12
9
  /**
13
10
  * Obtains option values from command-line arguments
14
11
  */
15
- class ArgumentsReader {
12
+ export class ArgumentsReader {
13
+ name = "arguments";
14
+ order;
15
+ supportsPackages = false;
16
+ args;
16
17
  constructor(priority, args = process.argv.slice(2)) {
17
- this.name = "arguments";
18
- this.supportsPackages = false;
19
18
  this.order = priority;
20
19
  this.args = args;
21
20
  }
@@ -29,7 +28,7 @@ class ArgumentsReader {
29
28
  options.setValue(name, value);
30
29
  }
31
30
  catch (err) {
32
- (0, assert_1.ok)(err instanceof Error);
31
+ ok(err instanceof Error);
33
32
  logger.error(err.message);
34
33
  }
35
34
  };
@@ -46,8 +45,8 @@ class ArgumentsReader {
46
45
  if (seen.has(decl.name) && ARRAY_OPTION_TYPES.has(decl.type)) {
47
46
  trySet(decl.name, options.getValue(decl.name).concat(this.args[index]));
48
47
  }
49
- else if (decl.type === declaration_1.ParameterType.Boolean ||
50
- decl.type === declaration_1.ParameterType.Flags) {
48
+ else if (decl.type === ParameterType.Boolean ||
49
+ decl.type === ParameterType.Flags) {
51
50
  const value = String(this.args[index]).toLowerCase();
52
51
  if (value === "true" || value === "false") {
53
52
  trySet(decl.name, value === "true");
@@ -72,7 +71,7 @@ class ArgumentsReader {
72
71
  if (name.includes(".")) {
73
72
  const actualName = name.split(".")[0].replace(/^--?/, "");
74
73
  const decl = options.getDeclaration(actualName);
75
- if (decl && decl.type === declaration_1.ParameterType.Flags) {
74
+ if (decl && decl.type === ParameterType.Flags) {
76
75
  const flagName = name.split(".", 2)[1];
77
76
  const value = String(this.args[index]).toLowerCase();
78
77
  if (value === "true" || value === "false") {
@@ -92,4 +91,3 @@ class ArgumentsReader {
92
91
  }
93
92
  }
94
93
  }
95
- exports.ArgumentsReader = ArgumentsReader;
@@ -1,4 +1,4 @@
1
- export { ArgumentsReader } from "./arguments";
2
- export { PackageJsonReader } from "./package-json";
3
- export { TSConfigReader } from "./tsconfig";
4
- export { TypeDocReader } from "./typedoc";
1
+ export { ArgumentsReader } from "./arguments.js";
2
+ export { PackageJsonReader } from "./package-json.js";
3
+ export { TSConfigReader } from "./tsconfig.js";
4
+ export { TypeDocReader } from "./typedoc.js";
@@ -1,11 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeDocReader = exports.TSConfigReader = exports.PackageJsonReader = exports.ArgumentsReader = void 0;
4
- var arguments_1 = require("./arguments");
5
- Object.defineProperty(exports, "ArgumentsReader", { enumerable: true, get: function () { return arguments_1.ArgumentsReader; } });
6
- var package_json_1 = require("./package-json");
7
- Object.defineProperty(exports, "PackageJsonReader", { enumerable: true, get: function () { return package_json_1.PackageJsonReader; } });
8
- var tsconfig_1 = require("./tsconfig");
9
- Object.defineProperty(exports, "TSConfigReader", { enumerable: true, get: function () { return tsconfig_1.TSConfigReader; } });
10
- var typedoc_1 = require("./typedoc");
11
- Object.defineProperty(exports, "TypeDocReader", { enumerable: true, get: function () { return typedoc_1.TypeDocReader; } });
1
+ export { ArgumentsReader } from "./arguments.js";
2
+ export { PackageJsonReader } from "./package-json.js";
3
+ export { TSConfigReader } from "./tsconfig.js";
4
+ export { TypeDocReader } from "./typedoc.js";
@@ -1,6 +1,6 @@
1
- import type { OptionsReader } from "..";
2
- import type { Logger } from "../../loggers";
3
- import type { Options } from "../options";
1
+ import type { OptionsReader } from "../index.js";
2
+ import type { Logger } from "../../loggers.js";
3
+ import type { Options } from "../options.js";
4
4
  export declare class PackageJsonReader implements OptionsReader {
5
5
  order: number;
6
6
  supportsPackages: boolean;
@@ -1,26 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PackageJsonReader = void 0;
4
- const assert_1 = require("assert");
5
- const paths_1 = require("../../paths");
6
- const fs_1 = require("../../fs");
7
- const path_1 = require("path");
8
- class PackageJsonReader {
9
- constructor() {
10
- // Should run after the TypeDoc config reader but before the TS config
11
- // reader, so that it can still specify a path to a `tsconfig.json` file.
12
- this.order = 150;
13
- this.supportsPackages = true;
14
- this.name = "package-json";
15
- }
1
+ import { ok } from "assert";
2
+ import { nicePath } from "../../paths.js";
3
+ import { discoverPackageJson } from "../../fs.js";
4
+ import { dirname } from "path";
5
+ export class PackageJsonReader {
6
+ // Should run after the TypeDoc config reader but before the TS config
7
+ // reader, so that it can still specify a path to a `tsconfig.json` file.
8
+ order = 150;
9
+ supportsPackages = true;
10
+ name = "package-json";
16
11
  read(container, logger, cwd) {
17
- const result = (0, fs_1.discoverPackageJson)(cwd);
12
+ const result = discoverPackageJson(cwd);
18
13
  if (!result) {
19
14
  return;
20
15
  }
21
16
  const { file, content } = result;
22
17
  if ("typedoc" in content) {
23
- logger.warn(logger.i18n.typedoc_key_in_0_ignored((0, paths_1.nicePath)(file)));
18
+ logger.warn(logger.i18n.typedoc_key_in_0_ignored(nicePath(file)));
24
19
  }
25
20
  const optsKey = "typedocOptions";
26
21
  if (!(optsKey in content)) {
@@ -28,18 +23,17 @@ class PackageJsonReader {
28
23
  }
29
24
  const opts = content[optsKey];
30
25
  if (opts === null || typeof opts !== "object") {
31
- logger.error(logger.i18n.typedoc_options_must_be_object_in_0((0, paths_1.nicePath)(file)));
26
+ logger.error(logger.i18n.typedoc_options_must_be_object_in_0(nicePath(file)));
32
27
  return;
33
28
  }
34
29
  for (const [opt, val] of Object.entries(opts)) {
35
30
  try {
36
- container.setValue(opt, val, (0, path_1.dirname)(file));
31
+ container.setValue(opt, val, dirname(file));
37
32
  }
38
33
  catch (err) {
39
- (0, assert_1.ok)(err instanceof Error);
34
+ ok(err instanceof Error);
40
35
  logger.error(err.message);
41
36
  }
42
37
  }
43
38
  }
44
39
  }
45
- exports.PackageJsonReader = PackageJsonReader;
@@ -1,5 +1,5 @@
1
- import type { Options, OptionsReader } from "../options";
2
- import type { Logger } from "../../loggers";
1
+ import type { Options, OptionsReader } from "../options.js";
2
+ import type { Logger } from "../../loggers.js";
3
3
  export declare class TSConfigReader implements OptionsReader {
4
4
  /**
5
5
  * Note: Runs after the {@link TypeDocReader}.
@@ -1,69 +1,61 @@
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.TSConfigReader = void 0;
7
- const path_1 = require("path");
8
- const typescript_1 = __importDefault(require("typescript"));
9
- const fs_1 = require("../../fs");
10
- const assert_1 = require("assert");
11
- const validation_1 = require("../../validation");
12
- const paths_1 = require("../../paths");
13
- const module_1 = require("module");
14
- const tsdoc_defaults_1 = require("../tsdoc-defaults");
15
- const array_1 = require("../../array");
16
- const tsconfig_1 = require("../../tsconfig");
1
+ import { resolve, join, dirname } from "path";
2
+ import ts from "typescript";
3
+ import { isFile } from "../../fs.js";
4
+ import { ok } from "assert";
5
+ import { additionalProperties, isTagString, optional, validate, } from "../../validation.js";
6
+ import { nicePath, normalizePath } from "../../paths.js";
7
+ import { createRequire } from "module";
8
+ import { tsdocBlockTags, tsdocInlineTags, tsdocModifierTags, } from "../tsdoc-defaults.js";
9
+ import { unique } from "../../array.js";
10
+ import { findTsConfigFile, getTypeDocOptionsFromTsConfig, readTsConfig, } from "../../tsconfig.js";
17
11
  function isSupportForTags(obj) {
18
- return ((0, validation_1.validate)({}, obj) &&
12
+ return (validate({}, obj) &&
19
13
  Object.entries(obj).every(([key, val]) => {
20
14
  return (/^@[a-zA-Z][a-zA-Z0-9]*$/.test(key) && typeof val === "boolean");
21
15
  }));
22
16
  }
23
17
  const tsDocSchema = {
24
- $schema: (0, validation_1.optional)(String),
25
- extends: (0, validation_1.optional)([Array, String]),
26
- noStandardTags: (0, validation_1.optional)(Boolean),
27
- tagDefinitions: (0, validation_1.optional)([
18
+ $schema: optional(String),
19
+ extends: optional([Array, String]),
20
+ noStandardTags: optional(Boolean),
21
+ tagDefinitions: optional([
28
22
  Array,
29
23
  {
30
- tagName: validation_1.isTagString,
24
+ tagName: isTagString,
31
25
  syntaxKind: ["inline", "block", "modifier"],
32
- allowMultiple: (0, validation_1.optional)(Boolean),
33
- [validation_1.additionalProperties]: false,
26
+ allowMultiple: optional(Boolean),
27
+ [additionalProperties]: false,
34
28
  },
35
29
  ]),
36
- supportForTags: (0, validation_1.optional)(isSupportForTags),
30
+ supportForTags: optional(isSupportForTags),
37
31
  // The official parser has code to support for these two, but
38
32
  // the schema doesn't allow them... just silently ignore them for now.
39
- supportedHtmlElements: (0, validation_1.optional)({}),
40
- reportUnsupportedHtmlElements: (0, validation_1.optional)(Boolean),
41
- [validation_1.additionalProperties]: false,
33
+ supportedHtmlElements: optional({}),
34
+ reportUnsupportedHtmlElements: optional(Boolean),
35
+ [additionalProperties]: false,
42
36
  };
43
- class TSConfigReader {
44
- constructor() {
45
- /**
46
- * Note: Runs after the {@link TypeDocReader}.
47
- */
48
- this.order = 200;
49
- this.name = "tsconfig-json";
50
- this.supportsPackages = true;
51
- this.seenTsdocPaths = new Set();
52
- }
37
+ export class TSConfigReader {
38
+ /**
39
+ * Note: Runs after the {@link TypeDocReader}.
40
+ */
41
+ order = 200;
42
+ name = "tsconfig-json";
43
+ supportsPackages = true;
44
+ seenTsdocPaths = new Set();
53
45
  read(container, logger, cwd) {
54
46
  const file = container.getValue("tsconfig") || cwd;
55
- let fileToRead = (0, tsconfig_1.findTsConfigFile)(file);
47
+ let fileToRead = findTsConfigFile(file);
56
48
  if (!fileToRead) {
57
49
  // If the user didn't give us this option, we shouldn't complain about not being able to find it.
58
50
  if (container.isSet("tsconfig")) {
59
- logger.error(logger.i18n.tsconfig_file_0_does_not_exist((0, paths_1.nicePath)(file)));
51
+ logger.error(logger.i18n.tsconfig_file_0_does_not_exist(nicePath(file)));
60
52
  }
61
53
  return;
62
54
  }
63
- fileToRead = (0, paths_1.normalizePath)((0, path_1.resolve)(fileToRead));
64
- logger.verbose(`Reading tsconfig at ${(0, paths_1.nicePath)(fileToRead)}`);
65
- this.addTagsFromTsdocJson(container, logger, (0, path_1.resolve)(fileToRead));
66
- const parsed = (0, tsconfig_1.readTsConfig)(fileToRead, logger);
55
+ fileToRead = normalizePath(resolve(fileToRead));
56
+ logger.verbose(`Reading tsconfig at ${nicePath(fileToRead)}`);
57
+ this.addTagsFromTsdocJson(container, logger, resolve(fileToRead));
58
+ const parsed = readTsConfig(fileToRead, logger);
67
59
  if (!parsed) {
68
60
  return;
69
61
  }
@@ -71,7 +63,7 @@ class TSConfigReader {
71
63
  if (parsed.errors.length) {
72
64
  return;
73
65
  }
74
- const typedocOptions = (0, tsconfig_1.getTypeDocOptionsFromTsConfig)(fileToRead);
66
+ const typedocOptions = getTypeDocOptionsFromTsConfig(fileToRead);
75
67
  if (typedocOptions.options) {
76
68
  logger.error(logger.i18n.tsconfig_file_specifies_options_file());
77
69
  delete typedocOptions.options;
@@ -84,18 +76,18 @@ class TSConfigReader {
84
76
  for (const [key, val] of Object.entries(typedocOptions || {})) {
85
77
  try {
86
78
  // We catch the error, so can ignore the strict type checks
87
- container.setValue(key, val, (0, path_1.join)(fileToRead, ".."));
79
+ container.setValue(key, val, join(fileToRead, ".."));
88
80
  }
89
81
  catch (error) {
90
- (0, assert_1.ok)(error instanceof Error);
82
+ ok(error instanceof Error);
91
83
  logger.error(error.message);
92
84
  }
93
85
  }
94
86
  }
95
87
  addTagsFromTsdocJson(container, logger, tsconfig) {
96
88
  this.seenTsdocPaths.clear();
97
- const tsdoc = (0, path_1.join)((0, path_1.dirname)(tsconfig), "tsdoc.json");
98
- if (!(0, fs_1.isFile)(tsdoc)) {
89
+ const tsdoc = join(dirname(tsconfig), "tsdoc.json");
90
+ if (!isFile(tsdoc)) {
99
91
  return;
100
92
  }
101
93
  const overwritten = ["blockTags", "inlineTags", "modifierTags"].filter((opt) => container.isSet(opt));
@@ -114,9 +106,9 @@ class TSConfigReader {
114
106
  const inlineTags = [];
115
107
  const modifierTags = [];
116
108
  if (!config.noStandardTags) {
117
- blockTags.push(...tsdoc_defaults_1.tsdocBlockTags);
118
- inlineTags.push(...tsdoc_defaults_1.tsdocInlineTags);
119
- modifierTags.push(...tsdoc_defaults_1.tsdocModifierTags);
109
+ blockTags.push(...tsdocBlockTags);
110
+ inlineTags.push(...tsdocInlineTags);
111
+ modifierTags.push(...tsdocModifierTags);
120
112
  }
121
113
  for (const { tagName, syntaxKind } of config.tagDefinitions?.filter(supported) || []) {
122
114
  const arr = {
@@ -126,35 +118,35 @@ class TSConfigReader {
126
118
  }[syntaxKind];
127
119
  arr.push(tagName);
128
120
  }
129
- container.setValue("blockTags", (0, array_1.unique)(blockTags));
130
- container.setValue("inlineTags", (0, array_1.unique)(inlineTags));
131
- container.setValue("modifierTags", (0, array_1.unique)(modifierTags));
121
+ container.setValue("blockTags", unique(blockTags));
122
+ container.setValue("inlineTags", unique(inlineTags));
123
+ container.setValue("modifierTags", unique(modifierTags));
132
124
  }
133
125
  readTsDoc(logger, path) {
134
126
  if (this.seenTsdocPaths.has(path)) {
135
- logger.error(logger.i18n.circular_reference_extends_0((0, paths_1.nicePath)(path)));
127
+ logger.error(logger.i18n.circular_reference_extends_0(nicePath(path)));
136
128
  return;
137
129
  }
138
130
  this.seenTsdocPaths.add(path);
139
- const { config, error } = typescript_1.default.readConfigFile((0, paths_1.normalizePath)(path), typescript_1.default.sys.readFile);
131
+ const { config, error } = ts.readConfigFile(normalizePath(path), ts.sys.readFile);
140
132
  if (error) {
141
- logger.error(logger.i18n.failed_read_tsdoc_json_0((0, paths_1.nicePath)(path)));
133
+ logger.error(logger.i18n.failed_read_tsdoc_json_0(nicePath(path)));
142
134
  return;
143
135
  }
144
- if (!(0, validation_1.validate)(tsDocSchema, config)) {
145
- logger.error(logger.i18n.invalid_tsdoc_json_0((0, paths_1.nicePath)(path)));
136
+ if (!validate(tsDocSchema, config)) {
137
+ logger.error(logger.i18n.invalid_tsdoc_json_0(nicePath(path)));
146
138
  return;
147
139
  }
148
140
  const workingConfig = {};
149
141
  if (config.extends) {
150
- const resolver = (0, module_1.createRequire)(path);
142
+ const resolver = createRequire(path);
151
143
  for (const extendedPath of config.extends) {
152
144
  let resolvedPath;
153
145
  try {
154
146
  resolvedPath = resolver.resolve(extendedPath);
155
147
  }
156
148
  catch {
157
- logger.error(logger.i18n.failed_resolve_0_to_file_in_1(extendedPath, (0, paths_1.nicePath)(path)));
149
+ logger.error(logger.i18n.failed_resolve_0_to_file_in_1(extendedPath, nicePath(path)));
158
150
  return;
159
151
  }
160
152
  const parentConfig = this.readTsDoc(logger, resolvedPath);
@@ -167,7 +159,6 @@ class TSConfigReader {
167
159
  return workingConfig;
168
160
  }
169
161
  }
170
- exports.TSConfigReader = TSConfigReader;
171
162
  function mergeConfigs(from, into) {
172
163
  if (from.supportForTags) {
173
164
  into.supportForTags ||= {};
@@ -1,6 +1,6 @@
1
- import type { OptionsReader } from "..";
2
- import type { Logger } from "../../loggers";
3
- import type { Options } from "../options";
1
+ import type { OptionsReader } from "../options.js";
2
+ import type { Logger } from "../../loggers.js";
3
+ import type { Options } from "../options.js";
4
4
  /**
5
5
  * Obtains option values from typedoc.json
6
6
  *