@apify/docusaurus-plugin-typedoc-api 4.4.11 → 5.0.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 (278) hide show
  1. package/README.md +38 -296
  2. package/lib/components/AnchorLink.d.ts +5 -0
  3. package/lib/components/AnchorLink.d.ts.map +1 -0
  4. package/lib/components/AnchorLink.js +7 -26
  5. package/lib/components/AnchorLink.js.map +1 -1
  6. package/lib/components/ApiChangelog.d.ts +6 -0
  7. package/lib/components/ApiChangelog.d.ts.map +1 -0
  8. package/lib/components/ApiChangelog.js +7 -24
  9. package/lib/components/ApiChangelog.js.map +1 -1
  10. package/lib/components/ApiDataContext.d.ts +6 -0
  11. package/lib/components/ApiDataContext.d.ts.map +1 -0
  12. package/lib/components/ApiDataContext.js +12 -15
  13. package/lib/components/ApiDataContext.js.map +1 -1
  14. package/lib/components/ApiIndex.d.ts +14 -0
  15. package/lib/components/ApiIndex.d.ts.map +1 -0
  16. package/lib/components/ApiIndex.js +33 -93
  17. package/lib/components/ApiIndex.js.map +1 -1
  18. package/lib/components/ApiItem.d.ts +6 -0
  19. package/lib/components/ApiItem.d.ts.map +1 -0
  20. package/lib/components/ApiItem.js +131 -191
  21. package/lib/components/ApiItem.js.map +1 -1
  22. package/lib/components/ApiItemLayout.d.ts +14 -0
  23. package/lib/components/ApiItemLayout.d.ts.map +1 -0
  24. package/lib/components/ApiItemLayout.js +21 -97
  25. package/lib/components/ApiItemLayout.js.map +1 -1
  26. package/lib/components/ApiOptionsContext.d.ts +5 -0
  27. package/lib/components/ApiOptionsContext.d.ts.map +1 -0
  28. package/lib/components/ApiOptionsContext.js +5 -9
  29. package/lib/components/ApiOptionsContext.js.map +1 -1
  30. package/lib/components/ApiOptionsLayout.d.ts +4 -0
  31. package/lib/components/ApiOptionsLayout.d.ts.map +1 -0
  32. package/lib/components/ApiOptionsLayout.js +10 -34
  33. package/lib/components/ApiOptionsLayout.js.map +1 -1
  34. package/lib/components/ApiPage.d.ts +11 -0
  35. package/lib/components/ApiPage.d.ts.map +1 -0
  36. package/lib/components/ApiPage.js +50 -63
  37. package/lib/components/ApiPage.js.map +1 -1
  38. package/lib/components/Breadcrumb.d.ts +7 -0
  39. package/lib/components/Breadcrumb.d.ts.map +1 -0
  40. package/lib/components/Breadcrumb.js +17 -49
  41. package/lib/components/Breadcrumb.js.map +1 -1
  42. package/lib/components/Comment.d.ts +10 -0
  43. package/lib/components/Comment.d.ts.map +1 -0
  44. package/lib/components/Comment.js +33 -60
  45. package/lib/components/Comment.js.map +1 -1
  46. package/lib/components/CommentBadges.d.ts +9 -0
  47. package/lib/components/CommentBadges.d.ts.map +1 -0
  48. package/lib/components/CommentBadges.js +16 -28
  49. package/lib/components/CommentBadges.js.map +1 -1
  50. package/lib/components/DefaultValue.d.ts +10 -0
  51. package/lib/components/DefaultValue.d.ts.map +1 -0
  52. package/lib/components/DefaultValue.js +25 -55
  53. package/lib/components/DefaultValue.js.map +1 -1
  54. package/lib/components/Flags.d.ts +6 -0
  55. package/lib/components/Flags.d.ts.map +1 -0
  56. package/lib/components/Flags.js +11 -22
  57. package/lib/components/Flags.js.map +1 -1
  58. package/lib/components/Footer.d.ts +2 -0
  59. package/lib/components/Footer.d.ts.map +1 -0
  60. package/lib/components/Footer.js +4 -16
  61. package/lib/components/Footer.js.map +1 -1
  62. package/lib/components/Hierarchy.d.ts +6 -0
  63. package/lib/components/Hierarchy.d.ts.map +1 -0
  64. package/lib/components/Hierarchy.js +5 -25
  65. package/lib/components/Hierarchy.js.map +1 -1
  66. package/lib/components/Icon.d.ts +6 -0
  67. package/lib/components/Icon.d.ts.map +1 -0
  68. package/lib/components/Icon.js +10 -21
  69. package/lib/components/Icon.js.map +1 -1
  70. package/lib/components/Index.d.ts +9 -0
  71. package/lib/components/Index.d.ts.map +1 -0
  72. package/lib/components/Index.js +30 -113
  73. package/lib/components/Index.js.map +1 -1
  74. package/lib/components/Markdown.d.ts +5 -0
  75. package/lib/components/Markdown.d.ts.map +1 -0
  76. package/lib/components/Markdown.js +138 -202
  77. package/lib/components/Markdown.js.map +1 -1
  78. package/lib/components/Member.d.ts +5 -0
  79. package/lib/components/Member.d.ts.map +1 -0
  80. package/lib/components/Member.js +40 -69
  81. package/lib/components/Member.js.map +1 -1
  82. package/lib/components/MemberDeclaration.d.ts +5 -0
  83. package/lib/components/MemberDeclaration.d.ts.map +1 -0
  84. package/lib/components/MemberDeclaration.js +20 -71
  85. package/lib/components/MemberDeclaration.js.map +1 -1
  86. package/lib/components/MemberGetterSetter.d.ts +8 -0
  87. package/lib/components/MemberGetterSetter.d.ts.map +1 -0
  88. package/lib/components/MemberGetterSetter.js +13 -68
  89. package/lib/components/MemberGetterSetter.js.map +1 -1
  90. package/lib/components/MemberReference.d.ts +6 -0
  91. package/lib/components/MemberReference.d.ts.map +1 -0
  92. package/lib/components/MemberReference.js +18 -48
  93. package/lib/components/MemberReference.js.map +1 -1
  94. package/lib/components/MemberSignatureBody.d.ts +9 -0
  95. package/lib/components/MemberSignatureBody.d.ts.map +1 -0
  96. package/lib/components/MemberSignatureBody.js +85 -182
  97. package/lib/components/MemberSignatureBody.js.map +1 -1
  98. package/lib/components/MemberSignatureTitle.d.ts +11 -0
  99. package/lib/components/MemberSignatureTitle.d.ts.map +1 -0
  100. package/lib/components/MemberSignatureTitle.js +27 -81
  101. package/lib/components/MemberSignatureTitle.js.map +1 -1
  102. package/lib/components/MemberSignatures.d.ts +7 -0
  103. package/lib/components/MemberSignatures.d.ts.map +1 -0
  104. package/lib/components/MemberSignatures.js +18 -66
  105. package/lib/components/MemberSignatures.js.map +1 -1
  106. package/lib/components/MemberSources.d.ts +7 -0
  107. package/lib/components/MemberSources.d.ts.map +1 -0
  108. package/lib/components/MemberSources.js +10 -34
  109. package/lib/components/MemberSources.js.map +1 -1
  110. package/lib/components/Members.d.ts +6 -0
  111. package/lib/components/Members.d.ts.map +1 -0
  112. package/lib/components/Members.js +29 -49
  113. package/lib/components/Members.js.map +1 -1
  114. package/lib/components/MembersGroup.d.ts +6 -0
  115. package/lib/components/MembersGroup.d.ts.map +1 -0
  116. package/lib/components/MembersGroup.js +16 -40
  117. package/lib/components/MembersGroup.js.map +1 -1
  118. package/lib/components/Parameter.d.ts +6 -0
  119. package/lib/components/Parameter.d.ts.map +1 -0
  120. package/lib/components/Parameter.js +35 -171
  121. package/lib/components/Parameter.js.map +1 -1
  122. package/lib/components/Reflection.d.ts +6 -0
  123. package/lib/components/Reflection.d.ts.map +1 -0
  124. package/lib/components/Reflection.js +29 -132
  125. package/lib/components/Reflection.js.map +1 -1
  126. package/lib/components/SourceLink.d.ts +10 -0
  127. package/lib/components/SourceLink.d.ts.map +1 -0
  128. package/lib/components/SourceLink.js +16 -36
  129. package/lib/components/SourceLink.js.map +1 -1
  130. package/lib/components/Type.d.ts +12 -0
  131. package/lib/components/Type.d.ts.map +1 -0
  132. package/lib/components/Type.js +142 -464
  133. package/lib/components/Type.js.map +1 -1
  134. package/lib/components/TypeAndParent.d.ts +6 -0
  135. package/lib/components/TypeAndParent.d.ts.map +1 -0
  136. package/lib/components/TypeAndParent.js +11 -27
  137. package/lib/components/TypeAndParent.js.map +1 -1
  138. package/lib/components/TypeParameters.d.ts +6 -0
  139. package/lib/components/TypeParameters.d.ts.map +1 -0
  140. package/lib/components/TypeParameters.js +10 -38
  141. package/lib/components/TypeParameters.js.map +1 -1
  142. package/lib/components/TypeParametersGeneric.d.ts +6 -0
  143. package/lib/components/TypeParametersGeneric.d.ts.map +1 -0
  144. package/lib/components/TypeParametersGeneric.js +8 -27
  145. package/lib/components/TypeParametersGeneric.js.map +1 -1
  146. package/lib/components/VersionBanner.d.ts +2 -0
  147. package/lib/components/VersionBanner.d.ts.map +1 -0
  148. package/lib/components/VersionBanner.js +18 -49
  149. package/lib/components/VersionBanner.js.map +1 -1
  150. package/lib/hooks/useBreadcrumbs.d.ts +2 -0
  151. package/lib/hooks/useBreadcrumbs.d.ts.map +1 -0
  152. package/lib/hooks/useBreadcrumbs.js +5 -8
  153. package/lib/hooks/useBreadcrumbs.js.map +1 -1
  154. package/lib/hooks/useGitRefName.d.ts +2 -0
  155. package/lib/hooks/useGitRefName.d.ts.map +1 -0
  156. package/lib/hooks/useGitRefName.js +5 -8
  157. package/lib/hooks/useGitRefName.js.map +1 -1
  158. package/lib/hooks/useMinimalLayout.d.ts +2 -0
  159. package/lib/hooks/useMinimalLayout.d.ts.map +1 -0
  160. package/lib/hooks/useMinimalLayout.js +5 -8
  161. package/lib/hooks/useMinimalLayout.js.map +1 -1
  162. package/lib/hooks/useReflection.d.ts +4 -0
  163. package/lib/hooks/useReflection.d.ts.map +1 -0
  164. package/lib/hooks/useReflection.js +15 -21
  165. package/lib/hooks/useReflection.js.map +1 -1
  166. package/lib/hooks/useReflectionMap.d.ts +3 -0
  167. package/lib/hooks/useReflectionMap.d.ts.map +1 -0
  168. package/lib/hooks/useReflectionMap.js +5 -8
  169. package/lib/hooks/useReflectionMap.js.map +1 -1
  170. package/lib/index.d.ts +4 -0
  171. package/lib/index.d.ts.map +1 -0
  172. package/lib/index.js +349 -361
  173. package/lib/index.js.map +1 -1
  174. package/lib/markdownLoader.d.ts +6 -0
  175. package/lib/markdownLoader.d.ts.map +1 -0
  176. package/lib/markdownLoader.js +6 -10
  177. package/lib/markdownLoader.js.map +1 -1
  178. package/lib/plugin/data.d.ts +21 -0
  179. package/lib/plugin/data.d.ts.map +1 -0
  180. package/lib/plugin/data.js +391 -429
  181. package/lib/plugin/data.js.map +1 -1
  182. package/lib/plugin/python/consts.d.ts +35 -0
  183. package/lib/plugin/python/consts.d.ts.map +1 -0
  184. package/lib/plugin/python/consts.js +44 -44
  185. package/lib/plugin/python/consts.js.map +1 -1
  186. package/lib/plugin/python/index.d.ts +12 -0
  187. package/lib/plugin/python/index.d.ts.map +1 -0
  188. package/lib/plugin/python/index.js +25 -36
  189. package/lib/plugin/python/index.js.map +1 -1
  190. package/lib/plugin/python/inheritance.d.ts +42 -0
  191. package/lib/plugin/python/inheritance.d.ts.map +1 -0
  192. package/lib/plugin/python/inheritance.js +148 -153
  193. package/lib/plugin/python/inheritance.js.map +1 -1
  194. package/lib/plugin/python/packageVersions.d.ts +7 -0
  195. package/lib/plugin/python/packageVersions.d.ts.map +1 -0
  196. package/lib/plugin/python/packageVersions.js +30 -38
  197. package/lib/plugin/python/packageVersions.js.map +1 -1
  198. package/lib/plugin/python/transformation.d.ts +80 -0
  199. package/lib/plugin/python/transformation.d.ts.map +1 -0
  200. package/lib/plugin/python/transformation.js +350 -392
  201. package/lib/plugin/python/transformation.js.map +1 -1
  202. package/lib/plugin/python/type-parsing/index.d.ts +34 -0
  203. package/lib/plugin/python/type-parsing/index.d.ts.map +1 -0
  204. package/lib/plugin/python/type-parsing/index.js +78 -85
  205. package/lib/plugin/python/type-parsing/index.js.map +1 -1
  206. package/lib/plugin/python/types.d.ts +112 -0
  207. package/lib/plugin/python/types.d.ts.map +1 -0
  208. package/lib/plugin/python/types.js +2 -2
  209. package/lib/plugin/python/types.js.map +1 -1
  210. package/lib/plugin/python/utils.d.ts +40 -0
  211. package/lib/plugin/python/utils.d.ts.map +1 -0
  212. package/lib/plugin/python/utils.js +74 -73
  213. package/lib/plugin/python/utils.js.map +1 -1
  214. package/lib/plugin/sidebar.d.ts +6 -0
  215. package/lib/plugin/sidebar.d.ts.map +1 -0
  216. package/lib/plugin/sidebar.js +94 -96
  217. package/lib/plugin/sidebar.js.map +1 -1
  218. package/lib/plugin/structure/0.23.d.ts +3 -0
  219. package/lib/plugin/structure/0.23.d.ts.map +1 -0
  220. package/lib/plugin/structure/0.23.js +33 -41
  221. package/lib/plugin/structure/0.23.js.map +1 -1
  222. package/lib/plugin/url.d.ts +6 -0
  223. package/lib/plugin/url.d.ts.map +1 -0
  224. package/lib/plugin/url.js +36 -46
  225. package/lib/plugin/url.js.map +1 -1
  226. package/lib/plugin/version.d.ts +5 -0
  227. package/lib/plugin/version.d.ts.map +1 -0
  228. package/lib/plugin/version.js +73 -78
  229. package/lib/plugin/version.js.map +1 -1
  230. package/lib/types.d.ts +142 -0
  231. package/lib/types.d.ts.map +1 -0
  232. package/lib/types.js +2 -2
  233. package/lib/types.js.map +1 -1
  234. package/lib/utils/helpers.d.ts +2 -0
  235. package/lib/utils/helpers.d.ts.map +1 -0
  236. package/lib/utils/helpers.js +5 -7
  237. package/lib/utils/helpers.js.map +1 -1
  238. package/lib/utils/hierarchy.d.ts +8 -0
  239. package/lib/utils/hierarchy.d.ts.map +1 -0
  240. package/lib/utils/hierarchy.js +31 -33
  241. package/lib/utils/hierarchy.js.map +1 -1
  242. package/lib/utils/icons.d.ts +5 -0
  243. package/lib/utils/icons.d.ts.map +1 -0
  244. package/lib/utils/icons.js +82 -114
  245. package/lib/utils/icons.js.map +1 -1
  246. package/lib/utils/links.d.ts +2 -0
  247. package/lib/utils/links.d.ts.map +1 -0
  248. package/lib/utils/links.js +24 -41
  249. package/lib/utils/links.js.map +1 -1
  250. package/lib/utils/markdown.d.ts +4 -0
  251. package/lib/utils/markdown.d.ts.map +1 -0
  252. package/lib/utils/markdown.js +45 -54
  253. package/lib/utils/markdown.js.map +1 -1
  254. package/lib/utils/reexports.d.ts +5 -0
  255. package/lib/utils/reexports.d.ts.map +1 -0
  256. package/lib/utils/reexports.js +90 -90
  257. package/lib/utils/reexports.js.map +1 -1
  258. package/lib/utils/removeScopes.d.ts +2 -0
  259. package/lib/utils/removeScopes.d.ts.map +1 -0
  260. package/lib/utils/removeScopes.js +7 -0
  261. package/lib/utils/removeScopes.js.map +1 -0
  262. package/lib/utils/visibility.d.ts +6 -0
  263. package/lib/utils/visibility.d.ts.map +1 -0
  264. package/lib/utils/visibility.js +14 -19
  265. package/lib/utils/visibility.js.map +1 -1
  266. package/package.json +24 -17
  267. package/src/components/ApiIndex.tsx +1 -1
  268. package/src/components/Type.tsx +4 -4
  269. package/src/index.ts +2 -2
  270. package/src/plugin/data.ts +3 -3
  271. package/src/plugin/python/index.ts +3 -3
  272. package/src/plugin/python/packageVersions.ts +3 -3
  273. package/src/plugin/sidebar.ts +1 -1
  274. package/src/plugin/url.ts +1 -1
  275. package/src/plugin/version.ts +1 -1
  276. package/src/utils/links.ts +1 -12
  277. package/src/utils/removeScopes.ts +10 -0
  278. /package/{assets/styles-8ad572ec.css → lib/components/styles.css} +0 -0
