typedoc 0.28.0-beta.0 → 0.28.0-beta.2

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 (460) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/lib/application.d.ts +1 -1
  4. package/dist/lib/application.js +6 -0
  5. package/dist/lib/converter/context.d.ts +16 -6
  6. package/dist/lib/converter/context.js +40 -5
  7. package/dist/lib/converter/factories/index-signature.js +3 -2
  8. package/dist/lib/converter/factories/signature.js +1 -1
  9. package/dist/lib/converter/factories/symbol-id.js +1 -0
  10. package/dist/lib/converter/jsdoc.js +2 -1
  11. package/dist/lib/converter/plugins/MergeModuleWithPlugin.js +1 -1
  12. package/dist/lib/converter/plugins/PackagePlugin.js +18 -8
  13. package/dist/lib/converter/plugins/SourcePlugin.js +1 -1
  14. package/dist/lib/converter/symbols.js +59 -6
  15. package/dist/lib/converter/types.js +16 -21
  16. package/dist/lib/internationalization/locales/en.cjs +2 -0
  17. package/dist/lib/internationalization/locales/en.d.cts +2 -0
  18. package/dist/lib/internationalization/locales/zh.cjs +8 -3
  19. package/dist/lib/internationalization/locales/zh.d.cts +6 -1
  20. package/dist/lib/models/ContainerReflection.d.ts +2 -2
  21. package/dist/lib/models/ContainerReflection.js +28 -4
  22. package/dist/lib/models/ProjectReflection.d.ts +1 -1
  23. package/dist/lib/models/ProjectReflection.js +1 -1
  24. package/dist/lib/models/ReflectionSymbolId.d.ts +10 -0
  25. package/dist/lib/models/ReflectionSymbolId.js +10 -0
  26. package/dist/lib/output/formatter.d.ts +1 -0
  27. package/dist/lib/output/formatter.js +3 -0
  28. package/dist/lib/output/index.d.ts +1 -3
  29. package/dist/lib/output/index.js +0 -1
  30. package/dist/lib/output/plugins/JavascriptIndexPlugin.js +4 -0
  31. package/dist/lib/output/renderer.d.ts +0 -5
  32. package/dist/lib/output/renderer.js +3 -40
  33. package/dist/lib/output/router.js +6 -0
  34. package/dist/lib/output/theme.d.ts +9 -1
  35. package/dist/lib/output/theme.js +8 -0
  36. package/dist/lib/output/themes/MarkedPlugin.js +3 -3
  37. package/dist/lib/output/themes/default/DefaultTheme.d.ts +16 -6
  38. package/dist/lib/output/themes/default/DefaultTheme.js +275 -209
  39. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +47 -40
  40. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +11 -12
  41. package/dist/lib/output/themes/default/partials/anchor-icon.d.ts +1 -2
  42. package/dist/lib/output/themes/default/partials/anchor-icon.js +2 -9
  43. package/dist/lib/output/themes/default/partials/breadcrumb.js +2 -2
  44. package/dist/lib/output/themes/default/partials/comment.js +2 -3
  45. package/dist/lib/output/themes/default/partials/index.js +4 -6
  46. package/dist/lib/output/themes/default/partials/member.declaration.js +1 -1
  47. package/dist/lib/output/themes/default/partials/member.js +3 -5
  48. package/dist/lib/output/themes/default/partials/member.signature.body.js +2 -2
  49. package/dist/lib/output/themes/default/partials/member.signatures.js +2 -3
  50. package/dist/lib/output/themes/default/partials/members.js +2 -4
  51. package/dist/lib/output/themes/default/partials/moduleReflection.js +6 -10
  52. package/dist/lib/output/themes/default/partials/navigation.js +5 -7
  53. package/dist/lib/output/themes/default/partials/reflectionPreview.js +8 -0
  54. package/dist/lib/output/themes/default/partials/typeDetails.d.ts +5 -5
  55. package/dist/lib/output/themes/default/partials/typeDetails.js +99 -53
  56. package/dist/lib/output/themes/default/partials/typeParameters.js +10 -5
  57. package/dist/lib/output/themes/default/templates/hierarchy.js +3 -5
  58. package/dist/lib/output/themes/default/templates/reflection.js +7 -3
  59. package/dist/lib/output/themes/lib.js +8 -4
  60. package/dist/lib/utils/fs.d.ts +0 -4
  61. package/dist/lib/utils/fs.js +0 -21
  62. package/dist/lib/utils/highlighter.d.ts +1 -0
  63. package/dist/lib/utils/highlighter.js +16 -2
  64. package/dist/lib/utils/index.d.ts +1 -0
  65. package/dist/lib/utils/index.js +1 -0
  66. package/dist/lib/utils/options/declaration.d.ts +13 -1
  67. package/dist/lib/utils/options/declaration.js +68 -0
  68. package/dist/lib/utils/options/defaults.js +2 -0
  69. package/dist/lib/utils/options/index.d.ts +1 -1
  70. package/dist/lib/utils/options/sources/typedoc.js +1 -1
  71. package/dist/lib/utils/options/tsdoc-defaults.d.ts +2 -2
  72. package/dist/lib/utils/options/tsdoc-defaults.js +5 -0
  73. package/dist/lib/utils-common/jsx.elements.d.ts +16 -0
  74. package/dist/lib/utils-common/path.js +4 -1
  75. package/package.json +1 -1
  76. package/static/main.js +4 -4
  77. package/static/style.css +48 -36
  78. package/tsdoc.json +20 -0
  79. package/dist/browser-utils.d.ts.map +0 -1
  80. package/dist/browser-utils.js.map +0 -1
  81. package/dist/generated/en.d.ts +0 -2
  82. package/dist/generated/en.js +0 -62
  83. package/dist/generated/ja.d.ts +0 -2
  84. package/dist/generated/ja.js +0 -62
  85. package/dist/generated/ko.d.ts +0 -2
  86. package/dist/generated/ko.js +0 -62
  87. package/dist/generated/zh.d.ts +0 -2
  88. package/dist/generated/zh.js +0 -62
  89. package/dist/index.d.ts.map +0 -1
  90. package/dist/index.js.map +0 -1
  91. package/dist/lib/application-events.d.ts.map +0 -1
  92. package/dist/lib/application-events.js.map +0 -1
  93. package/dist/lib/application.d.ts.map +0 -1
  94. package/dist/lib/application.js.map +0 -1
  95. package/dist/lib/cli.d.ts.map +0 -1
  96. package/dist/lib/cli.js.map +0 -1
  97. package/dist/lib/converter/comments/blockLexer.d.ts.map +0 -1
  98. package/dist/lib/converter/comments/blockLexer.js.map +0 -1
  99. package/dist/lib/converter/comments/declarationReferenceResolver.d.ts.map +0 -1
  100. package/dist/lib/converter/comments/declarationReferenceResolver.js.map +0 -1
  101. package/dist/lib/converter/comments/discovery.d.ts.map +0 -1
  102. package/dist/lib/converter/comments/discovery.js.map +0 -1
  103. package/dist/lib/converter/comments/index.d.ts.map +0 -1
  104. package/dist/lib/converter/comments/index.js.map +0 -1
  105. package/dist/lib/converter/comments/lexer.d.ts.map +0 -1
  106. package/dist/lib/converter/comments/lexer.js.map +0 -1
  107. package/dist/lib/converter/comments/lineLexer.d.ts.map +0 -1
  108. package/dist/lib/converter/comments/lineLexer.js.map +0 -1
  109. package/dist/lib/converter/comments/linkResolver.d.ts.map +0 -1
  110. package/dist/lib/converter/comments/linkResolver.js.map +0 -1
  111. package/dist/lib/converter/comments/parser.d.ts.map +0 -1
  112. package/dist/lib/converter/comments/parser.js.map +0 -1
  113. package/dist/lib/converter/comments/rawLexer.d.ts.map +0 -1
  114. package/dist/lib/converter/comments/rawLexer.js.map +0 -1
  115. package/dist/lib/converter/comments/tagName.d.ts.map +0 -1
  116. package/dist/lib/converter/comments/tagName.js.map +0 -1
  117. package/dist/lib/converter/comments/textParser.d.ts.map +0 -1
  118. package/dist/lib/converter/comments/textParser.js.map +0 -1
  119. package/dist/lib/converter/components.d.ts.map +0 -1
  120. package/dist/lib/converter/components.js.map +0 -1
  121. package/dist/lib/converter/context.d.ts.map +0 -1
  122. package/dist/lib/converter/context.js.map +0 -1
  123. package/dist/lib/converter/convert-expression.d.ts.map +0 -1
  124. package/dist/lib/converter/convert-expression.js.map +0 -1
  125. package/dist/lib/converter/converter-events.d.ts.map +0 -1
  126. package/dist/lib/converter/converter-events.js.map +0 -1
  127. package/dist/lib/converter/converter.d.ts.map +0 -1
  128. package/dist/lib/converter/converter.js.map +0 -1
  129. package/dist/lib/converter/factories/index-signature.d.ts.map +0 -1
  130. package/dist/lib/converter/factories/index-signature.js.map +0 -1
  131. package/dist/lib/converter/factories/signature.d.ts.map +0 -1
  132. package/dist/lib/converter/factories/signature.js.map +0 -1
  133. package/dist/lib/converter/factories/symbol-id.d.ts.map +0 -1
  134. package/dist/lib/converter/factories/symbol-id.js.map +0 -1
  135. package/dist/lib/converter/factories/types.d.ts +0 -4
  136. package/dist/lib/converter/factories/types.d.ts.map +0 -1
  137. package/dist/lib/converter/factories/types.js +0 -13
  138. package/dist/lib/converter/factories/types.js.map +0 -1
  139. package/dist/lib/converter/index.d.ts.map +0 -1
  140. package/dist/lib/converter/index.js.map +0 -1
  141. package/dist/lib/converter/jsdoc.d.ts.map +0 -1
  142. package/dist/lib/converter/jsdoc.js.map +0 -1
  143. package/dist/lib/converter/plugins/CategoryPlugin.d.ts.map +0 -1
  144. package/dist/lib/converter/plugins/CategoryPlugin.js.map +0 -1
  145. package/dist/lib/converter/plugins/CommentPlugin.d.ts.map +0 -1
  146. package/dist/lib/converter/plugins/CommentPlugin.js.map +0 -1
  147. package/dist/lib/converter/plugins/GroupPlugin.d.ts.map +0 -1
  148. package/dist/lib/converter/plugins/GroupPlugin.js.map +0 -1
  149. package/dist/lib/converter/plugins/ImplementsPlugin.d.ts.map +0 -1
  150. package/dist/lib/converter/plugins/ImplementsPlugin.js.map +0 -1
  151. package/dist/lib/converter/plugins/IncludePlugin.d.ts.map +0 -1
  152. package/dist/lib/converter/plugins/IncludePlugin.js.map +0 -1
  153. package/dist/lib/converter/plugins/InheritDocPlugin.d.ts.map +0 -1
  154. package/dist/lib/converter/plugins/InheritDocPlugin.js.map +0 -1
  155. package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts.map +0 -1
  156. package/dist/lib/converter/plugins/LinkResolverPlugin.js.map +0 -1
  157. package/dist/lib/converter/plugins/MergeModuleWithPlugin.d.ts.map +0 -1
  158. package/dist/lib/converter/plugins/MergeModuleWithPlugin.js.map +0 -1
  159. package/dist/lib/converter/plugins/PackagePlugin.d.ts.map +0 -1
  160. package/dist/lib/converter/plugins/PackagePlugin.js.map +0 -1
  161. package/dist/lib/converter/plugins/SourcePlugin.d.ts.map +0 -1
  162. package/dist/lib/converter/plugins/SourcePlugin.js.map +0 -1
  163. package/dist/lib/converter/plugins/TypePlugin.d.ts.map +0 -1
  164. package/dist/lib/converter/plugins/TypePlugin.js.map +0 -1
  165. package/dist/lib/converter/plugins/index.d.ts.map +0 -1
  166. package/dist/lib/converter/plugins/index.js.map +0 -1
  167. package/dist/lib/converter/symbols.d.ts.map +0 -1
  168. package/dist/lib/converter/symbols.js.map +0 -1
  169. package/dist/lib/converter/types.d.ts.map +0 -1
  170. package/dist/lib/converter/types.js.map +0 -1
  171. package/dist/lib/converter/utils/nodes.d.ts.map +0 -1
  172. package/dist/lib/converter/utils/nodes.js.map +0 -1
  173. package/dist/lib/converter/utils/reflections.d.ts.map +0 -1
  174. package/dist/lib/converter/utils/reflections.js.map +0 -1
  175. package/dist/lib/converter/utils/repository.d.ts.map +0 -1
  176. package/dist/lib/converter/utils/repository.js.map +0 -1
  177. package/dist/lib/converter/utils/symbols.d.ts.map +0 -1
  178. package/dist/lib/converter/utils/symbols.js.map +0 -1
  179. package/dist/lib/debug/index.d.ts.map +0 -1
  180. package/dist/lib/debug/index.js.map +0 -1
  181. package/dist/lib/debug/reflectionLifetimes.d.ts.map +0 -1
  182. package/dist/lib/debug/reflectionLifetimes.js.map +0 -1
  183. package/dist/lib/debug/rendererUrls.d.ts.map +0 -1
  184. package/dist/lib/debug/rendererUrls.js.map +0 -1
  185. package/dist/lib/internationalization/index.d.ts.map +0 -1
  186. package/dist/lib/internationalization/index.js.map +0 -1
  187. package/dist/lib/internationalization/internationalization.d.ts.map +0 -1
  188. package/dist/lib/internationalization/internationalization.js.map +0 -1
  189. package/dist/lib/internationalization/locale-utils.cjs.map +0 -1
  190. package/dist/lib/internationalization/locale-utils.d.cts.map +0 -1
  191. package/dist/lib/internationalization/locales/en.cjs.map +0 -1
  192. package/dist/lib/internationalization/locales/en.d.cts.map +0 -1
  193. package/dist/lib/internationalization/locales/ja.cjs.map +0 -1
  194. package/dist/lib/internationalization/locales/ja.d.cts.map +0 -1
  195. package/dist/lib/internationalization/locales/ko.cjs.map +0 -1
  196. package/dist/lib/internationalization/locales/ko.d.cts.map +0 -1
  197. package/dist/lib/internationalization/locales/zh.cjs.map +0 -1
  198. package/dist/lib/internationalization/locales/zh.d.cts.map +0 -1
  199. package/dist/lib/internationalization/translatable.d.ts.map +0 -1
  200. package/dist/lib/internationalization/translatable.js.map +0 -1
  201. package/dist/lib/models/Comment.d.ts.map +0 -1
  202. package/dist/lib/models/Comment.js.map +0 -1
  203. package/dist/lib/models/ContainerReflection.d.ts.map +0 -1
  204. package/dist/lib/models/ContainerReflection.js.map +0 -1
  205. package/dist/lib/models/DeclarationReflection.d.ts.map +0 -1
  206. package/dist/lib/models/DeclarationReflection.js.map +0 -1
  207. package/dist/lib/models/DocumentReflection.d.ts.map +0 -1
  208. package/dist/lib/models/DocumentReflection.js.map +0 -1
  209. package/dist/lib/models/FileRegistry.d.ts.map +0 -1
  210. package/dist/lib/models/FileRegistry.js.map +0 -1
  211. package/dist/lib/models/ParameterReflection.d.ts.map +0 -1
  212. package/dist/lib/models/ParameterReflection.js.map +0 -1
  213. package/dist/lib/models/ProjectReflection.d.ts.map +0 -1
  214. package/dist/lib/models/ProjectReflection.js.map +0 -1
  215. package/dist/lib/models/ReferenceReflection.d.ts.map +0 -1
  216. package/dist/lib/models/ReferenceReflection.js.map +0 -1
  217. package/dist/lib/models/Reflection.d.ts.map +0 -1
  218. package/dist/lib/models/Reflection.js.map +0 -1
  219. package/dist/lib/models/ReflectionCategory.d.ts.map +0 -1
  220. package/dist/lib/models/ReflectionCategory.js.map +0 -1
  221. package/dist/lib/models/ReflectionGroup.d.ts.map +0 -1
  222. package/dist/lib/models/ReflectionGroup.js.map +0 -1
  223. package/dist/lib/models/ReflectionSymbolId.d.ts.map +0 -1
  224. package/dist/lib/models/ReflectionSymbolId.js.map +0 -1
  225. package/dist/lib/models/SignatureReflection.d.ts.map +0 -1
  226. package/dist/lib/models/SignatureReflection.js.map +0 -1
  227. package/dist/lib/models/SourceReference.d.ts.map +0 -1
  228. package/dist/lib/models/SourceReference.js.map +0 -1
  229. package/dist/lib/models/TypeParameterReflection.d.ts.map +0 -1
  230. package/dist/lib/models/TypeParameterReflection.js.map +0 -1
  231. package/dist/lib/models/index.d.ts.map +0 -1
  232. package/dist/lib/models/index.js.map +0 -1
  233. package/dist/lib/models/kind.d.ts.map +0 -1
  234. package/dist/lib/models/kind.js.map +0 -1
  235. package/dist/lib/models/types.d.ts.map +0 -1
  236. package/dist/lib/models/types.js.map +0 -1
  237. package/dist/lib/models/utils.d.ts.map +0 -1
  238. package/dist/lib/models/utils.js.map +0 -1
  239. package/dist/lib/models/variant.d.ts.map +0 -1
  240. package/dist/lib/models/variant.js.map +0 -1
  241. package/dist/lib/output/components.d.ts.map +0 -1
  242. package/dist/lib/output/components.js.map +0 -1
  243. package/dist/lib/output/events.d.ts.map +0 -1
  244. package/dist/lib/output/events.js.map +0 -1
  245. package/dist/lib/output/formatter.d.ts.map +0 -1
  246. package/dist/lib/output/formatter.js.map +0 -1
  247. package/dist/lib/output/index.d.ts.map +0 -1
  248. package/dist/lib/output/index.js.map +0 -1
  249. package/dist/lib/output/models/UrlMapping.d.ts +0 -13
  250. package/dist/lib/output/models/UrlMapping.d.ts.map +0 -1
  251. package/dist/lib/output/models/UrlMapping.js +0 -10
  252. package/dist/lib/output/models/UrlMapping.js.map +0 -1
  253. package/dist/lib/output/output.d.ts.map +0 -1
  254. package/dist/lib/output/output.js.map +0 -1
  255. package/dist/lib/output/plugins/AssetsPlugin.d.ts.map +0 -1
  256. package/dist/lib/output/plugins/AssetsPlugin.js.map +0 -1
  257. package/dist/lib/output/plugins/HierarchyPlugin.d.ts.map +0 -1
  258. package/dist/lib/output/plugins/HierarchyPlugin.js.map +0 -1
  259. package/dist/lib/output/plugins/IconsPlugin.d.ts.map +0 -1
  260. package/dist/lib/output/plugins/IconsPlugin.js.map +0 -1
  261. package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts.map +0 -1
  262. package/dist/lib/output/plugins/JavascriptIndexPlugin.js.map +0 -1
  263. package/dist/lib/output/plugins/NavigationPlugin.d.ts.map +0 -1
  264. package/dist/lib/output/plugins/NavigationPlugin.js.map +0 -1
  265. package/dist/lib/output/plugins/SitemapPlugin.d.ts.map +0 -1
  266. package/dist/lib/output/plugins/SitemapPlugin.js.map +0 -1
  267. package/dist/lib/output/plugins/index.d.ts.map +0 -1
  268. package/dist/lib/output/plugins/index.js.map +0 -1
  269. package/dist/lib/output/renderer.d.ts.map +0 -1
  270. package/dist/lib/output/renderer.js.map +0 -1
  271. package/dist/lib/output/router.d.ts.map +0 -1
  272. package/dist/lib/output/router.js.map +0 -1
  273. package/dist/lib/output/theme.d.ts.map +0 -1
  274. package/dist/lib/output/theme.js.map +0 -1
  275. package/dist/lib/output/themes/MarkedPlugin.d.ts.map +0 -1
  276. package/dist/lib/output/themes/MarkedPlugin.js.map +0 -1
  277. package/dist/lib/output/themes/default/DefaultTheme.d.ts.map +0 -1
  278. package/dist/lib/output/themes/default/DefaultTheme.js.map +0 -1
  279. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts.map +0 -1
  280. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js.map +0 -1
  281. package/dist/lib/output/themes/default/Slugger.d.ts.map +0 -1
  282. package/dist/lib/output/themes/default/Slugger.js.map +0 -1
  283. package/dist/lib/output/themes/default/layouts/default.d.ts.map +0 -1
  284. package/dist/lib/output/themes/default/layouts/default.js.map +0 -1
  285. package/dist/lib/output/themes/default/partials/anchor-icon.d.ts.map +0 -1
  286. package/dist/lib/output/themes/default/partials/anchor-icon.js.map +0 -1
  287. package/dist/lib/output/themes/default/partials/breadcrumb.d.ts.map +0 -1
  288. package/dist/lib/output/themes/default/partials/breadcrumb.js.map +0 -1
  289. package/dist/lib/output/themes/default/partials/comment.d.ts.map +0 -1
  290. package/dist/lib/output/themes/default/partials/comment.js.map +0 -1
  291. package/dist/lib/output/themes/default/partials/footer.d.ts.map +0 -1
  292. package/dist/lib/output/themes/default/partials/footer.js.map +0 -1
  293. package/dist/lib/output/themes/default/partials/header.d.ts.map +0 -1
  294. package/dist/lib/output/themes/default/partials/header.js.map +0 -1
  295. package/dist/lib/output/themes/default/partials/hierarchy.d.ts.map +0 -1
  296. package/dist/lib/output/themes/default/partials/hierarchy.js.map +0 -1
  297. package/dist/lib/output/themes/default/partials/icon.d.ts.map +0 -1
  298. package/dist/lib/output/themes/default/partials/icon.js.map +0 -1
  299. package/dist/lib/output/themes/default/partials/index.d.ts.map +0 -1
  300. package/dist/lib/output/themes/default/partials/index.js.map +0 -1
  301. package/dist/lib/output/themes/default/partials/member.d.ts.map +0 -1
  302. package/dist/lib/output/themes/default/partials/member.declaration.d.ts.map +0 -1
  303. package/dist/lib/output/themes/default/partials/member.declaration.js.map +0 -1
  304. package/dist/lib/output/themes/default/partials/member.getterSetter.d.ts.map +0 -1
  305. package/dist/lib/output/themes/default/partials/member.getterSetter.js.map +0 -1
  306. package/dist/lib/output/themes/default/partials/member.js.map +0 -1
  307. package/dist/lib/output/themes/default/partials/member.signature.body.d.ts.map +0 -1
  308. package/dist/lib/output/themes/default/partials/member.signature.body.js.map +0 -1
  309. package/dist/lib/output/themes/default/partials/member.signature.title.d.ts.map +0 -1
  310. package/dist/lib/output/themes/default/partials/member.signature.title.js.map +0 -1
  311. package/dist/lib/output/themes/default/partials/member.signatures.d.ts.map +0 -1
  312. package/dist/lib/output/themes/default/partials/member.signatures.js.map +0 -1
  313. package/dist/lib/output/themes/default/partials/member.sources.d.ts.map +0 -1
  314. package/dist/lib/output/themes/default/partials/member.sources.js.map +0 -1
  315. package/dist/lib/output/themes/default/partials/members.d.ts.map +0 -1
  316. package/dist/lib/output/themes/default/partials/members.js.map +0 -1
  317. package/dist/lib/output/themes/default/partials/moduleReflection.d.ts.map +0 -1
  318. package/dist/lib/output/themes/default/partials/moduleReflection.js.map +0 -1
  319. package/dist/lib/output/themes/default/partials/navigation.d.ts.map +0 -1
  320. package/dist/lib/output/themes/default/partials/navigation.js.map +0 -1
  321. package/dist/lib/output/themes/default/partials/reflectionPreview.d.ts.map +0 -1
  322. package/dist/lib/output/themes/default/partials/reflectionPreview.js.map +0 -1
  323. package/dist/lib/output/themes/default/partials/toolbar.d.ts.map +0 -1
  324. package/dist/lib/output/themes/default/partials/toolbar.js.map +0 -1
  325. package/dist/lib/output/themes/default/partials/type.d.ts.map +0 -1
  326. package/dist/lib/output/themes/default/partials/type.js.map +0 -1
  327. package/dist/lib/output/themes/default/partials/typeAndParent.d.ts.map +0 -1
  328. package/dist/lib/output/themes/default/partials/typeAndParent.js.map +0 -1
  329. package/dist/lib/output/themes/default/partials/typeDetails.d.ts.map +0 -1
  330. package/dist/lib/output/themes/default/partials/typeDetails.js.map +0 -1
  331. package/dist/lib/output/themes/default/partials/typeParameters.d.ts.map +0 -1
  332. package/dist/lib/output/themes/default/partials/typeParameters.js.map +0 -1
  333. package/dist/lib/output/themes/default/templates/document.d.ts.map +0 -1
  334. package/dist/lib/output/themes/default/templates/document.js.map +0 -1
  335. package/dist/lib/output/themes/default/templates/hierarchy.d.ts.map +0 -1
  336. package/dist/lib/output/themes/default/templates/hierarchy.js.map +0 -1
  337. package/dist/lib/output/themes/default/templates/index.d.ts.map +0 -1
  338. package/dist/lib/output/themes/default/templates/index.js.map +0 -1
  339. package/dist/lib/output/themes/default/templates/reflection.d.ts.map +0 -1
  340. package/dist/lib/output/themes/default/templates/reflection.js.map +0 -1
  341. package/dist/lib/output/themes/lib.d.ts.map +0 -1
  342. package/dist/lib/output/themes/lib.js.map +0 -1
  343. package/dist/lib/serialization/components.d.ts.map +0 -1
  344. package/dist/lib/serialization/components.js.map +0 -1
  345. package/dist/lib/serialization/deserializer.d.ts.map +0 -1
  346. package/dist/lib/serialization/deserializer.js.map +0 -1
  347. package/dist/lib/serialization/events.d.ts.map +0 -1
  348. package/dist/lib/serialization/events.js.map +0 -1
  349. package/dist/lib/serialization/index.d.ts.map +0 -1
  350. package/dist/lib/serialization/index.js.map +0 -1
  351. package/dist/lib/serialization/schema.d.ts.map +0 -1
  352. package/dist/lib/serialization/schema.js.map +0 -1
  353. package/dist/lib/serialization/serializer.d.ts.map +0 -1
  354. package/dist/lib/serialization/serializer.js.map +0 -1
  355. package/dist/lib/utils/ValidatingFileRegistry.d.ts.map +0 -1
  356. package/dist/lib/utils/ValidatingFileRegistry.js.map +0 -1
  357. package/dist/lib/utils/component.d.ts.map +0 -1
  358. package/dist/lib/utils/component.js.map +0 -1
  359. package/dist/lib/utils/compress.d.ts.map +0 -1
  360. package/dist/lib/utils/compress.js.map +0 -1
  361. package/dist/lib/utils/entry-point.d.ts.map +0 -1
  362. package/dist/lib/utils/entry-point.js.map +0 -1
  363. package/dist/lib/utils/fs.d.ts.map +0 -1
  364. package/dist/lib/utils/fs.js.map +0 -1
  365. package/dist/lib/utils/general.d.ts.map +0 -1
  366. package/dist/lib/utils/general.js.map +0 -1
  367. package/dist/lib/utils/highlighter.d.ts.map +0 -1
  368. package/dist/lib/utils/highlighter.js.map +0 -1
  369. package/dist/lib/utils/html-entities.d.ts.map +0 -1
  370. package/dist/lib/utils/html-entities.js.map +0 -1
  371. package/dist/lib/utils/html.d.ts.map +0 -1
  372. package/dist/lib/utils/html.js.map +0 -1
  373. package/dist/lib/utils/index.d.ts.map +0 -1
  374. package/dist/lib/utils/index.js.map +0 -1
  375. package/dist/lib/utils/loggers.d.ts.map +0 -1
  376. package/dist/lib/utils/loggers.js.map +0 -1
  377. package/dist/lib/utils/options/declaration.d.ts.map +0 -1
  378. package/dist/lib/utils/options/declaration.js.map +0 -1
  379. package/dist/lib/utils/options/defaults.d.ts.map +0 -1
  380. package/dist/lib/utils/options/defaults.js.map +0 -1
  381. package/dist/lib/utils/options/help.d.ts.map +0 -1
  382. package/dist/lib/utils/options/help.js.map +0 -1
  383. package/dist/lib/utils/options/index.d.ts.map +0 -1
  384. package/dist/lib/utils/options/index.js.map +0 -1
  385. package/dist/lib/utils/options/options.d.ts.map +0 -1
  386. package/dist/lib/utils/options/options.js.map +0 -1
  387. package/dist/lib/utils/options/readers/arguments.d.ts.map +0 -1
  388. package/dist/lib/utils/options/readers/arguments.js.map +0 -1
  389. package/dist/lib/utils/options/readers/index.d.ts.map +0 -1
  390. package/dist/lib/utils/options/readers/index.js.map +0 -1
  391. package/dist/lib/utils/options/readers/package-json.d.ts.map +0 -1
  392. package/dist/lib/utils/options/readers/package-json.js.map +0 -1
  393. package/dist/lib/utils/options/readers/tsconfig.d.ts.map +0 -1
  394. package/dist/lib/utils/options/readers/tsconfig.js.map +0 -1
  395. package/dist/lib/utils/options/readers/typedoc.d.ts.map +0 -1
  396. package/dist/lib/utils/options/readers/typedoc.js.map +0 -1
  397. package/dist/lib/utils/options/sources/index.d.ts.map +0 -1
  398. package/dist/lib/utils/options/sources/index.js.map +0 -1
  399. package/dist/lib/utils/options/sources/typedoc.d.ts.map +0 -1
  400. package/dist/lib/utils/options/sources/typedoc.js.map +0 -1
  401. package/dist/lib/utils/options/tsdoc-defaults.d.ts.map +0 -1
  402. package/dist/lib/utils/options/tsdoc-defaults.js.map +0 -1
  403. package/dist/lib/utils/package-manifest.d.ts.map +0 -1
  404. package/dist/lib/utils/package-manifest.js.map +0 -1
  405. package/dist/lib/utils/paths.d.ts.map +0 -1
  406. package/dist/lib/utils/paths.js.map +0 -1
  407. package/dist/lib/utils/perf.d.ts.map +0 -1
  408. package/dist/lib/utils/perf.js.map +0 -1
  409. package/dist/lib/utils/plugins.d.ts.map +0 -1
  410. package/dist/lib/utils/plugins.js.map +0 -1
  411. package/dist/lib/utils/reflections.d.ts.map +0 -1
  412. package/dist/lib/utils/reflections.js.map +0 -1
  413. package/dist/lib/utils/sort.d.ts.map +0 -1
  414. package/dist/lib/utils/sort.js.map +0 -1
  415. package/dist/lib/utils/tsconfig.d.ts.map +0 -1
  416. package/dist/lib/utils/tsconfig.js.map +0 -1
  417. package/dist/lib/utils/tsutils.d.ts.map +0 -1
  418. package/dist/lib/utils/tsutils.js.map +0 -1
  419. package/dist/lib/utils-common/array.d.ts.map +0 -1
  420. package/dist/lib/utils-common/array.js.map +0 -1
  421. package/dist/lib/utils-common/declarationReference.d.ts.map +0 -1
  422. package/dist/lib/utils-common/declarationReference.js.map +0 -1
  423. package/dist/lib/utils-common/enum.d.ts.map +0 -1
  424. package/dist/lib/utils-common/enum.js.map +0 -1
  425. package/dist/lib/utils-common/events.d.ts.map +0 -1
  426. package/dist/lib/utils-common/events.js.map +0 -1
  427. package/dist/lib/utils-common/general.d.ts.map +0 -1
  428. package/dist/lib/utils-common/general.js.map +0 -1
  429. package/dist/lib/utils-common/hooks.d.ts.map +0 -1
  430. package/dist/lib/utils-common/hooks.js.map +0 -1
  431. package/dist/lib/utils-common/i18n.d.ts.map +0 -1
  432. package/dist/lib/utils-common/i18n.js.map +0 -1
  433. package/dist/lib/utils-common/index.d.ts.map +0 -1
  434. package/dist/lib/utils-common/index.js.map +0 -1
  435. package/dist/lib/utils-common/jsx.d.ts.map +0 -1
  436. package/dist/lib/utils-common/jsx.elements.d.ts.map +0 -1
  437. package/dist/lib/utils-common/jsx.elements.js.map +0 -1
  438. package/dist/lib/utils-common/jsx.js.map +0 -1
  439. package/dist/lib/utils-common/logger.d.ts.map +0 -1
  440. package/dist/lib/utils-common/logger.js.map +0 -1
  441. package/dist/lib/utils-common/map.d.ts.map +0 -1
  442. package/dist/lib/utils-common/map.js.map +0 -1
  443. package/dist/lib/utils-common/minimalSourceFile.d.ts.map +0 -1
  444. package/dist/lib/utils-common/minimalSourceFile.js.map +0 -1
  445. package/dist/lib/utils-common/path.d.ts.map +0 -1
  446. package/dist/lib/utils-common/path.js.map +0 -1
  447. package/dist/lib/utils-common/set.d.ts.map +0 -1
  448. package/dist/lib/utils-common/set.js.map +0 -1
  449. package/dist/lib/utils-common/string.d.ts.map +0 -1
  450. package/dist/lib/utils-common/string.js.map +0 -1
  451. package/dist/lib/utils-common/validation.d.ts.map +0 -1
  452. package/dist/lib/utils-common/validation.js.map +0 -1
  453. package/dist/lib/validation/documentation.d.ts.map +0 -1
  454. package/dist/lib/validation/documentation.js.map +0 -1
  455. package/dist/lib/validation/exports.d.ts.map +0 -1
  456. package/dist/lib/validation/exports.js.map +0 -1
  457. package/dist/lib/validation/links.d.ts.map +0 -1
  458. package/dist/lib/validation/links.js.map +0 -1
  459. package/dist/lib/validation/unusedMergeModuleWith.d.ts.map +0 -1
  460. package/dist/lib/validation/unusedMergeModuleWith.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -36,12 +36,12 @@ export { type CommentParserConfig, Context, Converter, type ConverterEvents, typ
36
36
  export * from "./lib/models/index.js";
37
37
  /** @primaryExport */
38
38
  export * as Configuration from "./lib/utils/options/index.js";
39
- export { BaseRouter, CategoryRouter, DefaultTheme, DefaultThemeRenderContext, GroupRouter, IndexEvent, KindDirRouter, KindRouter, MarkdownEvent, PageEvent, PageKind, Renderer, RendererEvent, Slugger, StructureDirRouter, StructureRouter, Theme, UrlMapping, } from "./lib/output/index.js";
39
+ export { BaseRouter, CategoryRouter, DefaultTheme, DefaultThemeRenderContext, GroupRouter, IndexEvent, KindDirRouter, KindRouter, MarkdownEvent, PageEvent, PageKind, Renderer, RendererEvent, Slugger, StructureDirRouter, StructureRouter, Theme, } from "./lib/output/index.js";
40
40
  export type { Icons, NavigationElement, PageDefinition, PageHeading, RendererEvents, RendererHooks, RenderTemplate, Router, } from "./lib/output/index.js";
41
41
  export { Outputs } from "./lib/output/output.js";
42
42
  export { ArgumentsReader, CommentStyle, EntryPointStrategy, normalizePath, Option, OptionDefaults, Options, PackageJsonReader, ParameterHint, ParameterType, TSConfigReader, TypeDocReader, ValidatingFileRegistry, } from "./lib/utils/index.js";
43
43
  export type { ArrayDeclarationOption, BooleanDeclarationOption, DeclarationOption, DeclarationOptionBase, DeclarationOptionToOptionType, DocumentationEntryPoint, FancyConsoleLogger, FlagsDeclarationOption, JsDocCompatibility, KeyToDeclaration, ManuallyValidatedOption, MapDeclarationOption, MixedDeclarationOption, NumberDeclarationOption, ObjectDeclarationOption, OptionsReader, OutputSpecification, ParameterTypeToOptionTypeMap, SortStrategy, StringDeclarationOption, TypeDocOptionMap, TypeDocOptions, TypeDocOptionValues, ValidationOptions, } from "./lib/utils/index.js";
44
- export { type ComponentPath, ConsoleLogger, type DeclarationReference, type EnumKeys, EventDispatcher, EventHooks, type GlobString, i18n, JSX, Logger, LogLevel, type Meaning, type MeaningKeyword, type MinimalNode, MinimalSourceFile, type NormalizedPath, type NormalizedPathOrModule, type SymbolReference, translateTagName, } from "#utils";
44
+ export { type ComponentPath, ConsoleLogger, type DeclarationReference, type EnumKeys, EventDispatcher, EventHooks, type GlobString, i18n, JSX, Logger, LogLevel, type Meaning, type MeaningKeyword, type MinimalNode, MinimalSourceFile, type NormalizedPath, type NormalizedPathOrModule, type SymbolReference, type TranslatedString, translateTagName, } from "#utils";
45
45
  export { type Deserializable, Deserializer, type DeserializerComponent, JSONOutput, SerializeEvent, Serializer, type SerializerComponent, type SerializerEvents, } from "./lib/serialization/index.js";
46
46
  export * as Internationalization from "./lib/internationalization/index.js";
47
47
  export type { TranslatableStrings } from "./lib/internationalization/internationalization.js";
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ export { Context, Converter, } from "./lib/converter/index.js";
36
36
  export * from "./lib/models/index.js";
37
37
  /** @primaryExport */
38
38
  export * as Configuration from "./lib/utils/options/index.js";
39
- export { BaseRouter, CategoryRouter, DefaultTheme, DefaultThemeRenderContext, GroupRouter, IndexEvent, KindDirRouter, KindRouter, MarkdownEvent, PageEvent, PageKind, Renderer, RendererEvent, Slugger, StructureDirRouter, StructureRouter, Theme, UrlMapping, } from "./lib/output/index.js";
39
+ export { BaseRouter, CategoryRouter, DefaultTheme, DefaultThemeRenderContext, GroupRouter, IndexEvent, KindDirRouter, KindRouter, MarkdownEvent, PageEvent, PageKind, Renderer, RendererEvent, Slugger, StructureDirRouter, StructureRouter, Theme, } from "./lib/output/index.js";
40
40
  export { Outputs } from "./lib/output/output.js";
41
41
  export { ArgumentsReader, CommentStyle, EntryPointStrategy, normalizePath, Option, OptionDefaults, Options, PackageJsonReader, ParameterHint, ParameterType, TSConfigReader, TypeDocReader, ValidatingFileRegistry, } from "./lib/utils/index.js";
42
42
  export { ConsoleLogger, EventDispatcher, EventHooks, i18n, JSX, Logger, LogLevel, MinimalSourceFile, translateTagName, } from "#utils";
@@ -4,7 +4,7 @@ import { Renderer } from "./output/renderer.js";
4
4
  import { type ProjectReflection } from "./models/index.js";
5
5
  import { AbstractComponent, type OptionsReader } from "./utils/index.js";
6
6
  import { Options } from "./utils/index.js";
7
- import type { TypeDocOptions } from "./utils/options/declaration.js";
7
+ import { type TypeDocOptions } from "./utils/options/declaration.js";
8
8
  import { type GlobString, Logger } from "#utils";
9
9
  import { type DocumentationEntryPoint, EntryPointStrategy } from "./utils/entry-point.js";
10
10
  import { FileRegistry } from "./models/FileRegistry.js";
@@ -40,6 +40,7 @@ import { Renderer } from "./output/renderer.js";
40
40
  import { ReflectionSymbolId } from "./models/index.js";
41
41
  import { AbstractComponent, FancyConsoleLogger, loadPlugins, PackageJsonReader, TSConfigReader, TypeDocReader, writeFile, } from "./utils/index.js";
42
42
  import { Option, Options } from "./utils/index.js";
43
+ import { rootPackageOptions } from "./utils/options/declaration.js";
43
44
  import { i18n, Logger, LogLevel, unique } from "#utils";
44
45
  import { ok } from "assert";
45
46
  import { EntryPointStrategy, getEntryPoints, getPackageDirectories, getWatchEntryPoints, inferEntryPoints, } from "./utils/entry-point.js";
@@ -593,6 +594,11 @@ let Application = (() => {
593
594
  const origFiles = this.files;
594
595
  const origOptions = this.options;
595
596
  const projects = [];
597
+ for (const opt of Object.keys(this.options.getValue("packageOptions"))) {
598
+ if (rootPackageOptions.includes(opt)) {
599
+ this.logger.warn(i18n.package_option_0_should_be_specified_at_root(opt));
600
+ }
601
+ }
596
602
  const projectsToConvert = [];
597
603
  // Generate a json file for each package
598
604
  for (const dir of packageDirs) {
@@ -1,5 +1,5 @@
1
1
  import ts from "typescript";
2
- import { DeclarationReflection, type DocumentReflection, type ProjectReflection, type Reflection, ReflectionKind } from "../models/index.js";
2
+ import { Comment, DeclarationReflection, type DocumentReflection, type ProjectReflection, ReferenceType, type Reflection, ReflectionKind } from "../models/index.js";
3
3
  import type { Converter } from "./converter.js";
4
4
  import { type NormalizedPath } from "#utils";
5
5
  /**
@@ -35,6 +35,8 @@ export declare class Context {
35
35
  convertingTypeNode: boolean;
36
36
  convertingClassOrInterface: boolean;
37
37
  shouldBeStatic: boolean;
38
+ inlineType: Set<string>;
39
+ preventInline: Set<string>;
38
40
  private reflectionIdToSymbolMap;
39
41
  /**
40
42
  * Create a new Context instance.
@@ -58,6 +60,13 @@ export declare class Context {
58
60
  createDeclarationReflection(kind: ReflectionKind, symbol: ts.Symbol | undefined, exportSymbol: ts.Symbol | undefined, nameOverride?: string): DeclarationReflection;
59
61
  postReflectionCreation(reflection: Reflection, symbol: ts.Symbol | undefined, exportSymbol: ts.Symbol | undefined): void;
60
62
  finalizeDeclarationReflection(reflection: DeclarationReflection): void;
63
+ /**
64
+ * Create a {@link ReferenceType} which points to the provided symbol.
65
+ *
66
+ * @privateRemarks
67
+ * This is available on Context so that it can be monkey-patched by typedoc-plugin-missing-exports
68
+ */
69
+ createSymbolReference(symbol: ts.Symbol, context: Context, name?: string): ReferenceType;
61
70
  addChild(reflection: DeclarationReflection | DocumentReflection): void;
62
71
  shouldIgnore(symbol: ts.Symbol): boolean;
63
72
  /**
@@ -72,10 +81,11 @@ export declare class Context {
72
81
  getSymbolFromReflection(reflection: Reflection): ts.Symbol | undefined;
73
82
  /** @internal */
74
83
  setActiveProgram(program: ts.Program | undefined): void;
75
- getComment(symbol: ts.Symbol, kind: ReflectionKind): import("../models/Comment.js").Comment | undefined;
76
- getNodeComment(node: ts.Node, moduleComment: boolean): import("../models/Comment.js").Comment | undefined;
77
- getFileComment(node: ts.SourceFile): import("../models/Comment.js").Comment | undefined;
78
- getJsDocComment(declaration: ts.JSDocPropertyLikeTag | ts.JSDocCallbackTag | ts.JSDocTypedefTag | ts.JSDocTemplateTag | ts.JSDocEnumTag): import("../models/Comment.js").Comment | undefined;
79
- getSignatureComment(declaration: ts.SignatureDeclaration | ts.JSDocSignature): import("../models/Comment.js").Comment | undefined;
84
+ getComment(symbol: ts.Symbol, kind: ReflectionKind): Comment | undefined;
85
+ getNodeComment(node: ts.Node, moduleComment: boolean): Comment | undefined;
86
+ getFileComment(node: ts.SourceFile): Comment | undefined;
87
+ getJsDocComment(declaration: ts.JSDocPropertyLikeTag | ts.JSDocCallbackTag | ts.JSDocTypedefTag | ts.JSDocTemplateTag | ts.JSDocEnumTag): Comment | undefined;
88
+ getSignatureComment(declaration: ts.SignatureDeclaration | ts.JSDocSignature): Comment | undefined;
89
+ shouldInline(symbol: ts.Symbol, name: string): boolean;
80
90
  withScope(scope: Reflection): Context;
81
91
  }
@@ -1,12 +1,12 @@
1
1
  import { ok as assert } from "assert";
2
2
  import ts from "typescript";
3
- import { ContainerReflection, DeclarationReflection, ReflectionFlag, ReflectionKind, } from "../models/index.js";
3
+ import { Comment, ContainerReflection, DeclarationReflection, ReferenceType, ReflectionFlag, ReflectionKind, } from "../models/index.js";
4
4
  import { isNamedNode } from "./utils/nodes.js";
5
5
  import { ConverterEvents } from "./converter-events.js";
6
6
  import { resolveAliasedSymbol } from "./utils/symbols.js";
7
7
  import { getComment, getFileComment, getJsDocComment, getNodeComment, getSignatureComment } from "./comments/index.js";
8
- import { getHumanName } from "../utils/tsutils.js";
9
- import { normalizePath } from "#node-utils";
8
+ import { getHumanName, getQualifiedName } from "../utils/tsutils.js";
9
+ import { findPackageForPath, normalizePath } from "#node-utils";
10
10
  import { createSymbolId } from "./factories/symbol-id.js";
11
11
  import { removeIf } from "#utils";
12
12
  /**
@@ -47,6 +47,8 @@ export class Context {
47
47
  convertingTypeNode = false; // Inherited by withScope
48
48
  convertingClassOrInterface = false; // Not inherited
49
49
  shouldBeStatic = false; // Not inherited
50
+ inlineType = new Set(); // Inherited by withScope
51
+ preventInline = new Set(); // Inherited by withScope
50
52
  reflectionIdToSymbolMap = new Map();
51
53
  /**
52
54
  * Create a new Context instance.
@@ -165,6 +167,21 @@ export class Context {
165
167
  this.converter.processDocumentTags(reflection, reflection);
166
168
  }
167
169
  }
170
+ /**
171
+ * Create a {@link ReferenceType} which points to the provided symbol.
172
+ *
173
+ * @privateRemarks
174
+ * This is available on Context so that it can be monkey-patched by typedoc-plugin-missing-exports
175
+ */
176
+ createSymbolReference(symbol, context, name) {
177
+ const ref = ReferenceType.createUnresolvedReference(name ?? symbol.name, createSymbolId(symbol), context.project, getQualifiedName(symbol, name ?? symbol.name));
178
+ ref.refersToTypeParameter = !!(symbol.flags & ts.SymbolFlags.TypeParameter);
179
+ const symbolPath = symbol.declarations?.[0]?.getSourceFile().fileName;
180
+ if (!symbolPath)
181
+ return ref;
182
+ ref.package = findPackageForPath(symbolPath)?.[0];
183
+ return ref;
184
+ }
168
185
  addChild(reflection) {
169
186
  if (this.scope instanceof ContainerReflection) {
170
187
  this.scope.addChild(reflection);
@@ -233,13 +250,31 @@ export class Context {
233
250
  getSignatureComment(declaration) {
234
251
  return getSignatureComment(declaration, this.converter.config, this.logger, this.checker, this.project.files);
235
252
  }
253
+ shouldInline(symbol, name) {
254
+ if (this.preventInline.has(name))
255
+ return false;
256
+ if (this.inlineType.has(name))
257
+ return true;
258
+ return this
259
+ .getComment(symbol, ReflectionKind.Interface)
260
+ ?.hasModifier("@inline") ?? false;
261
+ }
236
262
  withScope(scope) {
237
- // TODO: This will be important for #2862
238
- // assert(scope.parent === this.scope, "Incorrect context used for withScope");
263
+ assert(scope.parent === this.scope || scope === this.scope, "Incorrect context used for withScope");
239
264
  const context = new Context(this.converter, this.programs, this.project, scope);
240
265
  context.convertingTypeNode = this.convertingTypeNode;
241
266
  context.setActiveProgram(this._program);
242
267
  context.reflectionIdToSymbolMap = this.reflectionIdToSymbolMap;
268
+ context.preventInline = new Set(this.preventInline);
269
+ context.inlineType = new Set(this.inlineType);
270
+ for (const tag of scope.comment?.blockTags || []) {
271
+ if (tag.tag === "@preventInline") {
272
+ context.preventInline.add(Comment.combineDisplayParts(tag.content));
273
+ }
274
+ else if (tag.tag === "@inlineType") {
275
+ context.inlineType.add(Comment.combineDisplayParts(tag.content));
276
+ }
277
+ }
243
278
  return context;
244
279
  }
245
280
  }
@@ -24,6 +24,7 @@ export function convertIndexSignatures(context, type) {
24
24
  }
25
25
  // Otherwise create a new one
26
26
  const index = new SignatureReflection("__index", ReflectionKind.IndexSignature, context.scope);
27
+ const ic = context.withScope(index);
27
28
  if (indexInfo.isReadonly) {
28
29
  index.setFlag(ReflectionFlag.Readonly);
29
30
  }
@@ -36,8 +37,8 @@ export function convertIndexSignatures(context, type) {
36
37
  index.parameters = [
37
38
  new ParameterReflection(indexInfo.declaration?.parameters[0].name.getText() ?? "key", ReflectionKind.Parameter, index),
38
39
  ];
39
- index.parameters[0].type = context.converter.convertType(context.withScope(index.parameters[0]), indexInfo.keyType);
40
- index.type = context.converter.convertType(context.withScope(index), indexInfo.type);
40
+ index.parameters[0].type = context.converter.convertType(ic.withScope(index.parameters[0]), indexInfo.keyType);
41
+ index.type = context.converter.convertType(ic, indexInfo.type);
41
42
  context.registerReflection(index, indexInfo.declaration?.symbol);
42
43
  context.scope.indexSignatures ||= [];
43
44
  context.scope.indexSignatures.push(index);
@@ -16,7 +16,6 @@ export function createSignature(context, kind, signature, symbol, declaration) {
16
16
  if (context.shouldBeStatic) {
17
17
  sigRef.setFlag(ReflectionFlag.Static);
18
18
  }
19
- const sigRefCtx = context.withScope(sigRef);
20
19
  if (symbol && declaration) {
21
20
  context.project.registerSymbolId(sigRef, createSymbolId(symbol, declaration));
22
21
  }
@@ -34,6 +33,7 @@ export function createSignature(context, kind, signature, symbol, declaration) {
34
33
  }
35
34
  }
36
35
  }
36
+ const sigRefCtx = context.withScope(sigRef);
37
37
  sigRef.typeParameters = convertTypeParameters(sigRefCtx, sigRef, signature.typeParameters);
38
38
  const parameterSymbols = signature.thisParameter
39
39
  ? [signature.thisParameter, ...signature.parameters]
@@ -43,6 +43,7 @@ export function createSymbolId(symbol, declaration) {
43
43
  });
44
44
  id.pos = pos;
45
45
  id.transientId = transientId;
46
+ id.fileName = normalizePath(sourceFileName);
46
47
  return id;
47
48
  }
48
49
  function resolveDeclarationMaps(file) {
@@ -53,12 +53,13 @@ function convertJsDocSignature(context, node) {
53
53
  return new IntrinsicType("Function");
54
54
  }
55
55
  const reflection = new DeclarationReflection("__type", ReflectionKind.TypeLiteral, context.scope);
56
+ const rc = context.withScope(reflection);
56
57
  context.registerReflection(reflection, symbol);
57
58
  context.converter.trigger(ConverterEvents.CREATE_DECLARATION, context, reflection);
58
59
  const signature = new SignatureReflection("__type", ReflectionKind.CallSignature, reflection);
59
60
  context.project.registerSymbolId(signature, createSymbolId(symbol, node));
60
61
  context.registerReflection(signature, void 0);
61
- const signatureCtx = context.withScope(signature);
62
+ const signatureCtx = rc.withScope(signature);
62
63
  reflection.signatures = [signature];
63
64
  signature.type = context.converter.convertType(signatureCtx, node.type?.typeExpression?.type);
64
65
  signature.parameters = convertParameterNodes(signatureCtx, signature, node.parameters);
@@ -45,6 +45,6 @@ export class MergeModuleWithPlugin extends ConverterComponent {
45
45
  tempRefl = tempRefl.parent;
46
46
  }
47
47
  this.application.logger.verbose(`Merging ${refl.getFullName()} into ${target.getFullName()}`);
48
- project.mergeModules(refl, target);
48
+ project.mergeReflections(refl, target);
49
49
  }
50
50
  }
@@ -37,7 +37,8 @@ import { ConverterComponent } from "../components.js";
37
37
  import { ApplicationEvents } from "../../application-events.js";
38
38
  import { ConverterEvents } from "../converter-events.js";
39
39
  import { i18n, MinimalSourceFile } from "#utils";
40
- import { discoverInParentDir, discoverPackageJson, getCommonDirectory, nicePath, normalizePath, Option, readFile, } from "#node-utils";
40
+ import { discoverPackageJson, getCommonDirectory, nicePath, normalizePath, Option, readFile, } from "#node-utils";
41
+ import { existsSync } from "fs";
41
42
  /**
42
43
  * A handler that tries to find the package.json and readme.md files of the
43
44
  * current project.
@@ -117,8 +118,9 @@ let PackagePlugin = (() => {
117
118
  this.packageJson = undefined;
118
119
  const dirName = this.application.options.packageDir ??
119
120
  Path.resolve(getCommonDirectory(this.entryPoints.map(g => `${g}/`)));
120
- this.application.logger.verbose(`Begin readme.md/package.json search at ${nicePath(dirName)}`);
121
- this.packageJson = discoverPackageJson(dirName)?.content;
121
+ this.application.logger.verbose(`Begin package.json search at ${nicePath(dirName)}`);
122
+ const packageJson = discoverPackageJson(dirName);
123
+ this.packageJson = packageJson?.content;
122
124
  // Path will be resolved already. This is kind of ugly, but...
123
125
  if (this.readme.endsWith("none")) {
124
126
  return; // No readme, we're done
@@ -134,12 +136,20 @@ let PackagePlugin = (() => {
134
136
  this.application.logger.error(i18n.provided_readme_at_0_could_not_be_read(nicePath(this.readme)));
135
137
  }
136
138
  }
137
- else {
139
+ else if (packageJson) {
138
140
  // No readme provided, automatically find the readme
139
- const result = discoverInParentDir("readme.md", dirName, (content) => content);
140
- if (result) {
141
- this.readmeFile = normalizePath(result.file);
142
- this.readmeContents = result.content;
141
+ const possibleReadmePaths = [
142
+ "README.md",
143
+ "readme.md",
144
+ "Readme.md",
145
+ ].map(name => Path.join(Path.dirname(packageJson.file), name));
146
+ const readmePath = possibleReadmePaths.find(path => {
147
+ this.application.watchFile(path);
148
+ return existsSync(path);
149
+ });
150
+ if (readmePath) {
151
+ this.readmeFile = normalizePath(readmePath);
152
+ this.readmeContents = readFile(readmePath);
143
153
  this.application.watchFile(this.readmeFile);
144
154
  }
145
155
  }
@@ -113,8 +113,8 @@ let SourcePlugin = (() => {
113
113
  this.owner.on(ConverterEvents.RESOLVE_BEGIN, this.onBeginResolve.bind(this));
114
114
  }
115
115
  onEnd() {
116
- // Should probably clear repositories/ignoredPaths here, but these aren't likely to change between runs...
117
116
  this.fileNames.clear();
117
+ delete this.repositories;
118
118
  }
119
119
  /**
120
120
  * Triggered when the converter has created a declaration reflection.
@@ -116,7 +116,8 @@ function _convertSymbolNow(context, symbol, exportSymbol) {
116
116
  export function convertSymbol(context, symbol, exportSymbol) {
117
117
  // #1795, defer conversion of symbols named `default` so that if a function
118
118
  // is default exported and also exported with a name, the name takes precedence
119
- if ((exportSymbol?.name ?? symbol.name) === "default") {
119
+ if ((exportSymbol?.name ?? symbol.name) === "default" &&
120
+ context.scope.kindOf(ReflectionKind.ExportContainer)) {
120
121
  context.converter.deferConversion(() => {
121
122
  _convertSymbolNow(context, symbol, exportSymbol);
122
123
  });
@@ -164,6 +165,9 @@ function convertNamespace(context, symbol, exportSymbol) {
164
165
  return;
165
166
  }
166
167
  }
168
+ if (symbol.declarations?.some(ts.isFunctionDeclaration)) {
169
+ exportFlags |= ts.SymbolFlags.PropertyOrAccessor;
170
+ }
167
171
  // #2364, @namespace on a variable might be merged with a namespace containing types.
168
172
  const existingReflection = context.getReflectionFromSymbol(exportSymbol || symbol);
169
173
  let reflection;
@@ -201,6 +205,7 @@ function convertTypeAlias(context, symbol, exportSymbol) {
201
205
  return convertTypeAliasAsInterface(context, symbol, exportSymbol, declaration);
202
206
  }
203
207
  const reflection = context.createDeclarationReflection(ReflectionKind.TypeAlias, symbol, exportSymbol);
208
+ context.finalizeDeclarationReflection(reflection);
204
209
  if (reflection.comment?.hasModifier("@useDeclaredType")) {
205
210
  reflection.comment.removeModifier("@useDeclaredType");
206
211
  reflection.type = context.converter.convertType(context.withScope(reflection), context.checker.getDeclaredTypeOfSymbol(symbol));
@@ -211,9 +216,17 @@ function convertTypeAlias(context, symbol, exportSymbol) {
211
216
  if (reflection.type.type === "union") {
212
217
  attachUnionComments(context, declaration, reflection.type);
213
218
  }
214
- context.finalizeDeclarationReflection(reflection);
215
- // Do this after finalization so that the CommentPlugin can get @typeParam tags
216
- // from the parent comment. Ugly, but works for now. Should be cleaned up eventually.
219
+ else if (reflection.type.type === "reflection" && reflection.type.declaration.children) {
220
+ // #2817 lift properties of object literal types up to the reflection level.
221
+ const typeDecl = reflection.type.declaration;
222
+ reflection.project.mergeReflections(typeDecl, reflection);
223
+ delete reflection.type;
224
+ // When created any signatures will be created with __type as their
225
+ // name, rename them so that they have the alias's name as their name
226
+ for (const sig of reflection.signatures || []) {
227
+ sig.name = reflection.name;
228
+ }
229
+ }
217
230
  reflection.typeParameters = declaration.typeParameters?.map((param) => createTypeParamReflection(param, context.withScope(reflection)));
218
231
  }
219
232
  else if (ts.isJSDocTypedefTag(declaration) ||
@@ -551,7 +564,10 @@ function convertVariable(context, symbol, exportSymbol) {
551
564
  }
552
565
  if (type.getCallSignatures().length &&
553
566
  !type.getConstructSignatures().length) {
554
- return convertVariableAsFunction(context, symbol, exportSymbol);
567
+ if (comment?.hasModifier("@function") ||
568
+ (declaration && shouldAutomaticallyConvertAsFunction(declaration))) {
569
+ return convertVariableAsFunction(context, symbol, exportSymbol);
570
+ }
555
571
  }
556
572
  const reflection = context.createDeclarationReflection(context.scope.kindOf(ReflectionKind.VariableContainer)
557
573
  ? ReflectionKind.Variable
@@ -625,6 +641,7 @@ function convertVariableAsFunction(context, symbol, exportSymbol) {
625
641
  for (const signature of type.getCallSignatures()) {
626
642
  createSignature(reflectionContext, ReflectionKind.CallSignature, signature, symbol);
627
643
  }
644
+ reflection.comment?.removeModifier("@function");
628
645
  // #2824 If there is only one signature, and there isn't a comment
629
646
  // on the signature already, treat the comment on the variable
630
647
  // as if it belongs to the signature instead.
@@ -648,7 +665,8 @@ function convertFunctionProperties(context, symbol, type) {
648
665
  const nsFlags = ts.SymbolFlags.ValueModule | ts.SymbolFlags.NamespaceModule;
649
666
  if (type.getProperties().length &&
650
667
  (hasAllFlags(symbol.flags, nsFlags) ||
651
- !hasAnyFlag(symbol.flags, nsFlags))) {
668
+ !hasAnyFlag(symbol.flags, nsFlags)) &&
669
+ !symbol.declarations?.some(ts.isModuleDeclaration)) {
652
670
  convertSymbols(context, type.getProperties());
653
671
  return ts.SymbolFlags.NamespaceModule;
654
672
  }
@@ -768,3 +786,38 @@ function setModifiers(symbol, declaration, reflection) {
768
786
  function setSymbolModifiers(symbol, reflection) {
769
787
  reflection.setFlag(ReflectionFlag.Optional, hasAllFlags(symbol.flags, ts.SymbolFlags.Optional));
770
788
  }
789
+ function shouldAutomaticallyConvertAsFunction(node) {
790
+ // const fn = () => {}
791
+ if (ts.isVariableDeclaration(node)) {
792
+ if (node.type || !node.initializer)
793
+ return false;
794
+ return isFunctionLikeInitializer(node.initializer);
795
+ }
796
+ // { fn: () => {} }
797
+ if (ts.isPropertyAssignment(node)) {
798
+ return isFunctionLikeInitializer(node.initializer);
799
+ }
800
+ // exports.fn = () => {}
801
+ // exports.fn ||= () => {}
802
+ // exports.fn ??= () => {}
803
+ if (ts.isPropertyAccessExpression(node)) {
804
+ if (ts.isBinaryExpression(node.parent) &&
805
+ [ts.SyntaxKind.EqualsToken, ts.SyntaxKind.BarBarEqualsToken, ts.SyntaxKind.QuestionQuestionEqualsToken]
806
+ .includes(node.parent.operatorToken.kind)) {
807
+ return isFunctionLikeInitializer(node.parent.right);
808
+ }
809
+ }
810
+ return false;
811
+ }
812
+ function isFunctionLikeInitializer(node) {
813
+ if (ts.isFunctionExpression(node) || ts.isArrowFunction(node)) {
814
+ return true;
815
+ }
816
+ if (ts.isSatisfiesExpression(node)) {
817
+ return isFunctionLikeInitializer(node.expression);
818
+ }
819
+ if (ts.isAsExpression(node)) {
820
+ return isFunctionLikeInitializer(node.expression);
821
+ }
822
+ return false;
823
+ }
@@ -8,7 +8,6 @@ import { convertParameterNodes, convertTypeParameterNodes, createSignature } fro
8
8
  import { convertSymbol } from "./symbols.js";
9
9
  import { isObjectType, isTypeReference } from "./utils/nodes.js";
10
10
  import { removeUndefined } from "./utils/reflections.js";
11
- import { createSymbolReference } from "./factories/types.js";
12
11
  import { createSymbolId } from "./factories/symbol-id.js";
13
12
  const converters = new Map();
14
13
  export function loadConverters() {
@@ -189,7 +188,7 @@ const exprWithTypeArgsConverter = {
189
188
  return convertType(context, context.checker.getTypeAtLocation(node));
190
189
  }
191
190
  const parameters = node.typeArguments?.map((type) => convertType(context, type)) ?? [];
192
- const ref = createSymbolReference(context.resolveAliasedSymbol(targetSymbol), context);
191
+ const ref = context.createSymbolReference(context.resolveAliasedSymbol(targetSymbol), context);
193
192
  ref.typeArguments = parameters;
194
193
  return ref;
195
194
  },
@@ -239,12 +238,12 @@ const importType = {
239
238
  if (!symbol) {
240
239
  return new IntrinsicType("any");
241
240
  }
242
- return createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
241
+ return context.createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
243
242
  },
244
243
  convertType(context, type) {
245
244
  const symbol = type.getSymbol();
246
245
  assert(symbol, "Missing symbol when converting import type"); // Should be a compiler error
247
- return createSymbolReference(context.resolveAliasedSymbol(symbol), context, "__module");
246
+ return context.createSymbolReference(context.resolveAliasedSymbol(symbol), context, "__module");
248
247
  },
249
248
  };
250
249
  const indexedAccessConverter = {
@@ -413,7 +412,7 @@ const queryConverter = {
413
412
  // on a variable typed as `any` with a name that doesn't exist.
414
413
  return new QueryType(ReferenceType.createBrokenReference(node.exprName.getText(), context.project));
415
414
  }
416
- const ref = createSymbolReference(context.resolveAliasedSymbol(querySymbol), context, node.exprName.getText());
415
+ const ref = context.createSymbolReference(context.resolveAliasedSymbol(querySymbol), context, node.exprName.getText());
417
416
  ref.preferValues = true;
418
417
  return new QueryType(ref);
419
418
  },
@@ -422,7 +421,7 @@ const queryConverter = {
422
421
  // an instantiation expression we get the user's exprName.
423
422
  const symbol = context.getSymbolAtLocation(node.exprName) || type.getSymbol();
424
423
  assert(symbol, `Query type failed to get a symbol for: ${context.checker.typeToString(type)}. This is a bug.`);
425
- const ref = createSymbolReference(context.resolveAliasedSymbol(symbol), context);
424
+ const ref = context.createSymbolReference(context.resolveAliasedSymbol(symbol), context);
426
425
  ref.preferValues = true;
427
426
  return new QueryType(ref);
428
427
  },
@@ -436,20 +435,18 @@ const referenceConverter = {
436
435
  return new ArrayType(convertType(context, node.typeArguments?.[0]));
437
436
  }
438
437
  const symbol = context.expectSymbolAtLocation(node.typeName);
438
+ const name = node.typeName.getText();
439
439
  // Ignore @inline if there are type arguments, as they won't be resolved
440
440
  // in the type we just retrieved from node.typeName.
441
441
  if (!node.typeArguments &&
442
- context
443
- .getComment(symbol, ReflectionKind.Interface)
444
- ?.hasModifier("@inline")) {
442
+ context.shouldInline(symbol, name)) {
445
443
  // typeLiteralConverter doesn't use the node, so we can get away with lying here.
446
444
  // This might not actually be safe, it appears that it is in the relatively small
447
445
  // amount of testing I've done with it, but I wouldn't be surprised if someone manages
448
446
  // to find a crash.
449
447
  return typeLiteralConverter.convertType(context, type, null, undefined);
450
448
  }
451
- const name = node.typeName.getText();
452
- const ref = createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
449
+ const ref = context.createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
453
450
  ref.typeArguments = node.typeArguments?.map((type) => convertType(context, type));
454
451
  return ref;
455
452
  },
@@ -465,15 +462,6 @@ const referenceConverter = {
465
462
  ref.refersToTypeParameter = true;
466
463
  return ref;
467
464
  }
468
- if (context
469
- .getComment(symbol, ReflectionKind.Interface)
470
- ?.hasModifier("@inline")) {
471
- // typeLiteralConverter doesn't use the node, so we can get away with lying here.
472
- // This might not actually be safe, it appears that it is in the relatively small
473
- // amount of testing I've done with it, but I wouldn't be surprised if someone manages
474
- // to find a crash.
475
- return typeLiteralConverter.convertType(context, type, null, undefined);
476
- }
477
465
  let name;
478
466
  if (ts.isIdentifier(node.typeName)) {
479
467
  name = node.typeName.text;
@@ -481,7 +469,14 @@ const referenceConverter = {
481
469
  else {
482
470
  name = node.typeName.right.text;
483
471
  }
484
- const ref = createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
472
+ if (context.shouldInline(symbol, name)) {
473
+ // typeLiteralConverter doesn't use the node, so we can get away with lying here.
474
+ // This might not actually be safe, it appears that it is in the relatively small
475
+ // amount of testing I've done with it, but I wouldn't be surprised if someone manages
476
+ // to find a crash.
477
+ return typeLiteralConverter.convertType(context, type, null, undefined);
478
+ }
479
+ const ref = context.createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
485
480
  if (type.flags & ts.TypeFlags.Substitution) {
486
481
  // NoInfer<T>
487
482
  ref.typeArguments = [
@@ -16,6 +16,7 @@ module.exports = {
16
16
  no_entry_points_for_packages: "No entry points provided to packages mode, documentation cannot be generated",
17
17
  failed_to_find_packages: "Failed to find any packages, ensure you have provided at least one directory as an entry point containing package.json",
18
18
  nested_packages_unsupported_0: "Project at {0} has entryPointStrategy set to packages, but nested packages are not supported",
19
+ package_option_0_should_be_specified_at_root: "The packageOptions option sets option {0}, which only has an affect at the root level",
19
20
  previous_error_occurred_when_reading_options_for_0: "The previous error occurred when reading options for the package at {0}",
20
21
  converting_project_at_0: "Converting project at {0}",
21
22
  failed_to_convert_packages: "Failed to convert one or more packages, result will not be merged together",
@@ -193,6 +194,7 @@ module.exports = {
193
194
  help_basePath: "Specifies the base path to be used when displaying file paths",
194
195
  help_excludeTags: "Remove the listed block/modifier tags from doc comments",
195
196
  help_notRenderedTags: "Tags which will be preserved in doc comments, but not rendered when creating output",
197
+ help_cascadedModifierTags: "Modifier tags which should be copied to all children of the parent reflection",
196
198
  help_readme: "Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page and start the documentation on the globals page",
197
199
  help_cname: "Set the CNAME file text, it's useful for custom domains on GitHub Pages",
198
200
  help_favicon: "Path to favicon to include as the site icon",
@@ -13,6 +13,7 @@ declare const _default: {
13
13
  readonly no_entry_points_for_packages: "No entry points provided to packages mode, documentation cannot be generated";
14
14
  readonly failed_to_find_packages: "Failed to find any packages, ensure you have provided at least one directory as an entry point containing package.json";
15
15
  readonly nested_packages_unsupported_0: "Project at {0} has entryPointStrategy set to packages, but nested packages are not supported";
16
+ readonly package_option_0_should_be_specified_at_root: "The packageOptions option sets option {0}, which only has an affect at the root level";
16
17
  readonly previous_error_occurred_when_reading_options_for_0: "The previous error occurred when reading options for the package at {0}";
17
18
  readonly converting_project_at_0: "Converting project at {0}";
18
19
  readonly failed_to_convert_packages: "Failed to convert one or more packages, result will not be merged together";
@@ -180,6 +181,7 @@ declare const _default: {
180
181
  readonly help_basePath: "Specifies the base path to be used when displaying file paths";
181
182
  readonly help_excludeTags: "Remove the listed block/modifier tags from doc comments";
182
183
  readonly help_notRenderedTags: "Tags which will be preserved in doc comments, but not rendered when creating output";
184
+ readonly help_cascadedModifierTags: "Modifier tags which should be copied to all children of the parent reflection";
183
185
  readonly help_readme: "Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page and start the documentation on the globals page";
184
186
  readonly help_cname: "Set the CNAME file text, it's useful for custom domains on GitHub Pages";
185
187
  readonly help_favicon: "Path to favicon to include as the site icon";
@@ -63,7 +63,8 @@ module.exports = localeUtils.buildIncompleteTranslation({
63
63
  failed_to_resolve_link_to_0_in_document_1_may_have_meant_2: "无法解析文档 {1} 中指向 “{0}” 的链接。您可能想要 “{2}”",
64
64
  type_0_defined_in_1_is_referenced_by_2_but_not_included_in_docs: "{0} 在 {1} 中定义,被 {2} 引用,但未包含在文档中",
65
65
  reflection_0_kind_1_defined_in_2_does_not_have_any_documentation: "{0} ({1}),在 {2} 中定义,没有任何文档",
66
- invalid_intentionally_not_exported_symbols_0: "以下符号被标记为有意不导出,但未在文档中引用,或已被导出:\n{0}",
66
+ invalid_intentionally_not_documented_names_0: "以下的限定反射名称被设定为刻意无文档说明,但它们要么未在文档中被引用,要么已有文档说明:\n\t{0}",
67
+ invalid_intentionally_not_exported_symbols_0: "以下符号被设定为刻意非导出,但它们要么未在文档中被引用,要么已为导出符号:\n{0}",
67
68
  reflection_0_has_unused_mergeModuleWith_tag: "{0} 中存在无法解析的 @mergeModuleWith 标签",
68
69
  reflection_0_links_to_1_with_text_2_but_resolved_to_3: "“{0}”中的链接“{2}”指向“{1}”,目标虽然存在但并没有直接的链接,因此将改为链接至“{3}”。",
69
70
  // conversion plugins
@@ -194,6 +195,7 @@ module.exports = localeUtils.buildIncompleteTranslation({
194
195
  help_basePath: "指定显示文件路径时使用的基本路径",
195
196
  help_excludeTags: "从文档注释中删除列出的块级/修饰符标签",
196
197
  help_notRenderedTags: "保留在文档注释中但在创建输出时不渲染的标签",
198
+ help_cascadedModifierTags: "需要从父反射复制至所有子反射的修饰符标签",
197
199
  help_readme: "应显示在索引页上的自述文件路径。传递“none”以禁用索引页并在全局页上启动文档",
198
200
  help_cname: "设置 CNAME 文件文本,这对于 GitHub Pages 上的自定义域很有用",
199
201
  help_favicon: "作为站点图标包含的 favicon 的路径",
@@ -222,6 +224,7 @@ module.exports = localeUtils.buildIncompleteTranslation({
222
224
  help_searchGroupBoosts: "配置搜索以增强所选种类(例如“类别”)的相关性",
223
225
  help_useFirstParagraphOfCommentAsSummary: "如果设置,且没有指定 @summary 标签,TypeDoc 会使用注释的第一行作为在模块/命名空间一览里的概述",
224
226
  help_jsDocCompatibility: "设置注释解析的兼容性选项,以增加与 JSDoc 注释的相似度",
227
+ help_suppressCommentWarningsInDeclarationFiles: "阻止 .d.ts 文件的注释中因为存在未指定的标签而弹出的警告。",
225
228
  help_commentStyle: "确定 TypeDoc 如何搜索注释",
226
229
  help_useTsLinkResolution: "使用 TypeScript 的链接解析来确定 @link 标签指向的位置。这仅适用于 JSDoc 样式注释",
227
230
  help_preserveLinkText: "如果设置,不带链接文本的 @link 标签将使用文本内容作为链接。如果未设置,将使用目标反射名称",
@@ -246,8 +249,10 @@ module.exports = localeUtils.buildIncompleteTranslation({
246
249
  help_logLevel: "指定应使用什么级别的日志记录",
247
250
  help_treatWarningsAsErrors: "如果设置,所有警告都将被视为错误",
248
251
  help_treatValidationWarningsAsErrors: "如果设置,验证期间发出的警告将被视为错误。此选项不能用于禁用验证警告的 treatWarningsAsErrors",
249
- help_intentionallyNotExported: "不应产生“引用但未记录”警告的类型列表",
250
- help_requiredToBeDocumented: "必须记录的反射类型列表",
252
+ help_intentionallyNotExported: "不会因为“引用但并未导出”而产生警告的符号列表",
253
+ help_requiredToBeDocumented: "需要有文档说明的反射类型列表",
254
+ help_packagesRequiringDocumentation: "需要有文档说明的包的列表",
255
+ help_intentionallyNotDocumented: "不会因为无文档说明而产生警告的完整反射名称列表",
251
256
  help_validation: "指定 TypeDoc 应对生成的文档执行哪些验证步骤",
252
257
  // ==================================================================
253
258
  // Option validation