@@ -1,474 +1,152 @@
1
- 'use strict';
2
-
3
- const react = require('react');
4
- const Link = require('@docusaurus/Link');
5
- const useGlobalData = require('@docusaurus/useGlobalData');
6
- const useReflectionMap = require('../hooks/useReflectionMap.js');
7
- const MemberSignatureTitle = require('./MemberSignatureTitle.js');
8
- const jsxRuntime = require('react/jsx-runtime');
9
- const _interopDefault = e => e && e.__esModule ? e : {
10
- default: e
11
- };
12
- const Link__default = /*#__PURE__*/_interopDefault(Link);
13
-
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
2
  /* eslint-disable react/no-array-index-key */
15
-
16
- function extractDeclarationFromType(type) {
17
- if (!type) {
18
- return undefined;
19
- }
20
- return type?.declaration;
3
+ // https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/type.hbs
4
+ import { Fragment } from 'react';
5
+ import Link from '@docusaurus/Link';
6
+ import { usePluginData } from '@docusaurus/useGlobalData';
7
+ import { useReflectionMap } from '../hooks/useReflectionMap';
8
+ import { MemberSignatureTitle } from './MemberSignatureTitle';
9
+ export function extractDeclarationFromType(type) {
10
+ if (!type) {
11
+ return undefined;
12
+ }
13
+ return type === null || type === void 0 ? void 0 : type.declaration;
21
14
  }
22
15
  function parens(element, needsParens) {
23
- if (!needsParens) {
24
- return element;
25
- }
26
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
27
- children: [needsParens && /*#__PURE__*/jsxRuntime.jsx("span", {
28
- className: "tsd-signature-symbol",
29
- children: "("
30
- }), element, needsParens && /*#__PURE__*/jsxRuntime.jsx("span", {
31
- className: "tsd-signature-symbol",
32
- children: ")"
33
- })]
34
- });
16
+ if (!needsParens) {
17
+ return element;
18
+ }
19
+ return (_jsxs(_Fragment, { children: [needsParens && _jsx("span", { className: "tsd-signature-symbol", children: "(" }), element, needsParens && _jsx("span", { className: "tsd-signature-symbol", children: ")" })] }));
35
20
  }
36
- function Type({
37
- needsParens = false,
38
- type: base
39
- }) {
40
- const reflections = useReflectionMap.useReflectionMap();
41
- const _useGlobalData$usePlu = useGlobalData.usePluginData('docusaurus-plugin-typedoc-api'),
42
- isPython = _useGlobalData$usePlu.isPython;
43
- if (!base) {
44
- return null;
45
- }
46
-
47
- // Cast to string since `type` doesnt include all string values in the union.
48
- // https://github.com/TypeStrong/typedoc/blob/master/src/lib/output/themes/default/partials/type.tsx
49
- switch (String(base.type)) {
50
- case 'array':
51
- {
52
- const type = base;
53
-
54
- // If the array provides a non-empty "value" property, it's likely the default value of the array we want to render.
55
- if (type.value) {
56
- // eslint-disable-next-line
57
- type.type = 'literal';
58
- return /*#__PURE__*/jsxRuntime.jsx(Type, {
59
- type: type
60
- });
21
+ export function Type({ needsParens = false, type: base }) {
22
+ var _a, _b, _c, _d, _e, _f;
23
+ const reflections = useReflectionMap();
24
+ const { isPython } = usePluginData('docusaurus-plugin-typedoc-api');
25
+ if (!base) {
26
+ return null;
27
+ }
28
+ // Cast to string since `type` doesnt include all string values in the union.
29
+ // https://github.com/TypeStrong/typedoc/blob/master/src/lib/output/themes/default/partials/type.tsx
30
+ switch (String(base.type)) {
31
+ case 'array': {
32
+ const type = base;
33
+ // If the array provides a non-empty "value" property, it's likely the default value of the array we want to render.
34
+ if (type.value) {
35
+ // eslint-disable-next-line
36
+ type.type = 'literal';
37
+ return _jsx(Type, { type: type });
38
+ }
39
+ return (_jsxs(_Fragment, { children: [_jsx(Type, { needsParens: true, type: type.elementType }), _jsx("span", { className: "tsd-signature-symbol", children: "[]" })] }));
61
40
  }
62
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
63
- children: [/*#__PURE__*/jsxRuntime.jsx(Type, {
64
- needsParens: true,
65
- type: type.elementType
66
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
67
- className: "tsd-signature-symbol",
68
- children: "[]"
69
- })]
70
- });
71
- }
72
- case 'conditional':
73
- {
74
- const type = base;
75
- return parens( /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
76
- children: [/*#__PURE__*/jsxRuntime.jsx(Type, {
77
- needsParens: true,
78
- type: type.checkType
79
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
80
- className: "tsd-signature-symbol",
81
- children: " extends "
82
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
83
- type: type.extendsType
84
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
85
- className: "tsd-signature-symbol",
86
- children: " ? "
87
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
88
- type: type.trueType
89
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
90
- className: "tsd-signature-symbol",
91
- children: " : "
92
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
93
- type: type.falseType
94
- })]
95
- }), needsParens);
96
- }
97
- case 'indexedAccess':
98
- {
99
- const type = base;
100
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
101
- children: [/*#__PURE__*/jsxRuntime.jsx(Type, {
102
- type: type.objectType
103
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
104
- className: "tsd-signature-symbol",
105
- children: "["
106
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
107
- type: type.indexType
108
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
109
- className: "tsd-signature-symbol",
110
- children: "]"
111
- })]
112
- });
113
- }
114
- case 'inferred':
115
- {
116
- const type = base;
117
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
118
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
119
- className: "tsd-signature-symbol",
120
- children: "infer "
121
- }), " ", type.name]
122
- });
123
- }
124
- case 'intersection':
125
- {
126
- const type = base;
127
- return parens( /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
128
- children: type.types.map((t, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
129
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
130
- className: "tsd-signature-symbol",
131
- children: " & "
132
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
133
- needsParens: true,
134
- type: t
135
- })]
136
- }, t.type + i))
137
- }), needsParens);
138
- }
139
- case 'intrinsic':
140
- {
141
- const type = base;
142
- return /*#__PURE__*/jsxRuntime.jsx("span", {
143
- className: "tsd-signature-type",
144
- children: type.name
145
- });
146
- }
147
- case 'literal':
148
- {
149
- const type = base;
150
- if (isPython && (type.value === null || typeof type.value === 'object' && Object.keys(type.value).length === 0)) {
151
- return /*#__PURE__*/jsxRuntime.jsx("span", {
152
- className: "tsd-signature-type",
153
- children: "None"
154
- });
41
+ case 'conditional': {
42
+ const type = base;
43
+ return parens(_jsxs(_Fragment, { children: [_jsx(Type, { needsParens: true, type: type.checkType }), _jsx("span", { className: "tsd-signature-symbol", children: " extends " }), _jsx(Type, { type: type.extendsType }), _jsx("span", { className: "tsd-signature-symbol", children: " ? " }), _jsx(Type, { type: type.trueType }), _jsx("span", { className: "tsd-signature-symbol", children: " : " }), _jsx(Type, { type: type.falseType })] }), needsParens);
155
44
  }
156
- return /*#__PURE__*/jsxRuntime.jsx("span", {
157
- className: "tsd-signature-type",
158
- children: String(type.value)
159
- });
160
- }
161
- case 'mapped':
162
- {
163
- const type = base;
164
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
165
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
166
- className: "tsd-signature-symbol",
167
- children: '{ '
168
- }), type.readonlyModifier === '+' && /*#__PURE__*/jsxRuntime.jsx("span", {
169
- className: "tsd-signature-symbol",
170
- children: "readonly "
171
- }), type.readonlyModifier === '-' && /*#__PURE__*/jsxRuntime.jsx("span", {
172
- className: "tsd-signature-symbol",
173
- children: "-readonly "
174
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
175
- className: "tsd-signature-symbol",
176
- children: "[ "
177
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
178
- className: "tsd-signature-type",
179
- children: type.parameter
180
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
181
- className: "tsd-signature-symbol",
182
- children: " in "
183
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
184
- type: type.parameterType
185
- }), type.nameType && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
186
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
187
- className: "tsd-signature-symbol",
188
- children: " as "
189
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
190
- type: type.nameType
191
- })]
192
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
193
- className: "tsd-signature-symbol",
194
- children: " ]"
195
- }), type.optionalModifier === '+' && /*#__PURE__*/jsxRuntime.jsx("span", {
196
- className: "tsd-signature-symbol",
197
- children: "?: "
198
- }), type.optionalModifier === '-' && /*#__PURE__*/jsxRuntime.jsx("span", {
199
- className: "tsd-signature-symbol",
200
- children: "-?: "
201
- }), !type.optionalModifier && /*#__PURE__*/jsxRuntime.jsx("span", {
202
- className: "tsd-signature-symbol",
203
- children: ": "
204
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
205
- type: type.templateType
206
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
207
- className: "tsd-signature-symbol",
208
- children: ' }'
209
- })]
210
- });
211
- }
212
- case 'optional':
213
- {
214
- const type = base;
215
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
216
- children: [/*#__PURE__*/jsxRuntime.jsx(Type, {
217
- type: type.elementType
218
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
219
- className: "tsd-signature-symbol",
220
- children: "?"
221
- })]
222
- });
223
- }
224
- case 'predicate':
225
- {
226
- const type = base;
227
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
228
- children: [type.asserts && /*#__PURE__*/jsxRuntime.jsx("span", {
229
- className: "tsd-signature-symbol",
230
- children: "asserts "
231
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
232
- className: "tsd-signature-type",
233
- children: type.name
234
- }), type.targetType && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
235
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
236
- className: "tsd-signature-symbol",
237
- children: " is "
238
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
239
- type: type.targetType
240
- })]
241
- })]
242
- });
243
- }
244
- case 'query':
245
- {
246
- const type = base;
247
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
248
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
249
- className: "tsd-signature-symbol",
250
- children: "typeof "
251
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
252
- type: type.queryType
253
- })]
254
- });
255
- }
256
- case 'reference':
257
- {
258
- const type = base;
259
- // eslint-disable-next-line
260
- const reflectionIdentifier = type.target ?? type.id;
261
- const ref = type.ref ?? (reflectionIdentifier ? reflections[Number(reflectionIdentifier)] : null);
262
- const genericClass = ref?.id && !ref.sources ? 'tsd-signature-type-generic' : '';
263
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
264
- children: [ref?.permalink ? /*#__PURE__*/jsxRuntime.jsx(Link__default.default, {
265
- className: `tsd-signature-type ${genericClass}`,
266
- "data-tsd-kind": ref.kind,
267
- to: ref.permalink,
268
- children: type.name
269
- }) : /*#__PURE__*/jsxRuntime.jsx("span", {
270
- className: `tsd-signature-type ${genericClass}`,
271
- children: type.name
272
- }), type.typeArguments && type.typeArguments.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
273
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
274
- className: "tsd-signature-symbol",
275
- children: isPython ? '[' : '<'
276
- }), type.typeArguments.map((t, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
277
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
278
- className: "tsd-signature-symbol",
279
- children: ", "
280
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
281
- type: t
282
- })]
283
- }, t.type + i)), /*#__PURE__*/jsxRuntime.jsx("span", {
284
- className: "tsd-signature-symbol",
285
- children: isPython ? ']' : '>'
286
- })]
287
- })]
288
- });
289
- }
290
- case 'reflection':
291
- {
292
- const type = base;
293
- const decl = type.declaration;
294
-
295
- // object literal
296
- if (decl?.children && decl.children.length > 0) {
297
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
298
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
299
- className: "tsd-signature-symbol",
300
- children: '{ '
301
- }), decl.children.map((child, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
302
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
303
- className: "tsd-signature-symbol",
304
- children: "; "
305
- }), /*#__PURE__*/jsxRuntime.jsxs("span", {
306
- children: [child.name, /*#__PURE__*/jsxRuntime.jsxs("span", {
307
- className: "tsd-signature-symbol",
308
- children: [child.flags?.isOptional && '?', ": "]
309
- }), child.type ? /*#__PURE__*/jsxRuntime.jsx(Type, {
310
- type: child.type
311
- }) : 'any']
312
- })]
313
- }, child.id ?? i)), /*#__PURE__*/jsxRuntime.jsx("span", {
314
- className: "tsd-signature-symbol",
315
- children: ' }'
316
- })]
317
- });
45
+ case 'indexedAccess': {
46
+ const type = base;
47
+ return (_jsxs(_Fragment, { children: [_jsx(Type, { type: type.objectType }), _jsx("span", { className: "tsd-signature-symbol", children: "[" }), _jsx(Type, { type: type.indexType }), _jsx("span", { className: "tsd-signature-symbol", children: "]" })] }));
318
48
  }
319
- if (decl?.signatures && decl.signatures.length === 1) {
320
- return /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
321
- hideName: true,
322
- useArrow: true,
323
- sig: decl.signatures[0]
324
- });
49
+ case 'inferred': {
50
+ const type = base;
51
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: "infer " }), " ", type.name] }));
325
52
  }
326
- if (decl?.signatures && decl.signatures.length > 0) {
327
- return parens( /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
328
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
329
- className: "tsd-signature-symbol",
330
- children: '{ '
331
- }), decl.signatures.map((sig, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
332
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
333
- className: "tsd-signature-symbol",
334
- children: "; "
335
- }), /*#__PURE__*/jsxRuntime.jsx(MemberSignatureTitle.MemberSignatureTitle, {
336
- sig: sig
337
- })]
338
- }, sig.id ?? i)), /*#__PURE__*/jsxRuntime.jsx("span", {
339
- className: "tsd-signature-symbol",
340
- children: ' }'
341
- })]
342
- }), needsParens);
53
+ case 'intersection': {
54
+ const type = base;
55
+ return parens(_jsx(_Fragment, { children: type.types.map((t, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: " & " }), _jsx(Type, { needsParens: true, type: t })] }, t.type + i))) }), needsParens);
343
56
  }
344
- return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
345
- children: '{}'
346
- });
347
- }
348
- case 'rest':
349
- {
350
- const type = base;
351
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
352
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
353
- className: "tsd-signature-symbol",
354
- children: "..."
355
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
356
- type: type.elementType
357
- })]
358
- });
359
- }
360
- case 'tuple':
361
- {
362
- const type = base;
363
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
364
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
365
- className: "tsd-signature-symbol",
366
- children: "["
367
- }), type.elements?.map((t, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
368
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
369
- className: "tsd-signature-symbol",
370
- children: ", "
371
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
372
- type: t
373
- })]
374
- }, t.type + i)), /*#__PURE__*/jsxRuntime.jsx("span", {
375
- className: "tsd-signature-symbol",
376
- children: "]"
377
- })]
378
- });
379
- }
380
- case 'typeOperator':
381
- {
382
- const type = base;
383
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
384
- children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
385
- className: "tsd-signature-symbol",
386
- children: [type.operator, " "]
387
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
388
- type: type.target
389
- })]
390
- });
391
- }
392
-
393
- // case 'typeParameter': {
394
- // const type = base as JSONOutput.TypeParameterType;
395
-
396
- // return <span className="tsd-signature-type">{type.name}</span>;
397
- // }
398
-
399
- case 'union':
400
- {
401
- const type = base;
402
- return parens( /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
403
- children: type.types.map((t, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
404
- children: [i > 0 && /*#__PURE__*/jsxRuntime.jsx("span", {
405
- className: "tsd-signature-symbol",
406
- children: " | "
407
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
408
- needsParens: true,
409
- type: t
410
- })]
411
- }, t.type + i))
412
- }), needsParens);
413
- }
414
- case 'unknown':
415
- {
416
- const type = base;
417
- return /*#__PURE__*/jsxRuntime.jsx("span", {
418
- className: "tsd-signature-type",
419
- children: type.name
420
- });
421
- }
422
- case 'named-tuple-member':
423
- case 'namedTupleMember':
424
- {
425
- const type = base;
426
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
427
- children: [type.name, /*#__PURE__*/jsxRuntime.jsx("span", {
428
- className: "tsd-signature-symbol",
429
- children: type.isOptional ? '?: ' : ': '
430
- }), /*#__PURE__*/jsxRuntime.jsx(Type, {
431
- type: type.element
432
- })]
433
- });
434
- }
435
- case 'template-literal':
436
- case 'templateLiteral':
437
- {
438
- const type = base;
439
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
440
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
441
- className: "tsd-signature-symbol",
442
- children: "`"
443
- }), type.head && /*#__PURE__*/jsxRuntime.jsx("span", {
444
- className: "tsd-signature-type",
445
- children: type.head
446
- }), type.tail.map((t, i) => /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
447
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
448
- className: "tsd-signature-symbol",
449
- children: '${'
450
- }), typeof t[0] !== 'string' && /*#__PURE__*/jsxRuntime.jsx(Type, {
451
- type: t[0]
452
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
453
- className: "tsd-signature-symbol",
454
- children: '}'
455
- }), typeof t[1] === 'string' && /*#__PURE__*/jsxRuntime.jsx("span", {
456
- className: "tsd-signature-type",
457
- children: t[1]
458
- })]
459
- }, i)), /*#__PURE__*/jsxRuntime.jsx("span", {
460
- className: "tsd-signature-symbol",
461
- children: "`"
462
- })]
463
- });
464
- }
465
- default:
466
- return /*#__PURE__*/jsxRuntime.jsx("span", {
467
- className: "tsd-signature-type",
468
- children: "void"
469
- });
470
- }
57
+ case 'intrinsic': {
58
+ const type = base;
59
+ return _jsx("span", { className: "tsd-signature-type", children: type.name });
60
+ }
61
+ case 'literal': {
62
+ const type = base;
63
+ if (isPython && (type.value === null
64
+ || (typeof type.value === 'object' && Object.keys(type.value).length === 0))) {
65
+ return _jsx("span", { className: "tsd-signature-type", children: "None" });
66
+ }
67
+ return _jsx("span", { className: "tsd-signature-type", children: String(type.value) });
68
+ }
69
+ case 'mapped': {
70
+ const type = base;
71
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: '{ ' }), type.readonlyModifier === '+' && _jsx("span", { className: "tsd-signature-symbol", children: "readonly " }), type.readonlyModifier === '-' && (_jsx("span", { className: "tsd-signature-symbol", children: "-readonly " })), _jsx("span", { className: "tsd-signature-symbol", children: "[ " }), _jsx("span", { className: "tsd-signature-type", children: type.parameter }), _jsx("span", { className: "tsd-signature-symbol", children: " in " }), _jsx(Type, { type: type.parameterType }), type.nameType && (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: " as " }), _jsx(Type, { type: type.nameType })] })), _jsx("span", { className: "tsd-signature-symbol", children: " ]" }), type.optionalModifier === '+' && _jsx("span", { className: "tsd-signature-symbol", children: "?: " }), type.optionalModifier === '-' && _jsx("span", { className: "tsd-signature-symbol", children: "-?: " }), !type.optionalModifier && _jsx("span", { className: "tsd-signature-symbol", children: ": " }), _jsx(Type, { type: type.templateType }), _jsx("span", { className: "tsd-signature-symbol", children: ' }' })] }));
72
+ }
73
+ case 'optional': {
74
+ const type = base;
75
+ return (_jsxs(_Fragment, { children: [_jsx(Type, { type: type.elementType }), _jsx("span", { className: "tsd-signature-symbol", children: "?" })] }));
76
+ }
77
+ case 'predicate': {
78
+ const type = base;
79
+ return (_jsxs(_Fragment, { children: [type.asserts && _jsx("span", { className: "tsd-signature-symbol", children: "asserts " }), _jsx("span", { className: "tsd-signature-type", children: type.name }), type.targetType && (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: " is " }), _jsx(Type, { type: type.targetType })] }))] }));
80
+ }
81
+ case 'query': {
82
+ const type = base;
83
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: "typeof " }), _jsx(Type, { type: type.queryType })] }));
84
+ }
85
+ case 'reference': {
86
+ const type = base;
87
+ // eslint-disable-next-line
88
+ const reflectionIdentifier = (_a = type.target) !== null && _a !== void 0 ? _a : type.id;
89
+ const ref = (_b = type.ref) !== null && _b !== void 0 ? _b : (reflectionIdentifier ? reflections[Number(reflectionIdentifier)] : null);
90
+ const genericClass = (ref === null || ref === void 0 ? void 0 : ref.id) && !ref.sources ? 'tsd-signature-type-generic' : '';
91
+ return (_jsxs(_Fragment, { children: [((_c = ref === null || ref === void 0 ? void 0 : ref.permalink) !== null && _c !== void 0 ? _c : type.externalUrl) ? (_jsx(Link, { className: `tsd-signature-type ${genericClass}`, "data-tsd-kind": (_d = ref === null || ref === void 0 ? void 0 : ref.kind) !== null && _d !== void 0 ? _d : undefined, to: (_e = ref === null || ref === void 0 ? void 0 : ref.permalink) !== null && _e !== void 0 ? _e : type.externalUrl, children: type.name })) : (_jsx("span", { className: `tsd-signature-type ${genericClass}`, children: type.name })), type.typeArguments && type.typeArguments.length > 0 && (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: isPython ? '[' : '<' }), type.typeArguments.map((t, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: ", " }), _jsx(Type, { type: t })] }, t.type + i))), _jsx("span", { className: "tsd-signature-symbol", children: isPython ? ']' : '>' })] }))] }));
92
+ }
93
+ case 'reflection': {
94
+ const type = base;
95
+ const decl = type.declaration;
96
+ // object literal
97
+ if ((decl === null || decl === void 0 ? void 0 : decl.children) && decl.children.length > 0) {
98
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: '{ ' }), decl.children.map((child, i) => {
99
+ var _a, _b;
100
+ return (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: "; " }), _jsxs("span", { children: [child.name, _jsxs("span", { className: "tsd-signature-symbol", children: [((_a = child.flags) === null || _a === void 0 ? void 0 : _a.isOptional) && '?', ": "] }), child.type ? _jsx(Type, { type: child.type }) : 'any'] })] }, (_b = child.id) !== null && _b !== void 0 ? _b : i));
101
+ }), _jsx("span", { className: "tsd-signature-symbol", children: ' }' })] }));
102
+ }
103
+ if ((decl === null || decl === void 0 ? void 0 : decl.signatures) && decl.signatures.length === 1) {
104
+ return _jsx(MemberSignatureTitle, { hideName: true, useArrow: true, sig: decl.signatures[0] });
105
+ }
106
+ if ((decl === null || decl === void 0 ? void 0 : decl.signatures) && decl.signatures.length > 0) {
107
+ return parens(_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: '{ ' }), decl.signatures.map((sig, i) => {
108
+ var _a;
109
+ return (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: "; " }), _jsx(MemberSignatureTitle, { sig: sig })] }, (_a = sig.id) !== null && _a !== void 0 ? _a : i));
110
+ }), _jsx("span", { className: "tsd-signature-symbol", children: ' }' })] }), needsParens);
111
+ }
112
+ return _jsx(_Fragment, { children: '{}' });
113
+ }
114
+ case 'rest': {
115
+ const type = base;
116
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: "..." }), _jsx(Type, { type: type.elementType })] }));
117
+ }
118
+ case 'tuple': {
119
+ const type = base;
120
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: "[" }), (_f = type.elements) === null || _f === void 0 ? void 0 : _f.map((t, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: ", " }), _jsx(Type, { type: t })] }, t.type + i))), _jsx("span", { className: "tsd-signature-symbol", children: "]" })] }));
121
+ }
122
+ case 'typeOperator': {
123
+ const type = base;
124
+ return (_jsxs(_Fragment, { children: [_jsxs("span", { className: "tsd-signature-symbol", children: [type.operator, " "] }), _jsx(Type, { type: type.target })] }));
125
+ }
126
+ // case 'typeParameter': {
127
+ // const type = base as JSONOutput.TypeParameterType;
128
+ // return <span className="tsd-signature-type">{type.name}</span>;
129
+ // }
130
+ case 'union': {
131
+ const type = base;
132
+ return parens(_jsx(_Fragment, { children: type.types.map((t, i) => (_jsxs(Fragment, { children: [i > 0 && _jsx("span", { className: "tsd-signature-symbol", children: " | " }), _jsx(Type, { needsParens: true, type: t })] }, t.type + i))) }), needsParens);
133
+ }
134
+ case 'unknown': {
135
+ const type = base;
136
+ return _jsx("span", { className: "tsd-signature-type", children: type.name });
137
+ }
138
+ case 'named-tuple-member':
139
+ case 'namedTupleMember': {
140
+ const type = base;
141
+ return (_jsxs(_Fragment, { children: [type.name, _jsx("span", { className: "tsd-signature-symbol", children: type.isOptional ? '?: ' : ': ' }), _jsx(Type, { type: type.element })] }));
142
+ }
143
+ case 'template-literal':
144
+ case 'templateLiteral': {
145
+ const type = base;
146
+ return (_jsxs(_Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: "`" }), type.head && _jsx("span", { className: "tsd-signature-type", children: type.head }), type.tail.map((t, i) => (_jsxs(Fragment, { children: [_jsx("span", { className: "tsd-signature-symbol", children: '${' }), typeof t[0] !== 'string' && _jsx(Type, { type: t[0] }), _jsx("span", { className: "tsd-signature-symbol", children: '}' }), typeof t[1] === 'string' && _jsx("span", { className: "tsd-signature-type", children: t[1] })] }, i))), _jsx("span", { className: "tsd-signature-symbol", children: "`" })] }));
147
+ }
148
+ default:
149
+ return _jsx("span", { className: "tsd-signature-type", children: "void" });
150
+ }
471
151
  }
472
- exports.Type = Type;
473
- exports.extractDeclarationFromType = extractDeclarationFromType;
474
- //# sourceMappingURL=Type.js.map
152
+ //# sourceMappingURL=Type.js.map