create-yoya-ui 0.2.0 → 0.2.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 (914) hide show
  1. package/README.md +11 -10
  2. package/bin/create-yoya-ui.js +1 -1
  3. package/package.json +1 -1
  4. package/templates/admin/README.md +59 -47
  5. package/templates/admin/RULES.md +105 -0
  6. package/templates/admin/dist/assets/index-C9C1xRte.js +35 -0
  7. package/templates/admin/dist/assets/index-Dh32qJDx.css +1 -0
  8. package/templates/admin/dist/index.html +13 -0
  9. package/templates/admin/node_modules/.bin/nanoid +16 -0
  10. package/templates/admin/node_modules/.bin/nanoid.cmd +17 -0
  11. package/templates/admin/node_modules/.bin/nanoid.ps1 +28 -0
  12. package/templates/admin/node_modules/.bin/rolldown +16 -0
  13. package/templates/admin/node_modules/.bin/rolldown.cmd +17 -0
  14. package/templates/admin/node_modules/.bin/rolldown.ps1 +28 -0
  15. package/templates/admin/node_modules/.bin/tsc +16 -0
  16. package/templates/admin/node_modules/.bin/tsc.cmd +17 -0
  17. package/templates/admin/node_modules/.bin/tsc.ps1 +28 -0
  18. package/templates/admin/node_modules/.bin/vite +16 -0
  19. package/templates/admin/node_modules/.bin/vite.cmd +17 -0
  20. package/templates/admin/node_modules/.bin/vite.ps1 +28 -0
  21. package/templates/admin/node_modules/.package-lock.json +389 -0
  22. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js +13116 -0
  23. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js.map +1 -0
  24. package/templates/admin/node_modules/.vite/deps/_metadata.json +12 -5
  25. package/templates/admin/node_modules/@oxc-project/types/LICENSE +22 -0
  26. package/templates/admin/node_modules/@oxc-project/types/README.md +3 -0
  27. package/templates/admin/node_modules/@oxc-project/types/package.json +26 -0
  28. package/templates/admin/node_modules/@oxc-project/types/types.d.ts +1912 -0
  29. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/README.md +3 -0
  30. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/package.json +37 -0
  31. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node +0 -0
  32. package/templates/admin/node_modules/@rolldown/pluginutils/LICENSE +21 -0
  33. package/templates/admin/node_modules/@rolldown/pluginutils/README.md +145 -0
  34. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +194 -0
  35. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +2 -0
  36. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +323 -0
  37. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.d.mts +2 -0
  38. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.mjs +2 -0
  39. package/templates/admin/node_modules/@rolldown/pluginutils/package.json +40 -0
  40. package/templates/admin/node_modules/@typescript/typescript-win32-x64/LICENSE +55 -0
  41. package/templates/admin/node_modules/@typescript/typescript-win32-x64/NOTICE.txt +436 -0
  42. package/templates/admin/node_modules/@typescript/typescript-win32-x64/README.md +3 -0
  43. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.d.ts +20 -0
  44. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.d.ts +382 -0
  45. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.legacy.d.ts +20 -0
  46. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.asynciterable.d.ts +18 -0
  47. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.d.ts +45125 -0
  48. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.iterable.d.ts +18 -0
  49. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.collection.d.ts +159 -0
  50. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.core.d.ts +595 -0
  51. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.d.ts +26 -0
  52. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.generator.d.ts +75 -0
  53. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.iterable.d.ts +603 -0
  54. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.promise.d.ts +79 -0
  55. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.proxy.d.ts +126 -0
  56. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.reflect.d.ts +142 -0
  57. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.d.ts +44 -0
  58. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  59. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.array.include.d.ts +114 -0
  60. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.d.ts +19 -0
  61. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.full.d.ts +21 -0
  62. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.intl.d.ts +29 -0
  63. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.arraybuffer.d.ts +19 -0
  64. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.d.ts +24 -0
  65. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.date.d.ts +29 -0
  66. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.full.d.ts +21 -0
  67. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.intl.d.ts +42 -0
  68. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.object.d.ts +47 -0
  69. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.sharedmemory.d.ts +133 -0
  70. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.string.d.ts +47 -0
  71. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.typedarrays.d.ts +51 -0
  72. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  73. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asynciterable.d.ts +51 -0
  74. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.d.ts +22 -0
  75. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.full.d.ts +22 -0
  76. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.intl.d.ts +81 -0
  77. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.promise.d.ts +28 -0
  78. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.regexp.d.ts +35 -0
  79. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.array.d.ts +77 -0
  80. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.d.ts +22 -0
  81. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.full.d.ts +22 -0
  82. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.intl.d.ts +21 -0
  83. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.object.d.ts +31 -0
  84. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.string.d.ts +35 -0
  85. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.symbol.d.ts +22 -0
  86. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.bigint.d.ts +763 -0
  87. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.d.ts +25 -0
  88. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.date.d.ts +40 -0
  89. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.full.d.ts +22 -0
  90. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.intl.d.ts +472 -0
  91. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.number.d.ts +26 -0
  92. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.promise.d.ts +45 -0
  93. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.sharedmemory.d.ts +97 -0
  94. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.string.d.ts +42 -0
  95. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  96. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.d.ts +21 -0
  97. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.full.d.ts +22 -0
  98. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.intl.d.ts +164 -0
  99. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.promise.d.ts +46 -0
  100. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.string.d.ts +31 -0
  101. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.weakref.d.ts +76 -0
  102. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.array.d.ts +119 -0
  103. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.d.ts +23 -0
  104. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.error.d.ts +73 -0
  105. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.full.d.ts +22 -0
  106. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.intl.d.ts +143 -0
  107. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.object.d.ts +24 -0
  108. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.regexp.d.ts +37 -0
  109. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.string.d.ts +23 -0
  110. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.array.d.ts +922 -0
  111. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.collection.d.ts +19 -0
  112. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.d.ts +20 -0
  113. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.full.d.ts +22 -0
  114. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.intl.d.ts +62 -0
  115. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.arraybuffer.d.ts +63 -0
  116. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.collection.d.ts +27 -0
  117. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.d.ts +24 -0
  118. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.full.d.ts +22 -0
  119. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.object.d.ts +27 -0
  120. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.promise.d.ts +33 -0
  121. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.regexp.d.ts +23 -0
  122. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.sharedmemory.d.ts +66 -0
  123. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.string.d.ts +27 -0
  124. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.collection.d.ts +94 -0
  125. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.d.ts +23 -0
  126. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.float16.d.ts +443 -0
  127. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.full.d.ts +22 -0
  128. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.intl.d.ts +200 -0
  129. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.iterator.d.ts +146 -0
  130. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.promise.d.ts +32 -0
  131. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.regexp.d.ts +30 -0
  132. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es5.d.ts +4599 -0
  133. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es6.d.ts +21 -0
  134. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.array.d.ts +33 -0
  135. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.collection.d.ts +47 -0
  136. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.d.ts +27 -0
  137. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.date.d.ts +21 -0
  138. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.decorators.d.ts +26 -0
  139. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.disposable.d.ts +191 -0
  140. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.error.d.ts +22 -0
  141. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.full.d.ts +22 -0
  142. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.intl.d.ts +107 -0
  143. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.sharedmemory.d.ts +23 -0
  144. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.temporal.d.ts +485 -0
  145. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.typedarrays.d.ts +90 -0
  146. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.scripthost.d.ts +320 -0
  147. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.asynciterable.d.ts +18 -0
  148. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.d.ts +15606 -0
  149. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.importscripts.d.ts +21 -0
  150. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.iterable.d.ts +18 -0
  151. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/tsc.exe +0 -0
  152. package/templates/admin/node_modules/@typescript/typescript-win32-x64/package.json +45 -0
  153. package/templates/admin/node_modules/@yoyaflow/yoya-ui/LICENSE +21 -0
  154. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.md +271 -0
  155. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.zh-CN.md +272 -0
  156. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/echarts.min.js +45 -0
  157. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya-ui.umd.js +35 -0
  158. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.core.js +1779 -0
  159. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.echart.js +643 -0
  160. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ssr.js +2856 -0
  161. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.css +2289 -0
  162. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.js +13174 -0
  163. package/templates/admin/node_modules/@yoyaflow/yoya-ui/package.json +94 -0
  164. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/actions.d.ts +166 -0
  165. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/async.d.ts +108 -0
  166. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/chart.d.ts +40 -0
  167. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/core.d.ts +582 -0
  168. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/css.d.ts +5 -0
  169. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/data-display.d.ts +620 -0
  170. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/effects.d.ts +64 -0
  171. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/feedback.d.ts +119 -0
  172. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/form.d.ts +507 -0
  173. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/html.d.ts +288 -0
  174. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/i18n.d.ts +56 -0
  175. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/index.d.ts +4 -0
  176. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/layout.d.ts +444 -0
  177. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/navigation.d.ts +275 -0
  178. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/router.d.ts +123 -0
  179. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/ssr.d.ts +124 -0
  180. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/svg.d.ts +159 -0
  181. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/theme.d.ts +40 -0
  182. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.core.d.ts +7 -0
  183. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.echart.d.ts +4 -0
  184. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ssr.d.ts +9 -0
  185. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ui.d.ts +19 -0
  186. package/templates/admin/node_modules/detect-libc/LICENSE +201 -0
  187. package/templates/admin/node_modules/detect-libc/README.md +163 -0
  188. package/templates/admin/node_modules/detect-libc/index.d.ts +14 -0
  189. package/templates/admin/node_modules/detect-libc/lib/detect-libc.js +313 -0
  190. package/templates/admin/node_modules/detect-libc/lib/elf.js +39 -0
  191. package/templates/admin/node_modules/detect-libc/lib/filesystem.js +51 -0
  192. package/templates/admin/node_modules/detect-libc/lib/process.js +24 -0
  193. package/templates/admin/node_modules/detect-libc/package.json +44 -0
  194. package/templates/admin/node_modules/fdir/LICENSE +7 -0
  195. package/templates/admin/node_modules/fdir/README.md +91 -0
  196. package/templates/admin/node_modules/fdir/dist/index.cjs +588 -0
  197. package/templates/admin/node_modules/fdir/dist/index.d.cts +155 -0
  198. package/templates/admin/node_modules/fdir/dist/index.d.mts +155 -0
  199. package/templates/admin/node_modules/fdir/dist/index.mjs +570 -0
  200. package/templates/admin/node_modules/fdir/package.json +103 -0
  201. package/templates/admin/node_modules/lightningcss/LICENSE +373 -0
  202. package/templates/admin/node_modules/lightningcss/README.md +105 -0
  203. package/templates/admin/node_modules/lightningcss/node/ast.d.ts +9965 -0
  204. package/templates/admin/node_modules/lightningcss/node/ast.js.flow +10615 -0
  205. package/templates/admin/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  206. package/templates/admin/node_modules/lightningcss/node/composeVisitors.js +450 -0
  207. package/templates/admin/node_modules/lightningcss/node/flags.js +28 -0
  208. package/templates/admin/node_modules/lightningcss/node/index.d.ts +501 -0
  209. package/templates/admin/node_modules/lightningcss/node/index.js +59 -0
  210. package/templates/admin/node_modules/lightningcss/node/index.js.flow +854 -0
  211. package/templates/admin/node_modules/lightningcss/node/index.mjs +4 -0
  212. package/templates/admin/node_modules/lightningcss/node/targets.d.ts +40 -0
  213. package/templates/admin/node_modules/lightningcss/node/targets.js.flow +39 -0
  214. package/templates/admin/node_modules/lightningcss/package.json +110 -0
  215. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/LICENSE +373 -0
  216. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/README.md +1 -0
  217. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node +0 -0
  218. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/package.json +34 -0
  219. package/templates/admin/node_modules/nanoid/LICENSE +20 -0
  220. package/templates/admin/node_modules/nanoid/README.md +39 -0
  221. package/templates/admin/node_modules/nanoid/async/index.browser.cjs +43 -0
  222. package/templates/admin/node_modules/nanoid/async/index.browser.js +43 -0
  223. package/templates/admin/node_modules/nanoid/async/index.cjs +47 -0
  224. package/templates/admin/node_modules/nanoid/async/index.d.ts +56 -0
  225. package/templates/admin/node_modules/nanoid/async/index.js +47 -0
  226. package/templates/admin/node_modules/nanoid/async/index.native.js +38 -0
  227. package/templates/admin/node_modules/nanoid/async/package.json +12 -0
  228. package/templates/admin/node_modules/nanoid/bin/nanoid.cjs +55 -0
  229. package/templates/admin/node_modules/nanoid/index.browser.cjs +45 -0
  230. package/templates/admin/node_modules/nanoid/index.browser.js +45 -0
  231. package/templates/admin/node_modules/nanoid/index.cjs +58 -0
  232. package/templates/admin/node_modules/nanoid/index.d.cts +91 -0
  233. package/templates/admin/node_modules/nanoid/index.d.ts +91 -0
  234. package/templates/admin/node_modules/nanoid/index.js +63 -0
  235. package/templates/admin/node_modules/nanoid/nanoid.js +1 -0
  236. package/templates/admin/node_modules/nanoid/non-secure/index.cjs +24 -0
  237. package/templates/admin/node_modules/nanoid/non-secure/index.d.ts +33 -0
  238. package/templates/admin/node_modules/nanoid/non-secure/index.js +24 -0
  239. package/templates/admin/node_modules/nanoid/non-secure/package.json +6 -0
  240. package/templates/admin/node_modules/nanoid/package.json +89 -0
  241. package/templates/admin/node_modules/nanoid/url-alphabet/index.cjs +4 -0
  242. package/templates/admin/node_modules/nanoid/url-alphabet/index.js +4 -0
  243. package/templates/admin/node_modules/nanoid/url-alphabet/package.json +6 -0
  244. package/templates/admin/node_modules/picocolors/LICENSE +15 -0
  245. package/templates/admin/node_modules/picocolors/README.md +21 -0
  246. package/templates/admin/node_modules/picocolors/package.json +25 -0
  247. package/templates/admin/node_modules/picocolors/picocolors.browser.js +4 -0
  248. package/templates/admin/node_modules/picocolors/picocolors.d.ts +5 -0
  249. package/templates/admin/node_modules/picocolors/picocolors.js +75 -0
  250. package/templates/admin/node_modules/picocolors/types.d.ts +51 -0
  251. package/templates/admin/node_modules/picomatch/LICENSE +21 -0
  252. package/templates/admin/node_modules/picomatch/README.md +743 -0
  253. package/templates/admin/node_modules/picomatch/index.js +17 -0
  254. package/templates/admin/node_modules/picomatch/lib/constants.js +184 -0
  255. package/templates/admin/node_modules/picomatch/lib/parse.js +1425 -0
  256. package/templates/admin/node_modules/picomatch/lib/picomatch.js +361 -0
  257. package/templates/admin/node_modules/picomatch/lib/scan.js +403 -0
  258. package/templates/admin/node_modules/picomatch/lib/utils.js +72 -0
  259. package/templates/admin/node_modules/picomatch/package.json +83 -0
  260. package/templates/admin/node_modules/picomatch/posix.js +3 -0
  261. package/templates/admin/node_modules/postcss/LICENSE +20 -0
  262. package/templates/admin/node_modules/postcss/README.md +27 -0
  263. package/templates/admin/node_modules/postcss/lib/at-rule.d.ts +139 -0
  264. package/templates/admin/node_modules/postcss/lib/at-rule.js +25 -0
  265. package/templates/admin/node_modules/postcss/lib/comment.d.ts +67 -0
  266. package/templates/admin/node_modules/postcss/lib/comment.js +13 -0
  267. package/templates/admin/node_modules/postcss/lib/container.d.ts +478 -0
  268. package/templates/admin/node_modules/postcss/lib/container.js +494 -0
  269. package/templates/admin/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  270. package/templates/admin/node_modules/postcss/lib/css-syntax-error.js +133 -0
  271. package/templates/admin/node_modules/postcss/lib/declaration.d.ts +150 -0
  272. package/templates/admin/node_modules/postcss/lib/declaration.js +24 -0
  273. package/templates/admin/node_modules/postcss/lib/document.d.ts +68 -0
  274. package/templates/admin/node_modules/postcss/lib/document.js +33 -0
  275. package/templates/admin/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  276. package/templates/admin/node_modules/postcss/lib/fromJSON.js +107 -0
  277. package/templates/admin/node_modules/postcss/lib/input.d.ts +226 -0
  278. package/templates/admin/node_modules/postcss/lib/input.js +282 -0
  279. package/templates/admin/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  280. package/templates/admin/node_modules/postcss/lib/lazy-result.js +626 -0
  281. package/templates/admin/node_modules/postcss/lib/list.d.ts +60 -0
  282. package/templates/admin/node_modules/postcss/lib/list.js +59 -0
  283. package/templates/admin/node_modules/postcss/lib/map-generator.js +376 -0
  284. package/templates/admin/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  285. package/templates/admin/node_modules/postcss/lib/no-work-result.js +137 -0
  286. package/templates/admin/node_modules/postcss/lib/node.d.ts +555 -0
  287. package/templates/admin/node_modules/postcss/lib/node.js +494 -0
  288. package/templates/admin/node_modules/postcss/lib/parse.d.ts +9 -0
  289. package/templates/admin/node_modules/postcss/lib/parse.js +42 -0
  290. package/templates/admin/node_modules/postcss/lib/parser.js +618 -0
  291. package/templates/admin/node_modules/postcss/lib/postcss.d.mts +66 -0
  292. package/templates/admin/node_modules/postcss/lib/postcss.d.ts +464 -0
  293. package/templates/admin/node_modules/postcss/lib/postcss.js +101 -0
  294. package/templates/admin/node_modules/postcss/lib/postcss.mjs +30 -0
  295. package/templates/admin/node_modules/postcss/lib/previous-map.d.ts +80 -0
  296. package/templates/admin/node_modules/postcss/lib/previous-map.js +176 -0
  297. package/templates/admin/node_modules/postcss/lib/processor.d.ts +114 -0
  298. package/templates/admin/node_modules/postcss/lib/processor.js +67 -0
  299. package/templates/admin/node_modules/postcss/lib/result.d.ts +204 -0
  300. package/templates/admin/node_modules/postcss/lib/result.js +42 -0
  301. package/templates/admin/node_modules/postcss/lib/root.d.ts +86 -0
  302. package/templates/admin/node_modules/postcss/lib/root.js +76 -0
  303. package/templates/admin/node_modules/postcss/lib/rule.d.ts +126 -0
  304. package/templates/admin/node_modules/postcss/lib/rule.js +27 -0
  305. package/templates/admin/node_modules/postcss/lib/stringifier.d.ts +45 -0
  306. package/templates/admin/node_modules/postcss/lib/stringifier.js +461 -0
  307. package/templates/admin/node_modules/postcss/lib/stringify.d.ts +9 -0
  308. package/templates/admin/node_modules/postcss/lib/stringify.js +11 -0
  309. package/templates/admin/node_modules/postcss/lib/symbols.js +5 -0
  310. package/templates/admin/node_modules/postcss/lib/terminal-highlight.js +70 -0
  311. package/templates/admin/node_modules/postcss/lib/tokenize.js +270 -0
  312. package/templates/admin/node_modules/postcss/lib/warn-once.js +13 -0
  313. package/templates/admin/node_modules/postcss/lib/warning.d.ts +146 -0
  314. package/templates/admin/node_modules/postcss/lib/warning.js +47 -0
  315. package/templates/admin/node_modules/postcss/package.json +88 -0
  316. package/templates/admin/node_modules/rolldown/LICENSE +25 -0
  317. package/templates/admin/node_modules/rolldown/README.md +11 -0
  318. package/templates/admin/node_modules/rolldown/THIRD-PARTY-LICENSE +33 -0
  319. package/templates/admin/node_modules/rolldown/bin/cli.mjs +11 -0
  320. package/templates/admin/node_modules/rolldown/dist/cli.d.mts +1 -0
  321. package/templates/admin/node_modules/rolldown/dist/cli.mjs +1208 -0
  322. package/templates/admin/node_modules/rolldown/dist/config.d.mts +26 -0
  323. package/templates/admin/node_modules/rolldown/dist/config.mjs +4 -0
  324. package/templates/admin/node_modules/rolldown/dist/experimental-default-runtime.mjs +116 -0
  325. package/templates/admin/node_modules/rolldown/dist/experimental-index.d.mts +324 -0
  326. package/templates/admin/node_modules/rolldown/dist/experimental-index.mjs +383 -0
  327. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-base.mjs +95 -0
  328. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +177 -0
  329. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.d.ts +177 -0
  330. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.mjs +257 -0
  331. package/templates/admin/node_modules/rolldown/dist/filter-index.d.mts +196 -0
  332. package/templates/admin/node_modules/rolldown/dist/filter-index.mjs +376 -0
  333. package/templates/admin/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  334. package/templates/admin/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  335. package/templates/admin/node_modules/rolldown/dist/index.d.mts +4 -0
  336. package/templates/admin/node_modules/rolldown/dist/index.mjs +56 -0
  337. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  338. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +29 -0
  339. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.d.mts +12 -0
  340. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  341. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.d.mts +30 -0
  342. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  343. package/templates/admin/node_modules/rolldown/dist/plugins-index.d.mts +32 -0
  344. package/templates/admin/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  345. package/templates/admin/node_modules/rolldown/dist/shared/binding-CtPG-2KR.mjs +675 -0
  346. package/templates/admin/node_modules/rolldown/dist/shared/binding-Og__jmUi.d.mts +2065 -0
  347. package/templates/admin/node_modules/rolldown/dist/shared/bindingify-input-options-4JJxbZl2.mjs +2416 -0
  348. package/templates/admin/node_modules/rolldown/dist/shared/constructors-Qrp2Xr6w.d.mts +35 -0
  349. package/templates/admin/node_modules/rolldown/dist/shared/constructors-ltBDfHX1.mjs +69 -0
  350. package/templates/admin/node_modules/rolldown/dist/shared/create-bundler-option-DSPiA5F7.mjs +3220 -0
  351. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +6 -0
  352. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Nbz-lniw.d.mts +4101 -0
  353. package/templates/admin/node_modules/rolldown/dist/shared/dist-DKbukT1H.mjs +154 -0
  354. package/templates/admin/node_modules/rolldown/dist/shared/error-HDibX49O.mjs +85 -0
  355. package/templates/admin/node_modules/rolldown/dist/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  356. package/templates/admin/node_modules/rolldown/dist/shared/load-config-BMUrE9HH.mjs +137 -0
  357. package/templates/admin/node_modules/rolldown/dist/shared/logging-xuHO4mAy.d.mts +50 -0
  358. package/templates/admin/node_modules/rolldown/dist/shared/logs-DmYCAKcW.mjs +192 -0
  359. package/templates/admin/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs +29 -0
  360. package/templates/admin/node_modules/rolldown/dist/shared/normalize-string-or-regex-DWz4it3p.mjs +68 -0
  361. package/templates/admin/node_modules/rolldown/dist/shared/parse-D0g29RgN.mjs +74 -0
  362. package/templates/admin/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs +885 -0
  363. package/templates/admin/node_modules/rolldown/dist/shared/resolve-tsconfig-CLYpUIZC.mjs +128 -0
  364. package/templates/admin/node_modules/rolldown/dist/shared/rolldown-C9Hfg50O.mjs +179 -0
  365. package/templates/admin/node_modules/rolldown/dist/shared/transform-DR4CXeQm.d.mts +152 -0
  366. package/templates/admin/node_modules/rolldown/dist/shared/watch-UbzgabQn.mjs +377 -0
  367. package/templates/admin/node_modules/rolldown/dist/utils-index.d.mts +375 -0
  368. package/templates/admin/node_modules/rolldown/dist/utils-index.mjs +2416 -0
  369. package/templates/admin/node_modules/rolldown/package.json +164 -0
  370. package/templates/admin/node_modules/source-map-js/LICENSE +28 -0
  371. package/templates/admin/node_modules/source-map-js/README.md +765 -0
  372. package/templates/admin/node_modules/source-map-js/lib/array-set.js +121 -0
  373. package/templates/admin/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  374. package/templates/admin/node_modules/source-map-js/lib/base64.js +67 -0
  375. package/templates/admin/node_modules/source-map-js/lib/binary-search.js +111 -0
  376. package/templates/admin/node_modules/source-map-js/lib/mapping-list.js +79 -0
  377. package/templates/admin/node_modules/source-map-js/lib/quick-sort.js +132 -0
  378. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  379. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  380. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  381. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  382. package/templates/admin/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  383. package/templates/admin/node_modules/source-map-js/lib/source-node.js +413 -0
  384. package/templates/admin/node_modules/source-map-js/lib/util.js +594 -0
  385. package/templates/admin/node_modules/source-map-js/package.json +71 -0
  386. package/templates/admin/node_modules/source-map-js/source-map.d.ts +104 -0
  387. package/templates/admin/node_modules/source-map-js/source-map.js +8 -0
  388. package/templates/admin/node_modules/tinyglobby/LICENSE +21 -0
  389. package/templates/admin/node_modules/tinyglobby/README.md +25 -0
  390. package/templates/admin/node_modules/tinyglobby/dist/index.cjs +335 -0
  391. package/templates/admin/node_modules/tinyglobby/dist/index.d.cts +148 -0
  392. package/templates/admin/node_modules/tinyglobby/dist/index.d.mts +148 -0
  393. package/templates/admin/node_modules/tinyglobby/dist/index.mjs +307 -0
  394. package/templates/admin/node_modules/tinyglobby/package.json +70 -0
  395. package/templates/admin/node_modules/typescript/LICENSE +55 -0
  396. package/templates/admin/node_modules/typescript/NOTICE.txt +436 -0
  397. package/templates/admin/node_modules/typescript/README.md +49 -0
  398. package/templates/admin/node_modules/typescript/bin/tsc +2 -0
  399. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts +529 -0
  400. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts.map +1 -0
  401. package/templates/admin/node_modules/typescript/dist/api/async/api.js +1657 -0
  402. package/templates/admin/node_modules/typescript/dist/api/async/api.js.map +1 -0
  403. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts +39 -0
  404. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts.map +1 -0
  405. package/templates/admin/node_modules/typescript/dist/api/async/client.js +211 -0
  406. package/templates/admin/node_modules/typescript/dist/api/async/client.js.map +1 -0
  407. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts +310 -0
  408. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts.map +1 -0
  409. package/templates/admin/node_modules/typescript/dist/api/async/types.js +2 -0
  410. package/templates/admin/node_modules/typescript/dist/api/async/types.js.map +1 -0
  411. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts +109 -0
  412. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts.map +1 -0
  413. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js +2 -0
  414. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js.map +1 -0
  415. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts +23 -0
  416. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts.map +1 -0
  417. package/templates/admin/node_modules/typescript/dist/api/fs.js +109 -0
  418. package/templates/admin/node_modules/typescript/dist/api/fs.js.map +1 -0
  419. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts +15 -0
  420. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts.map +1 -0
  421. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts +5 -0
  422. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +1 -0
  423. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js +74 -0
  424. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js.map +1 -0
  425. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js +287 -0
  426. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js.map +1 -0
  427. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts +32 -0
  428. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts.map +1 -0
  429. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js +213 -0
  430. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js.map +1 -0
  431. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts +76 -0
  432. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts.map +1 -0
  433. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts +182 -0
  434. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts.map +1 -0
  435. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js +835 -0
  436. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js.map +1 -0
  437. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +62 -0
  438. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +1 -0
  439. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js +122 -0
  440. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js.map +1 -0
  441. package/templates/admin/node_modules/typescript/dist/api/node/node.js +298 -0
  442. package/templates/admin/node_modules/typescript/dist/api/node/node.js.map +1 -0
  443. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts +29 -0
  444. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts.map +1 -0
  445. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts +4 -0
  446. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +1 -0
  447. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js +241 -0
  448. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js.map +1 -0
  449. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js +30 -0
  450. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js.map +1 -0
  451. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts +6 -0
  452. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts.map +1 -0
  453. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js +61 -0
  454. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js.map +1 -0
  455. package/templates/admin/node_modules/typescript/dist/api/options.d.ts +32 -0
  456. package/templates/admin/node_modules/typescript/dist/api/options.d.ts.map +1 -0
  457. package/templates/admin/node_modules/typescript/dist/api/options.js +11 -0
  458. package/templates/admin/node_modules/typescript/dist/api/options.js.map +1 -0
  459. package/templates/admin/node_modules/typescript/dist/api/path.d.ts +110 -0
  460. package/templates/admin/node_modules/typescript/dist/api/path.d.ts.map +1 -0
  461. package/templates/admin/node_modules/typescript/dist/api/path.js +508 -0
  462. package/templates/admin/node_modules/typescript/dist/api/path.js.map +1 -0
  463. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts +239 -0
  464. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts.map +1 -0
  465. package/templates/admin/node_modules/typescript/dist/api/proto.js +37 -0
  466. package/templates/admin/node_modules/typescript/dist/api/proto.js.map +1 -0
  467. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts +79 -0
  468. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +1 -0
  469. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js +169 -0
  470. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js.map +1 -0
  471. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts +529 -0
  472. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts.map +1 -0
  473. package/templates/admin/node_modules/typescript/dist/api/sync/api.js +1665 -0
  474. package/templates/admin/node_modules/typescript/dist/api/sync/api.js.map +1 -0
  475. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts +30 -0
  476. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts.map +1 -0
  477. package/templates/admin/node_modules/typescript/dist/api/sync/client.js +124 -0
  478. package/templates/admin/node_modules/typescript/dist/api/sync/client.js.map +1 -0
  479. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts +310 -0
  480. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts.map +1 -0
  481. package/templates/admin/node_modules/typescript/dist/api/sync/types.js +2 -0
  482. package/templates/admin/node_modules/typescript/dist/api/sync/types.js.map +1 -0
  483. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts +114 -0
  484. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts.map +1 -0
  485. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js +508 -0
  486. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js.map +1 -0
  487. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts +175 -0
  488. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts.map +1 -0
  489. package/templates/admin/node_modules/typescript/dist/api/timing.js +149 -0
  490. package/templates/admin/node_modules/typescript/dist/api/timing.js.map +1 -0
  491. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts +100 -0
  492. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts.map +1 -0
  493. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts +1161 -0
  494. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts.map +1 -0
  495. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js +4 -0
  496. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js.map +1 -0
  497. package/templates/admin/node_modules/typescript/dist/ast/ast.js +7 -0
  498. package/templates/admin/node_modules/typescript/dist/ast/ast.js.map +1 -0
  499. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts +19 -0
  500. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts.map +1 -0
  501. package/templates/admin/node_modules/typescript/dist/ast/astnav.js +596 -0
  502. package/templates/admin/node_modules/typescript/dist/ast/astnav.js.map +1 -0
  503. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts +16 -0
  504. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts.map +1 -0
  505. package/templates/admin/node_modules/typescript/dist/ast/clone.js +104 -0
  506. package/templates/admin/node_modules/typescript/dist/ast/clone.js.map +1 -0
  507. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts +520 -0
  508. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts.map +1 -0
  509. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js +3057 -0
  510. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js.map +1 -0
  511. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts +20 -0
  512. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts.map +1 -0
  513. package/templates/admin/node_modules/typescript/dist/ast/index.js +20 -0
  514. package/templates/admin/node_modules/typescript/dist/ast/index.js.map +1 -0
  515. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts +35 -0
  516. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts.map +1 -0
  517. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts +329 -0
  518. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts.map +1 -0
  519. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js +1103 -0
  520. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js.map +1 -0
  521. package/templates/admin/node_modules/typescript/dist/ast/is.js +233 -0
  522. package/templates/admin/node_modules/typescript/dist/ast/is.js.map +1 -0
  523. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts +11 -0
  524. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts.map +1 -0
  525. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js +202 -0
  526. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js.map +1 -0
  527. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts +97 -0
  528. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts.map +1 -0
  529. package/templates/admin/node_modules/typescript/dist/ast/scanner.js +2230 -0
  530. package/templates/admin/node_modules/typescript/dist/ast/scanner.js.map +1 -0
  531. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts +17 -0
  532. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts.map +1 -0
  533. package/templates/admin/node_modules/typescript/dist/ast/utils.js +67 -0
  534. package/templates/admin/node_modules/typescript/dist/ast/utils.js.map +1 -0
  535. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts +14 -0
  536. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts.map +1 -0
  537. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts +50 -0
  538. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +1 -0
  539. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js +978 -0
  540. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js.map +1 -0
  541. package/templates/admin/node_modules/typescript/dist/ast/visitor.js +47 -0
  542. package/templates/admin/node_modules/typescript/dist/ast/visitor.js.map +1 -0
  543. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts +2 -0
  544. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts.map +1 -0
  545. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +129 -0
  546. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +1 -0
  547. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js +132 -0
  548. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js.map +1 -0
  549. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js +130 -0
  550. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js.map +1 -0
  551. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +2 -0
  552. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +1 -0
  553. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +5 -0
  554. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
  555. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +6 -0
  556. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +1 -0
  557. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js +6 -0
  558. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js.map +1 -0
  559. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts +2 -0
  560. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +1 -0
  561. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +28 -0
  562. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +1 -0
  563. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js +30 -0
  564. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +1 -0
  565. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js +30 -0
  566. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js.map +1 -0
  567. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +2 -0
  568. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +1 -0
  569. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +7 -0
  570. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
  571. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +9 -0
  572. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +1 -0
  573. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js +9 -0
  574. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js.map +1 -0
  575. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts +2 -0
  576. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts.map +1 -0
  577. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +12 -0
  578. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +1 -0
  579. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js +14 -0
  580. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js.map +1 -0
  581. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js +14 -0
  582. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js.map +1 -0
  583. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts +2 -0
  584. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +1 -0
  585. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +23 -0
  586. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
  587. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js +25 -0
  588. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +1 -0
  589. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js +25 -0
  590. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js.map +1 -0
  591. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts +2 -0
  592. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +1 -0
  593. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +9 -0
  594. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +1 -0
  595. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js +11 -0
  596. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +1 -0
  597. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js +11 -0
  598. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js.map +1 -0
  599. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts +2 -0
  600. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts.map +1 -0
  601. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +5 -0
  602. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +1 -0
  603. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js +6 -0
  604. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js.map +1 -0
  605. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js +6 -0
  606. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js.map +1 -0
  607. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts +2 -0
  608. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +1 -0
  609. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +42 -0
  610. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +1 -0
  611. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js +44 -0
  612. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +1 -0
  613. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js +44 -0
  614. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js.map +1 -0
  615. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +2 -0
  616. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +1 -0
  617. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
  618. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
  619. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +9 -0
  620. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +1 -0
  621. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js +9 -0
  622. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +1 -0
  623. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts +2 -0
  624. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts.map +1 -0
  625. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +17 -0
  626. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +1 -0
  627. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js +19 -0
  628. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js.map +1 -0
  629. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js +19 -0
  630. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js.map +1 -0
  631. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +2 -0
  632. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +1 -0
  633. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
  634. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
  635. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +11 -0
  636. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +1 -0
  637. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js +11 -0
  638. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +1 -0
  639. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts +2 -0
  640. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts.map +1 -0
  641. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +6 -0
  642. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +1 -0
  643. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js +8 -0
  644. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js.map +1 -0
  645. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js +8 -0
  646. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js.map +1 -0
  647. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +2 -0
  648. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
  649. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
  650. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
  651. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +38 -0
  652. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
  653. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js +38 -0
  654. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +1 -0
  655. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts +2 -0
  656. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +1 -0
  657. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +44 -0
  658. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +1 -0
  659. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js +46 -0
  660. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +1 -0
  661. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js +46 -0
  662. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js.map +1 -0
  663. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts +2 -0
  664. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts.map +1 -0
  665. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +50 -0
  666. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +1 -0
  667. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js +52 -0
  668. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js.map +1 -0
  669. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js +52 -0
  670. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js.map +1 -0
  671. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +2 -0
  672. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +1 -0
  673. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
  674. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
  675. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +18 -0
  676. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +1 -0
  677. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js +18 -0
  678. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +1 -0
  679. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +2 -0
  680. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +1 -0
  681. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
  682. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
  683. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +14 -0
  684. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +1 -0
  685. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js +14 -0
  686. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +1 -0
  687. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts +2 -0
  688. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts.map +1 -0
  689. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +11 -0
  690. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +1 -0
  691. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js +12 -0
  692. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js.map +1 -0
  693. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js +12 -0
  694. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js.map +1 -0
  695. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts +2 -0
  696. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +1 -0
  697. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +17 -0
  698. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +1 -0
  699. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js +18 -0
  700. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +1 -0
  701. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js +18 -0
  702. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js.map +1 -0
  703. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts +2 -0
  704. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +1 -0
  705. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +15 -0
  706. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +1 -0
  707. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js +17 -0
  708. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +1 -0
  709. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js +17 -0
  710. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js.map +1 -0
  711. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts +2 -0
  712. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts.map +1 -0
  713. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +5 -0
  714. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +1 -0
  715. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js +7 -0
  716. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js.map +1 -0
  717. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js +7 -0
  718. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js.map +1 -0
  719. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts +2 -0
  720. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +1 -0
  721. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +71 -0
  722. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +1 -0
  723. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js +73 -0
  724. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +1 -0
  725. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js +73 -0
  726. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js.map +1 -0
  727. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts +2 -0
  728. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +1 -0
  729. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +389 -0
  730. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +1 -0
  731. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js +391 -0
  732. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +1 -0
  733. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js +391 -0
  734. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js.map +1 -0
  735. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts +2 -0
  736. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +1 -0
  737. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +30 -0
  738. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +1 -0
  739. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js +32 -0
  740. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +1 -0
  741. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js +32 -0
  742. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js.map +1 -0
  743. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts +2 -0
  744. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts.map +1 -0
  745. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +76 -0
  746. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +1 -0
  747. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js +78 -0
  748. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js.map +1 -0
  749. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js +78 -0
  750. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js.map +1 -0
  751. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts +2 -0
  752. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +1 -0
  753. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +7 -0
  754. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
  755. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js +9 -0
  756. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +1 -0
  757. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js +9 -0
  758. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js.map +1 -0
  759. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts +23 -0
  760. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts.map +1 -0
  761. package/templates/admin/node_modules/typescript/dist/internal/utils.js +25 -0
  762. package/templates/admin/node_modules/typescript/dist/internal/utils.js.map +1 -0
  763. package/templates/admin/node_modules/typescript/lib/getExePath.d.ts +2 -0
  764. package/templates/admin/node_modules/typescript/lib/getExePath.js +70 -0
  765. package/templates/admin/node_modules/typescript/lib/tsc.js +28 -0
  766. package/templates/admin/node_modules/typescript/lib/version.cjs +3 -0
  767. package/templates/admin/node_modules/typescript/lib/version.d.cts +2 -0
  768. package/templates/admin/node_modules/typescript/package.json +87 -0
  769. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +11 -0
  770. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/README.md +54 -0
  771. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
  772. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
  773. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
  774. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
  775. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
  776. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
  777. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
  778. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
  779. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
  780. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
  781. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
  782. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
  783. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
  784. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
  785. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
  786. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
  787. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
  788. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
  789. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
  790. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
  791. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
  792. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
  793. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
  794. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
  795. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
  796. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
  797. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
  798. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
  799. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
  800. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
  801. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
  802. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
  803. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
  804. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
  805. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
  806. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
  807. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
  808. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
  809. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/package.json +54 -0
  810. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
  811. package/templates/admin/node_modules/vite/LICENSE.md +2322 -0
  812. package/templates/admin/node_modules/vite/README.md +20 -0
  813. package/templates/admin/node_modules/vite/bin/openChrome.js +68 -0
  814. package/templates/admin/node_modules/vite/bin/vite.js +79 -0
  815. package/templates/admin/node_modules/vite/client.d.ts +285 -0
  816. package/templates/admin/node_modules/vite/dist/client/bundledDevClient.mjs +1829 -0
  817. package/templates/admin/node_modules/vite/dist/client/client.mjs +1244 -0
  818. package/templates/admin/node_modules/vite/dist/client/env.mjs +18 -0
  819. package/templates/admin/node_modules/vite/dist/node/chunks/build.js +5494 -0
  820. package/templates/admin/node_modules/vite/dist/node/chunks/dist.js +6732 -0
  821. package/templates/admin/node_modules/vite/dist/node/chunks/lib.js +371 -0
  822. package/templates/admin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +95 -0
  823. package/templates/admin/node_modules/vite/dist/node/chunks/node.js +37269 -0
  824. package/templates/admin/node_modules/vite/dist/node/chunks/postcss-import.js +465 -0
  825. package/templates/admin/node_modules/vite/dist/node/cli.js +835 -0
  826. package/templates/admin/node_modules/vite/dist/node/index.d.ts +4069 -0
  827. package/templates/admin/node_modules/vite/dist/node/index.js +2 -0
  828. package/templates/admin/node_modules/vite/dist/node/internal.d.ts +2 -0
  829. package/templates/admin/node_modules/vite/dist/node/internal.js +2 -0
  830. package/templates/admin/node_modules/vite/dist/node/module-runner.d.ts +313 -0
  831. package/templates/admin/node_modules/vite/dist/node/module-runner.js +1288 -0
  832. package/templates/admin/node_modules/vite/misc/false.js +1 -0
  833. package/templates/admin/node_modules/vite/misc/true.js +1 -0
  834. package/templates/admin/node_modules/vite/package.json +194 -0
  835. package/templates/admin/node_modules/vite/types/customEvent.d.ts +81 -0
  836. package/templates/admin/node_modules/vite/types/hmrPayload.d.ts +94 -0
  837. package/templates/admin/node_modules/vite/types/hot.d.ts +39 -0
  838. package/templates/admin/node_modules/vite/types/import-meta.d.ts +5 -0
  839. package/templates/admin/node_modules/vite/types/importGlob.d.ts +131 -0
  840. package/templates/admin/node_modules/vite/types/importMeta.d.ts +30 -0
  841. package/templates/admin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  842. package/templates/admin/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  843. package/templates/admin/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  844. package/templates/admin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  845. package/templates/admin/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  846. package/templates/admin/node_modules/vite/types/metadata.d.ts +47 -0
  847. package/templates/admin/src/features/dashboard/{components → overview/components}/dashboard-chart.js +28 -21
  848. package/templates/admin/src/features/dashboard/todos/pages/todo-approval-page.js +5 -0
  849. package/templates/admin/src/features/ops/deploys/pages/deploy-list-page.js +5 -0
  850. package/templates/admin/src/features/ops/services/pages/service-list-page.js +5 -0
  851. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mgr.d.ts +24 -17
  852. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mgr.js +24 -14
  853. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.mock.js +22 -4
  854. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.state.d.ts +5 -0
  855. package/templates/admin/src/features/{dicts → system/dicts}/api/dict.state.js +39 -8
  856. package/templates/admin/src/features/{dicts → system/dicts}/components/dict-editor-dialog.js +1 -1
  857. package/templates/admin/src/features/{dicts → system/dicts}/pages/dict-list-page.js +41 -21
  858. package/templates/admin/src/features/{members → system/members}/api/member.mgr.d.ts +10 -9
  859. package/templates/admin/src/features/{members → system/members}/api/member.mgr.js +8 -3
  860. package/templates/admin/src/features/{members → system/members}/api/member.mock.js +1 -1
  861. package/templates/admin/src/features/{members → system/members}/api/member.req.d.ts +1 -1
  862. package/templates/admin/src/features/{members → system/members}/api/member.req.js +3 -1
  863. package/templates/admin/src/features/{members → system/members}/api/member.state.js +4 -4
  864. package/templates/admin/src/features/{members → system/members}/components/member-table.js +1 -1
  865. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mgr.d.ts +11 -9
  866. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mgr.js +10 -5
  867. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.mock.js +1 -1
  868. package/templates/admin/src/features/{permissions → system/permissions}/api/permission.state.js +4 -4
  869. package/templates/admin/src/features/{permissions → system/permissions}/pages/permission-list-page.js +1 -1
  870. package/templates/admin/src/features/{roles → system/roles}/api/role.mgr.d.ts +19 -6
  871. package/templates/admin/src/features/{roles → system/roles}/api/role.mgr.js +8 -3
  872. package/templates/admin/src/features/{roles → system/roles}/api/role.mock.js +1 -1
  873. package/templates/admin/src/features/{roles → system/roles}/api/role.state.js +4 -4
  874. package/templates/admin/src/features/{roles → system/roles}/components/role-table.js +1 -1
  875. package/templates/admin/src/main.js +16 -12
  876. package/templates/admin/src/{ui/row-action-button.js → shared/ui.buttons.js} +1 -0
  877. package/templates/admin/src/{ui/placeholder-page.js → shared/ui.pages.js} +1 -0
  878. package/templates/admin/src/shell/api/shell.mock.js +42 -0
  879. package/templates/admin/src/shell/api/shell.req.js +17 -0
  880. package/templates/admin/src/shell/api/shell.state.js +90 -0
  881. package/templates/admin/src/shell/api/shell.views.js +19 -0
  882. package/templates/admin/src/shell/components/admin-shell.js +42 -0
  883. package/templates/admin/src/{ui → shell/components}/app-navbar.js +11 -12
  884. package/templates/admin/src/shell/components/app-sidebar.js +44 -0
  885. package/templates/admin/src/{ui → shell/components}/sidebar-menu.js +3 -3
  886. package/templates/admin/src/shell/router.js +40 -0
  887. package/templates/admin/src/app/admin-shell.js +0 -51
  888. package/templates/admin/src/app/modules.js +0 -37
  889. package/templates/admin/src/app/router.js +0 -20
  890. package/templates/admin/src/ui/app-sidebar.js +0 -27
  891. /package/templates/admin/src/features/dashboard/{pages → overview/pages}/dashboard-overview-page.js +0 -0
  892. /package/templates/admin/src/features/{dicts → system/dicts}/api/dict.views.d.ts +0 -0
  893. /package/templates/admin/src/features/{dicts → system/dicts}/api/dict.views.js +0 -0
  894. /package/templates/admin/src/features/{dicts → system/dicts}/components/dict-item-form-dialog.js +0 -0
  895. /package/templates/admin/src/features/{dicts → system/dicts}/utils/options.js +0 -0
  896. /package/templates/admin/src/features/{members → system/members}/api/member.state.d.ts +0 -0
  897. /package/templates/admin/src/features/{members → system/members}/api/member.views.d.ts +0 -0
  898. /package/templates/admin/src/features/{members → system/members}/api/member.views.js +0 -0
  899. /package/templates/admin/src/features/{members → system/members}/components/member-form-dialog.js +0 -0
  900. /package/templates/admin/src/features/{members → system/members}/components/member-toolbar.js +0 -0
  901. /package/templates/admin/src/features/{members → system/members}/pages/member-list-page.js +0 -0
  902. /package/templates/admin/src/features/{members → system/members}/utils/options.d.ts +0 -0
  903. /package/templates/admin/src/features/{members → system/members}/utils/options.js +0 -0
  904. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.state.d.ts +0 -0
  905. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.views.d.ts +0 -0
  906. /package/templates/admin/src/features/{permissions → system/permissions}/api/permission.views.js +0 -0
  907. /package/templates/admin/src/features/{permissions → system/permissions}/components/permission-form-dialog.js +0 -0
  908. /package/templates/admin/src/features/{roles → system/roles}/api/role.state.d.ts +0 -0
  909. /package/templates/admin/src/features/{roles → system/roles}/api/role.views.d.ts +0 -0
  910. /package/templates/admin/src/features/{roles → system/roles}/api/role.views.js +0 -0
  911. /package/templates/admin/src/features/{roles → system/roles}/components/role-form-dialog.js +0 -0
  912. /package/templates/admin/src/features/{roles → system/roles}/components/role-toolbar.js +0 -0
  913. /package/templates/admin/src/features/{roles → system/roles}/pages/role-list-page.js +0 -0
  914. /package/templates/admin/src/features/{roles → system/roles}/utils/options.js +0 -0
@@ -0,0 +1,1665 @@
1
+ //
2
+ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3
+ // !!! THIS FILE IS AUTO-GENERATED - DO NOT EDIT !!!
4
+ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
+ //
6
+ // Source: src/api/async/api.ts
7
+ // Regenerate: npm run generate (from _packages/native-preview)
8
+ //
9
+ /// <reference path="../node/node.ts" preserve="true" />
10
+ import { CompletionItemKind } from "#enums/completionItemKind";
11
+ import { DiagnosticCategory } from "#enums/diagnosticCategory";
12
+ import { ElementFlags } from "#enums/elementFlags";
13
+ import { ModuleKind } from "#enums/moduleKind";
14
+ import { NodeBuilderFlags } from "#enums/nodeBuilderFlags";
15
+ import { ObjectFlags } from "#enums/objectFlags";
16
+ import { SignatureFlags } from "#enums/signatureFlags";
17
+ import { SignatureKind } from "#enums/signatureKind";
18
+ import { SymbolFlags } from "#enums/symbolFlags";
19
+ import { TypeFlags } from "#enums/typeFlags";
20
+ import { TypePredicateKind } from "#enums/typePredicateKind";
21
+ import { ModifierFlags, unescapeLeadingUnderscores, } from "../../ast/index.js";
22
+ import { encodeNode, uint8ArrayToBase64, } from "../node/encoder.js";
23
+ import { decodeNode, getNodeId, parseNodeHandle, readParseOptionsKey, readSourceFileHash, RemoteSourceFile, } from "../node/node.js";
24
+ import { Wtf8Decoder } from "../node/wtf8.js";
25
+ import { createGetCanonicalFileName, toPath, } from "../path.js";
26
+ import { resolveFileName, toUpdateSnapshotRequest, } from "../proto.js";
27
+ import { SourceFileCache } from "../sourceFileCache.js";
28
+ import { Client, } from "./client.js";
29
+ export { documentURIToFileName, fileNameToDocumentURI } from "../path.js";
30
+ export { CompletionItemKind, DiagnosticCategory, ElementFlags, ModifierFlags, ModuleKind, NodeBuilderFlags, ObjectFlags, SignatureFlags, SignatureKind, SymbolFlags, TypeFlags, TypePredicateKind };
31
+ export class API {
32
+ client;
33
+ sourceFileCache;
34
+ toPath;
35
+ initialized = false;
36
+ activeSnapshots = new Set();
37
+ latestSnapshot;
38
+ internal;
39
+ constructor(options = {}) {
40
+ this.client = new Client(options);
41
+ this.sourceFileCache = new SourceFileCache();
42
+ this.internal = new InternalAPI(this.client, () => this.ensureInitialized());
43
+ }
44
+ /**
45
+ * Create an API instance from an existing LSP connection's API session.
46
+ * Use this when connecting to an API pipe provided by an LSP server via custom/initializeAPISession.
47
+ */
48
+ static fromLSPConnection(options) {
49
+ const api = new API(options);
50
+ api.ensureInitialized();
51
+ return api;
52
+ }
53
+ ensureInitialized() {
54
+ if (!this.initialized) {
55
+ const response = this.client.apiRequest("initialize", null);
56
+ const getCanonicalFileName = createGetCanonicalFileName(response.useCaseSensitiveFileNames);
57
+ const currentDirectory = response.currentDirectory;
58
+ this.toPath = (fileName) => toPath(fileName, currentDirectory, getCanonicalFileName);
59
+ this.initialized = true;
60
+ }
61
+ }
62
+ parseConfigFile(file) {
63
+ this.ensureInitialized();
64
+ return this.client.apiRequest("parseConfigFile", { file });
65
+ }
66
+ updateSnapshot(params) {
67
+ this.ensureInitialized();
68
+ const requestParams = toUpdateSnapshotRequest(params);
69
+ const data = this.client.apiRequest("updateSnapshot", requestParams);
70
+ // Retain cached source files from previous snapshot for unchanged files
71
+ if (this.latestSnapshot) {
72
+ this.sourceFileCache.retainForSnapshot(data.snapshot, this.latestSnapshot.id, data.changes);
73
+ if (this.latestSnapshot.isDisposed()) {
74
+ this.sourceFileCache.releaseSnapshot(this.latestSnapshot.id);
75
+ }
76
+ }
77
+ const snapshot = new Snapshot(data, this.client, this.sourceFileCache, this.toPath, () => {
78
+ this.activeSnapshots.delete(snapshot);
79
+ if (snapshot !== this.latestSnapshot) {
80
+ this.sourceFileCache.releaseSnapshot(snapshot.id);
81
+ }
82
+ });
83
+ this.latestSnapshot = snapshot;
84
+ this.activeSnapshots.add(snapshot);
85
+ return snapshot;
86
+ }
87
+ close() {
88
+ // Dispose all active snapshots
89
+ for (const snapshot of [...this.activeSnapshots]) {
90
+ snapshot.dispose();
91
+ }
92
+ // Release the latest snapshot's cache refs if still held
93
+ if (this.latestSnapshot) {
94
+ this.sourceFileCache.releaseSnapshot(this.latestSnapshot.id);
95
+ this.latestSnapshot = undefined;
96
+ }
97
+ this.client.close();
98
+ this.sourceFileCache.clear();
99
+ }
100
+ clearSourceFileCache() {
101
+ this.sourceFileCache.clear();
102
+ }
103
+ /**
104
+ * Returns a snapshot of collected timing information for requests made
105
+ * through this API instance: client-measured round-trip latency and bytes
106
+ * transferred, folded together with the server's own per-request processing
107
+ * time and an estimated transport overhead (round-trip minus server time).
108
+ *
109
+ * Fetching the snapshot issues a lightweight request to the server to
110
+ * retrieve its timing collection. Collection must be enabled via the
111
+ * `collectTiming` option; when it is not, the returned snapshot has
112
+ * `enabled: false` and zeroed totals.
113
+ */
114
+ getTimingInfo() {
115
+ return this.client.getTimingInfo();
116
+ }
117
+ /** Clears all accumulated timing totals and recent-request history, on both the client and the server. */
118
+ resetTimingInfo() {
119
+ return this.client.resetTimingInfo();
120
+ }
121
+ }
122
+ export class InternalAPI {
123
+ client;
124
+ ensureInitialized;
125
+ /** @internal */
126
+ constructor(client, ensureInitialized) {
127
+ this.client = client;
128
+ this.ensureInitialized = ensureInitialized;
129
+ }
130
+ startCPUProfile(dir) {
131
+ this.ensureInitialized();
132
+ this.client.apiRequest("startCPUProfile", { dir });
133
+ }
134
+ stopCPUProfile() {
135
+ this.ensureInitialized();
136
+ const result = this.client.apiRequest("stopCPUProfile", null);
137
+ return result.file;
138
+ }
139
+ saveHeapProfile(dir) {
140
+ this.ensureInitialized();
141
+ const result = this.client.apiRequest("saveHeapProfile", { dir });
142
+ return result.file;
143
+ }
144
+ }
145
+ export class Snapshot {
146
+ id;
147
+ projectMap;
148
+ toPath;
149
+ client;
150
+ disposed = false;
151
+ onDispose;
152
+ snapshotRegistry;
153
+ constructor(data, client, sourceFileCache, toPath, onDispose) {
154
+ this.id = data.snapshot;
155
+ this.client = client;
156
+ this.toPath = toPath;
157
+ this.onDispose = onDispose;
158
+ this.projectMap = new Map();
159
+ this.snapshotRegistry = new SnapshotObjectRegistry(client, this.id, projectId => this.projectMap.get(projectId));
160
+ for (const projData of data.projects) {
161
+ const project = new Project(projData, this.id, client, sourceFileCache, toPath, this.snapshotRegistry);
162
+ this.projectMap.set(toPath(projData.configFileName), project);
163
+ }
164
+ }
165
+ getProjects() {
166
+ this.ensureNotDisposed();
167
+ return [...this.projectMap.values()];
168
+ }
169
+ getProject(configFileName) {
170
+ this.ensureNotDisposed();
171
+ return this.projectMap.get(this.toPath(configFileName));
172
+ }
173
+ getDefaultProjectForFile(file) {
174
+ this.ensureNotDisposed();
175
+ const data = this.client.apiRequest("getDefaultProjectForFile", {
176
+ snapshot: this.id,
177
+ file,
178
+ });
179
+ if (!data)
180
+ return undefined;
181
+ return this.projectMap.get(this.toPath(data.configFileName));
182
+ }
183
+ [globalThis.Symbol.dispose]() {
184
+ this.dispose();
185
+ }
186
+ dispose() {
187
+ if (this.disposed)
188
+ return;
189
+ this.disposed = true;
190
+ for (const project of this.projectMap.values()) {
191
+ project.dispose();
192
+ }
193
+ this.projectMap.clear();
194
+ this.snapshotRegistry.clear();
195
+ this.onDispose();
196
+ this.client.apiRequest("release", { snapshot: this.id });
197
+ }
198
+ isDisposed() {
199
+ return this.disposed;
200
+ }
201
+ ensureNotDisposed() {
202
+ if (this.disposed) {
203
+ throw new Error("Snapshot is disposed");
204
+ }
205
+ }
206
+ }
207
+ class SnapshotObjectRegistry {
208
+ symbols = new Map();
209
+ client;
210
+ snapshotId;
211
+ resolveProject;
212
+ constructor(client, snapshotId, resolveProject) {
213
+ this.client = client;
214
+ this.snapshotId = snapshotId;
215
+ this.resolveProject = resolveProject;
216
+ }
217
+ /** Resolve a project id (a config file path) to its Project within this snapshot. */
218
+ getProject(projectId) {
219
+ return this.resolveProject(projectId);
220
+ }
221
+ getOrCreateSymbol(data) {
222
+ let symbol = this.symbols.get(data.id);
223
+ if (!symbol) {
224
+ symbol = new Symbol(data, this);
225
+ this.symbols.set(data.id, symbol);
226
+ }
227
+ return symbol;
228
+ }
229
+ getSymbol(id) {
230
+ return this.symbols.get(id);
231
+ }
232
+ clear() {
233
+ this.symbols.clear();
234
+ }
235
+ fetchSymbol(source, method, handle, projectId) {
236
+ if (!handle)
237
+ return undefined;
238
+ const cached = this.getSymbol(handle);
239
+ if (cached)
240
+ return cached;
241
+ const data = this.client.apiRequest(method, {
242
+ snapshot: this.snapshotId,
243
+ project: projectId,
244
+ objectId: source.id,
245
+ });
246
+ if (!data)
247
+ throw new Error(`${method} returned null symbol for ${source.constructor.name} ${source.id}`);
248
+ return this.getOrCreateSymbol(data);
249
+ }
250
+ fetchSymbols(source, method, handles, projectId) {
251
+ if (handles) {
252
+ const result = new Array(handles.length);
253
+ let allCached = true;
254
+ for (let i = 0; i < handles.length; i++) {
255
+ const cached = this.getSymbol(handles[i]);
256
+ if (!cached) {
257
+ allCached = false;
258
+ break;
259
+ }
260
+ result[i] = cached;
261
+ }
262
+ if (allCached)
263
+ return result;
264
+ }
265
+ const symbolData = this.client.apiRequest(method, {
266
+ snapshot: this.snapshotId,
267
+ project: projectId,
268
+ objectId: source.id,
269
+ });
270
+ if (symbolData == null)
271
+ return [];
272
+ else
273
+ return symbolData.map(data => this.getOrCreateSymbol(data));
274
+ }
275
+ }
276
+ class ProjectObjectRegistry {
277
+ client;
278
+ snapshotId;
279
+ project;
280
+ snapshotRegistry;
281
+ types = new Map();
282
+ signatures = new Map();
283
+ constructor(client, snapshotId, project, snapshotRegistry) {
284
+ this.client = client;
285
+ this.snapshotId = snapshotId;
286
+ this.project = project;
287
+ this.snapshotRegistry = snapshotRegistry;
288
+ }
289
+ getOrCreateSymbol(data) {
290
+ return this.snapshotRegistry.getOrCreateSymbol(data);
291
+ }
292
+ getSymbol(id) {
293
+ return this.snapshotRegistry.getSymbol(id);
294
+ }
295
+ getOrCreateType(data) {
296
+ let type = this.types.get(data.id);
297
+ if (!type) {
298
+ type = new TypeObject(data, this);
299
+ this.types.set(data.id, type);
300
+ }
301
+ return type;
302
+ }
303
+ getType(id) {
304
+ return this.types.get(id);
305
+ }
306
+ getOrCreateSignature(data) {
307
+ let sig = this.signatures.get(data.id);
308
+ if (!sig) {
309
+ sig = new Signature(data, this.project, this);
310
+ this.signatures.set(data.id, sig);
311
+ }
312
+ return sig;
313
+ }
314
+ getSignature(id) {
315
+ return this.signatures.get(id);
316
+ }
317
+ clear() {
318
+ this.types.clear();
319
+ this.signatures.clear();
320
+ }
321
+ fetchType(source, method, handle) {
322
+ if (handle !== false) {
323
+ if (!handle)
324
+ return undefined;
325
+ const cached = this.getType(handle);
326
+ if (cached)
327
+ return cached;
328
+ }
329
+ const data = this.client.apiRequest(method, {
330
+ snapshot: this.snapshotId,
331
+ project: this.project.id,
332
+ objectId: source.id,
333
+ });
334
+ if (!data)
335
+ throw new Error(`${method} returned null type for ${source.constructor.name} ${source.id}`);
336
+ return this.getOrCreateType(data);
337
+ }
338
+ fetchSymbol(source, method, handle) {
339
+ return this.snapshotRegistry.fetchSymbol(source, method, handle, this.project.id);
340
+ }
341
+ fetchSignature(source, method, handle) {
342
+ if (!handle)
343
+ return undefined;
344
+ const cached = this.getSignature(handle);
345
+ if (cached)
346
+ return cached;
347
+ const data = this.client.apiRequest(method, {
348
+ snapshot: this.snapshotId,
349
+ project: this.project.id,
350
+ objectId: source.id,
351
+ });
352
+ if (!data)
353
+ throw new Error(`${method} returned null signature for ${source.constructor.name} ${source.id}`);
354
+ return this.getOrCreateSignature(data);
355
+ }
356
+ fetchTypes(source, method, handles) {
357
+ if (handles) {
358
+ const result = new Array(handles.length);
359
+ let allCached = true;
360
+ for (let i = 0; i < handles.length; i++) {
361
+ const cached = this.getType(handles[i]);
362
+ if (!cached) {
363
+ allCached = false;
364
+ break;
365
+ }
366
+ result[i] = cached;
367
+ }
368
+ if (allCached)
369
+ return result;
370
+ }
371
+ const typesData = this.client.apiRequest(method, {
372
+ snapshot: this.snapshotId,
373
+ project: this.project.id,
374
+ objectId: source.id,
375
+ });
376
+ if (typesData == null)
377
+ return [];
378
+ else
379
+ return typesData.map(data => this.getOrCreateType(data));
380
+ }
381
+ fetchSymbols(source, method, handles) {
382
+ return this.snapshotRegistry.fetchSymbols(source, method, handles, this.project.id);
383
+ }
384
+ // getBaseTypes is a checker-level endpoint keyed by `type` (not `objectId`),
385
+ // so it cannot go through fetchTypes. This helper reuses that server method.
386
+ fetchBaseTypes(source) {
387
+ const typesData = this.client.apiRequest("getBaseTypes", {
388
+ snapshot: this.snapshotId,
389
+ project: this.project.id,
390
+ type: source.id,
391
+ });
392
+ if (typesData == null)
393
+ return [];
394
+ return typesData.map(data => this.getOrCreateType(data));
395
+ }
396
+ }
397
+ export class Project {
398
+ id;
399
+ configFileName;
400
+ compilerOptions;
401
+ rootFiles;
402
+ program;
403
+ checker;
404
+ emitter;
405
+ client;
406
+ constructor(data, snapshotId, client, sourceFileCache, toPath, snapshotRegistry) {
407
+ this.id = data.id;
408
+ this.configFileName = data.configFileName;
409
+ this.compilerOptions = data.compilerOptions;
410
+ this.rootFiles = data.rootFiles;
411
+ this.client = client;
412
+ this.program = new Program(snapshotId, this, client, sourceFileCache, toPath);
413
+ const objectRegistry = new ProjectObjectRegistry(client, snapshotId, this, snapshotRegistry);
414
+ this.checker = new Checker(snapshotId, this, client, objectRegistry);
415
+ this.emitter = new Emitter(client);
416
+ }
417
+ dispose() {
418
+ this.checker.dispose();
419
+ }
420
+ }
421
+ export class Program {
422
+ snapshotId;
423
+ project;
424
+ client;
425
+ sourceFileCache;
426
+ toPath;
427
+ decoder = new Wtf8Decoder();
428
+ sourceFileMetadataCache = new Map();
429
+ constructor(snapshotId, project, client, sourceFileCache, toPath) {
430
+ this.snapshotId = snapshotId;
431
+ this.project = project;
432
+ this.client = client;
433
+ this.sourceFileCache = sourceFileCache;
434
+ this.toPath = toPath;
435
+ }
436
+ getCompilerOptions() {
437
+ return this.project.compilerOptions;
438
+ }
439
+ getSourceFile(file) {
440
+ const fileName = resolveFileName(file);
441
+ const path = this.toPath(fileName);
442
+ // Check if we already have a retained cache entry for this (snapshot, project) pair
443
+ const retained = this.sourceFileCache.getRetained(path, this.snapshotId, this.project.id);
444
+ if (retained) {
445
+ return retained;
446
+ }
447
+ // Fetch from server
448
+ const binaryData = this.client.apiRequestBinary("getSourceFile", {
449
+ snapshot: this.snapshotId,
450
+ project: this.project.id,
451
+ file,
452
+ });
453
+ if (!binaryData) {
454
+ return undefined;
455
+ }
456
+ const view = new DataView(binaryData.buffer, binaryData.byteOffset, binaryData.byteLength);
457
+ const contentHash = readSourceFileHash(view);
458
+ const parseOptionsKey = readParseOptionsKey(view);
459
+ // Create a new RemoteSourceFile and cache it (set returns existing if hash matches)
460
+ const sourceFile = new RemoteSourceFile(binaryData, this.decoder, this.client.getTimingCollector());
461
+ return this.sourceFileCache.set(path, sourceFile, parseOptionsKey, contentHash, this.snapshotId, this.project.id);
462
+ }
463
+ getSourceFileNames() {
464
+ const data = this.client.apiRequest("getSourceFileNames", {
465
+ snapshot: this.snapshotId,
466
+ project: this.project.id,
467
+ });
468
+ return data ?? [];
469
+ }
470
+ /**
471
+ * Returns program-stored metadata for the given source file, or `undefined` if the file
472
+ * is not part of the program. Metadata is fetched lazily per file and cached on this
473
+ * `Program` instance.
474
+ */
475
+ getSourceFileMetadata(fileName) {
476
+ return this.getSourceFileMetadataByPath(this.toPath(fileName));
477
+ }
478
+ /**
479
+ * Returns program-stored metadata for the source file at the given path, or `undefined`
480
+ * if the file is not part of the program. Like {@link getSourceFileMetadata}, but skips
481
+ * the file name to path conversion. Metadata is fetched lazily per file and cached on
482
+ * this `Program` instance.
483
+ */
484
+ getSourceFileMetadataByPath(path) {
485
+ let metadata = this.sourceFileMetadataCache.get(path);
486
+ if (metadata === undefined) {
487
+ metadata = this.fetchSourceFileMetadata(path);
488
+ this.sourceFileMetadataCache.set(path, metadata);
489
+ }
490
+ return metadata;
491
+ }
492
+ fetchSourceFileMetadata(path) {
493
+ const data = this.client.apiRequest("getSourceFileMetadata", {
494
+ snapshot: this.snapshotId,
495
+ project: this.project.id,
496
+ file: path,
497
+ });
498
+ return data ?? undefined;
499
+ }
500
+ /**
501
+ * Returns whether the given source file was loaded as part of an external library
502
+ * (e.g. a dependency resolved from `node_modules`). The underlying program metadata is
503
+ * fetched lazily per file and cached on this `Program` instance.
504
+ */
505
+ isSourceFileFromExternalLibrary(file) {
506
+ const metadata = this.getSourceFileMetadataByPath(file.path);
507
+ return metadata?.isFromExternalLibrary ?? false;
508
+ }
509
+ /**
510
+ * Returns whether the given source file is a default library file (e.g. `lib.d.ts`).
511
+ * The underlying program metadata is fetched lazily per file and cached on this
512
+ * `Program` instance.
513
+ */
514
+ isSourceFileDefaultLibrary(file) {
515
+ const metadata = this.getSourceFileMetadataByPath(file.path);
516
+ return metadata?.isDefaultLibrary ?? false;
517
+ }
518
+ /**
519
+ * Get syntactic (parse) diagnostics for a specific file or all files.
520
+ * @param file - Optional file to get diagnostics for. If omitted, returns diagnostics for all files.
521
+ */
522
+ getSyntacticDiagnostics(file) {
523
+ const data = this.client.apiRequest("getSyntacticDiagnostics", {
524
+ snapshot: this.snapshotId,
525
+ project: this.project.id,
526
+ ...(file !== undefined ? { file } : {}),
527
+ });
528
+ return data ?? [];
529
+ }
530
+ /**
531
+ * Get binder diagnostics for a specific file or all files.
532
+ * @param file - Optional file to get diagnostics for. If omitted, returns diagnostics for all files.
533
+ */
534
+ getBindDiagnostics(file) {
535
+ const data = this.client.apiRequest("getBindDiagnostics", {
536
+ snapshot: this.snapshotId,
537
+ project: this.project.id,
538
+ ...(file !== undefined ? { file } : {}),
539
+ });
540
+ return data ?? [];
541
+ }
542
+ /**
543
+ * Get semantic (type-check) diagnostics for a specific file or all files.
544
+ * @param file - Optional file to get diagnostics for. If omitted, returns diagnostics for all files.
545
+ */
546
+ getSemanticDiagnostics(file) {
547
+ const data = this.client.apiRequest("getSemanticDiagnostics", {
548
+ snapshot: this.snapshotId,
549
+ project: this.project.id,
550
+ ...(file !== undefined ? { file } : {}),
551
+ });
552
+ return data ?? [];
553
+ }
554
+ /**
555
+ * Get suggestion diagnostics for a specific file or all files.
556
+ * @param file - Optional file to get diagnostics for. If omitted, returns diagnostics for all files.
557
+ */
558
+ getSuggestionDiagnostics(file) {
559
+ const data = this.client.apiRequest("getSuggestionDiagnostics", {
560
+ snapshot: this.snapshotId,
561
+ project: this.project.id,
562
+ ...(file !== undefined ? { file } : {}),
563
+ });
564
+ return data ?? [];
565
+ }
566
+ /**
567
+ * Get declaration emit diagnostics for a specific file or all files.
568
+ * @param file - Optional file to get diagnostics for. If omitted, returns diagnostics for all files.
569
+ */
570
+ getDeclarationDiagnostics(file) {
571
+ const data = this.client.apiRequest("getDeclarationDiagnostics", {
572
+ snapshot: this.snapshotId,
573
+ project: this.project.id,
574
+ ...(file !== undefined ? { file } : {}),
575
+ });
576
+ return data ?? [];
577
+ }
578
+ /**
579
+ * Get program-wide diagnostics for the project, including compiler options diagnostics.
580
+ */
581
+ getProgramDiagnostics() {
582
+ const data = this.client.apiRequest("getProgramDiagnostics", {
583
+ snapshot: this.snapshotId,
584
+ project: this.project.id,
585
+ });
586
+ return data ?? [];
587
+ }
588
+ /**
589
+ * Get global (non-file-specific) semantic diagnostics for the project.
590
+ */
591
+ getGlobalDiagnostics() {
592
+ const data = this.client.apiRequest("getGlobalDiagnostics", {
593
+ snapshot: this.snapshotId,
594
+ project: this.project.id,
595
+ });
596
+ return data ?? [];
597
+ }
598
+ /**
599
+ * Get config file parsing diagnostics for the project.
600
+ */
601
+ getConfigFileParsingDiagnostics() {
602
+ const data = this.client.apiRequest("getConfigFileParsingDiagnostics", {
603
+ snapshot: this.snapshotId,
604
+ project: this.project.id,
605
+ });
606
+ return data ?? [];
607
+ }
608
+ }
609
+ export class Checker {
610
+ snapshotId;
611
+ project;
612
+ client;
613
+ objectRegistry;
614
+ wellKnownSymbols;
615
+ constructor(snapshotId, project, client, objectRegistry) {
616
+ this.snapshotId = snapshotId;
617
+ this.project = project;
618
+ this.client = client;
619
+ this.objectRegistry = objectRegistry;
620
+ }
621
+ dispose() {
622
+ this.objectRegistry.clear();
623
+ }
624
+ getSymbolAtLocation(nodeOrNodes) {
625
+ if (Array.isArray(nodeOrNodes)) {
626
+ const data = this.client.apiRequest("getSymbolsAtLocations", {
627
+ snapshot: this.snapshotId,
628
+ project: this.project.id,
629
+ locations: nodeOrNodes.map(node => getNodeId(node)),
630
+ });
631
+ return data.map(d => d ? this.objectRegistry.getOrCreateSymbol(d) : undefined);
632
+ }
633
+ const data = this.client.apiRequest("getSymbolAtLocation", {
634
+ snapshot: this.snapshotId,
635
+ project: this.project.id,
636
+ location: getNodeId(nodeOrNodes),
637
+ });
638
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
639
+ }
640
+ getSymbolAtPosition(file, positionOrPositions) {
641
+ if (typeof positionOrPositions === "number") {
642
+ const data = this.client.apiRequest("getSymbolAtPosition", {
643
+ snapshot: this.snapshotId,
644
+ project: this.project.id,
645
+ file,
646
+ position: positionOrPositions,
647
+ });
648
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
649
+ }
650
+ const data = this.client.apiRequest("getSymbolsAtPositions", {
651
+ snapshot: this.snapshotId,
652
+ project: this.project.id,
653
+ file,
654
+ positions: positionOrPositions,
655
+ });
656
+ return data.map(d => d ? this.objectRegistry.getOrCreateSymbol(d) : undefined);
657
+ }
658
+ getTypeOfSymbol(symbolOrSymbols) {
659
+ if (Array.isArray(symbolOrSymbols)) {
660
+ const data = this.client.apiRequest("getTypesOfSymbols", {
661
+ snapshot: this.snapshotId,
662
+ project: this.project.id,
663
+ symbols: symbolOrSymbols.map(s => s.id),
664
+ });
665
+ return data.map(d => d ? this.objectRegistry.getOrCreateType(d) : undefined);
666
+ }
667
+ const data = this.client.apiRequest("getTypeOfSymbol", {
668
+ snapshot: this.snapshotId,
669
+ project: this.project.id,
670
+ symbol: symbolOrSymbols.id,
671
+ });
672
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
673
+ }
674
+ /**
675
+ * Get the declared type of a symbol. Always returns a type; for symbols whose
676
+ * declared type cannot be determined the checker yields the error type (use
677
+ * {@link Type.isErrorType} to detect it).
678
+ */
679
+ getDeclaredTypeOfSymbol(symbol) {
680
+ const data = this.client.apiRequest("getDeclaredTypeOfSymbol", {
681
+ snapshot: this.snapshotId,
682
+ project: this.project.id,
683
+ symbol: symbol.id,
684
+ });
685
+ if (!data)
686
+ throw new Error(`getDeclaredTypeOfSymbol returned no type for symbol ${symbol.id}`);
687
+ return this.objectRegistry.getOrCreateType(data);
688
+ }
689
+ getReferencesToSymbolInFile(file, symbol) {
690
+ const data = this.client.apiRequest("getReferencesToSymbolInFile", {
691
+ snapshot: this.snapshotId,
692
+ project: this.project.id,
693
+ file,
694
+ symbol: symbol.id,
695
+ });
696
+ return (data ?? []).map(h => new NodeHandle(h, this.project));
697
+ }
698
+ getReferencedSymbolsForNode(node, position) {
699
+ const data = this.client.apiRequest("getReferencedSymbolsForNode", {
700
+ snapshot: this.snapshotId,
701
+ project: this.project.id,
702
+ node: getNodeId(node),
703
+ position,
704
+ });
705
+ return (data ?? []).map(entry => ({
706
+ definition: new NodeHandle(entry.definition, this.project),
707
+ symbol: entry.symbol ? this.objectRegistry.getOrCreateSymbol(entry.symbol) : undefined,
708
+ references: (entry.references ?? []).map(h => new NodeHandle(h, this.project)),
709
+ }));
710
+ }
711
+ getSignatureUsage(signatureDecl) {
712
+ const data = this.client.apiRequest("getSignatureUsages", {
713
+ snapshot: this.snapshotId,
714
+ project: this.project.id,
715
+ signatureDecl: getNodeId(signatureDecl),
716
+ });
717
+ return (data ?? []).map(entry => ({
718
+ name: new NodeHandle(entry.name, this.project),
719
+ call: entry.call ? new NodeHandle(entry.call, this.project) : undefined,
720
+ }));
721
+ }
722
+ getCompletionsAtPosition(document, position, options) {
723
+ const data = this.client.apiRequest("getCompletionsAtPosition", {
724
+ snapshot: this.snapshotId,
725
+ project: this.project.id,
726
+ file: document,
727
+ position,
728
+ triggerCharacter: options?.triggerCharacter,
729
+ includeSymbol: options?.includeSymbol,
730
+ });
731
+ if (!data)
732
+ return undefined;
733
+ return {
734
+ isIncomplete: data.isIncomplete,
735
+ entries: data.entries.map(e => ({
736
+ ...e,
737
+ symbol: e.symbol ? this.objectRegistry.getOrCreateSymbol(e.symbol) : undefined,
738
+ })),
739
+ };
740
+ }
741
+ getTypeAtLocation(nodeOrNodes) {
742
+ if (Array.isArray(nodeOrNodes)) {
743
+ const data = this.client.apiRequest("getTypeAtLocations", {
744
+ snapshot: this.snapshotId,
745
+ project: this.project.id,
746
+ locations: nodeOrNodes.map(node => getNodeId(node)),
747
+ });
748
+ return data.map(d => d ? this.objectRegistry.getOrCreateType(d) : undefined);
749
+ }
750
+ const data = this.client.apiRequest("getTypeAtLocation", {
751
+ snapshot: this.snapshotId,
752
+ project: this.project.id,
753
+ location: getNodeId(nodeOrNodes),
754
+ });
755
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
756
+ }
757
+ getSignaturesOfType(type, kind) {
758
+ const data = this.client.apiRequest("getSignaturesOfType", {
759
+ snapshot: this.snapshotId,
760
+ project: this.project.id,
761
+ type: type.id,
762
+ kind,
763
+ });
764
+ return data.map(d => this.objectRegistry.getOrCreateSignature(d));
765
+ }
766
+ getResolvedSignature(node) {
767
+ const data = this.client.apiRequest("getResolvedSignature", {
768
+ snapshot: this.snapshotId,
769
+ project: this.project.id,
770
+ location: getNodeId(node),
771
+ });
772
+ return data ? this.objectRegistry.getOrCreateSignature(data) : undefined;
773
+ }
774
+ getTypeAtPosition(file, positionOrPositions) {
775
+ if (typeof positionOrPositions === "number") {
776
+ const data = this.client.apiRequest("getTypeAtPosition", {
777
+ snapshot: this.snapshotId,
778
+ project: this.project.id,
779
+ file,
780
+ position: positionOrPositions,
781
+ });
782
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
783
+ }
784
+ const data = this.client.apiRequest("getTypesAtPositions", {
785
+ snapshot: this.snapshotId,
786
+ project: this.project.id,
787
+ file,
788
+ positions: positionOrPositions,
789
+ });
790
+ return data.map(d => d ? this.objectRegistry.getOrCreateType(d) : undefined);
791
+ }
792
+ resolveName(name, meaning, location, excludeGlobals) {
793
+ // Distinguish Node (has `kind`) from DocumentPosition (has `document` and `position`)
794
+ const isNode = location && "kind" in location;
795
+ const data = this.client.apiRequest("resolveName", {
796
+ snapshot: this.snapshotId,
797
+ project: this.project.id,
798
+ name,
799
+ meaning,
800
+ location: isNode ? getNodeId(location) : undefined,
801
+ file: !isNode && location ? location.document : undefined,
802
+ position: !isNode && location ? location.position : undefined,
803
+ excludeGlobals,
804
+ });
805
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
806
+ }
807
+ getResolvedSymbol(node) {
808
+ const text = node.text;
809
+ if (!text)
810
+ return undefined;
811
+ return this.resolveName(text, SymbolFlags.Value | SymbolFlags.ExportValue, node);
812
+ }
813
+ getContextualType(node) {
814
+ const data = this.client.apiRequest("getContextualType", {
815
+ snapshot: this.snapshotId,
816
+ project: this.project.id,
817
+ location: getNodeId(node),
818
+ });
819
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
820
+ }
821
+ getBaseTypeOfLiteralType(type) {
822
+ const data = this.client.apiRequest("getBaseTypeOfLiteralType", {
823
+ snapshot: this.snapshotId,
824
+ project: this.project.id,
825
+ type: type.id,
826
+ });
827
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
828
+ }
829
+ getNonNullableType(type) {
830
+ const data = this.client.apiRequest("getNonNullableType", {
831
+ snapshot: this.snapshotId,
832
+ project: this.project.id,
833
+ type: type.id,
834
+ });
835
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
836
+ }
837
+ getTypeFromTypeNode(node) {
838
+ const data = this.client.apiRequest("getTypeFromTypeNode", {
839
+ snapshot: this.snapshotId,
840
+ project: this.project.id,
841
+ location: getNodeId(node),
842
+ });
843
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
844
+ }
845
+ getWidenedType(type) {
846
+ const data = this.client.apiRequest("getWidenedType", {
847
+ snapshot: this.snapshotId,
848
+ project: this.project.id,
849
+ type: type.id,
850
+ });
851
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
852
+ }
853
+ getParameterType(signature, index) {
854
+ const data = this.client.apiRequest("getParameterType", {
855
+ snapshot: this.snapshotId,
856
+ project: this.project.id,
857
+ signature: signature.id,
858
+ index,
859
+ });
860
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
861
+ }
862
+ isArrayLikeType(type) {
863
+ return this.client.apiRequest("isArrayLikeType", {
864
+ snapshot: this.snapshotId,
865
+ project: this.project.id,
866
+ type: type.id,
867
+ });
868
+ }
869
+ isTypeAssignableTo(source, target) {
870
+ return this.client.apiRequest("isTypeAssignableTo", {
871
+ snapshot: this.snapshotId,
872
+ project: this.project.id,
873
+ source: source.id,
874
+ target: target.id,
875
+ });
876
+ }
877
+ getShorthandAssignmentValueSymbol(node) {
878
+ const data = this.client.apiRequest("getShorthandAssignmentValueSymbol", {
879
+ snapshot: this.snapshotId,
880
+ project: this.project.id,
881
+ location: getNodeId(node),
882
+ });
883
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
884
+ }
885
+ /**
886
+ * Get the type of a symbol as narrowed at a specific location. Always returns
887
+ * a type; for symbols whose type cannot be determined the checker yields the
888
+ * error type (use {@link Type.isErrorType} to detect it).
889
+ */
890
+ getTypeOfSymbolAtLocation(symbol, location) {
891
+ const data = this.client.apiRequest("getTypeOfSymbolAtLocation", {
892
+ snapshot: this.snapshotId,
893
+ project: this.project.id,
894
+ symbol: symbol.id,
895
+ location: getNodeId(location),
896
+ });
897
+ if (!data)
898
+ throw new Error(`getTypeOfSymbolAtLocation returned no type for symbol ${symbol.id}`);
899
+ return this.objectRegistry.getOrCreateType(data);
900
+ }
901
+ getIntrinsicType(method) {
902
+ const data = this.client.apiRequest(method, {
903
+ snapshot: this.snapshotId,
904
+ project: this.project.id,
905
+ });
906
+ return this.objectRegistry.getOrCreateType(data);
907
+ }
908
+ getAnyType() {
909
+ return this.getIntrinsicType("getAnyType");
910
+ }
911
+ getStringType() {
912
+ return this.getIntrinsicType("getStringType");
913
+ }
914
+ getNumberType() {
915
+ return this.getIntrinsicType("getNumberType");
916
+ }
917
+ getBooleanType() {
918
+ return this.getIntrinsicType("getBooleanType");
919
+ }
920
+ getVoidType() {
921
+ return this.getIntrinsicType("getVoidType");
922
+ }
923
+ getUndefinedType() {
924
+ return this.getIntrinsicType("getUndefinedType");
925
+ }
926
+ getNullType() {
927
+ return this.getIntrinsicType("getNullType");
928
+ }
929
+ getNeverType() {
930
+ return this.getIntrinsicType("getNeverType");
931
+ }
932
+ getUnknownType() {
933
+ return this.getIntrinsicType("getUnknownType");
934
+ }
935
+ getBigIntType() {
936
+ return this.getIntrinsicType("getBigIntType");
937
+ }
938
+ getESSymbolType() {
939
+ return this.getIntrinsicType("getESSymbolType");
940
+ }
941
+ typeToTypeNode(type, enclosingDeclaration, flags) {
942
+ const binaryData = this.client.apiRequestBinary("typeToTypeNode", {
943
+ snapshot: this.snapshotId,
944
+ project: this.project.id,
945
+ type: type.id,
946
+ location: enclosingDeclaration ? getNodeId(enclosingDeclaration) : undefined,
947
+ flags,
948
+ });
949
+ if (!binaryData)
950
+ return undefined;
951
+ return decodeNode(binaryData);
952
+ }
953
+ signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags) {
954
+ const binaryData = this.client.apiRequestBinary("signatureToSignatureDeclaration", {
955
+ snapshot: this.snapshotId,
956
+ project: this.project.id,
957
+ signature: signature.id,
958
+ kind,
959
+ location: enclosingDeclaration ? getNodeId(enclosingDeclaration) : undefined,
960
+ flags,
961
+ });
962
+ if (!binaryData)
963
+ return undefined;
964
+ return decodeNode(binaryData);
965
+ }
966
+ typeToString(type, enclosingDeclaration, flags) {
967
+ return this.client.apiRequest("typeToString", {
968
+ snapshot: this.snapshotId,
969
+ project: this.project.id,
970
+ type: type.id,
971
+ location: enclosingDeclaration ? getNodeId(enclosingDeclaration) : undefined,
972
+ flags,
973
+ });
974
+ }
975
+ isContextSensitive(node) {
976
+ return this.client.apiRequest("isContextSensitive", {
977
+ snapshot: this.snapshotId,
978
+ project: this.project.id,
979
+ location: getNodeId(node),
980
+ });
981
+ }
982
+ isArrayType(type) {
983
+ return this.client.apiRequest("isArrayType", {
984
+ snapshot: this.snapshotId,
985
+ project: this.project.id,
986
+ type: type.id,
987
+ });
988
+ }
989
+ isTupleType(type) {
990
+ return this.client.apiRequest("isTupleType", {
991
+ snapshot: this.snapshotId,
992
+ project: this.project.id,
993
+ type: type.id,
994
+ });
995
+ }
996
+ getReturnTypeOfSignature(signature) {
997
+ const data = this.client.apiRequest("getReturnTypeOfSignature", {
998
+ snapshot: this.snapshotId,
999
+ project: this.project.id,
1000
+ signature: signature.id,
1001
+ });
1002
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
1003
+ }
1004
+ getRestTypeOfSignature(signature) {
1005
+ const data = this.client.apiRequest("getRestTypeOfSignature", {
1006
+ snapshot: this.snapshotId,
1007
+ project: this.project.id,
1008
+ signature: signature.id,
1009
+ });
1010
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
1011
+ }
1012
+ getTypePredicateOfSignature(signature) {
1013
+ const data = this.client.apiRequest("getTypePredicateOfSignature", {
1014
+ snapshot: this.snapshotId,
1015
+ project: this.project.id,
1016
+ signature: signature.id,
1017
+ });
1018
+ if (!data)
1019
+ return undefined;
1020
+ return {
1021
+ kind: data.kind,
1022
+ parameterIndex: data.parameterIndex,
1023
+ parameterName: data.parameterName,
1024
+ type: data.type ? this.objectRegistry.getOrCreateType(data.type) : undefined,
1025
+ };
1026
+ }
1027
+ /**
1028
+ * Get the base types of a class or interface type. A type with no base types
1029
+ * yields an empty array.
1030
+ */
1031
+ getBaseTypes(type) {
1032
+ const data = this.client.apiRequest("getBaseTypes", {
1033
+ snapshot: this.snapshotId,
1034
+ project: this.project.id,
1035
+ type: type.id,
1036
+ });
1037
+ return data ? data.map(d => this.objectRegistry.getOrCreateType(d)) : [];
1038
+ }
1039
+ getApparentType(type) {
1040
+ const data = this.client.apiRequest("getApparentType", {
1041
+ snapshot: this.snapshotId,
1042
+ project: this.project.id,
1043
+ type: type.id,
1044
+ });
1045
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
1046
+ }
1047
+ getPropertiesOfType(type) {
1048
+ const data = this.client.apiRequest("getPropertiesOfType", {
1049
+ snapshot: this.snapshotId,
1050
+ project: this.project.id,
1051
+ type: type.id,
1052
+ });
1053
+ return data ? data.map(d => this.objectRegistry.getOrCreateSymbol(d)) : [];
1054
+ }
1055
+ getIndexInfosOfType(type) {
1056
+ const data = this.client.apiRequest("getIndexInfosOfType", {
1057
+ snapshot: this.snapshotId,
1058
+ project: this.project.id,
1059
+ type: type.id,
1060
+ });
1061
+ if (!data)
1062
+ return [];
1063
+ return data.map(d => ({
1064
+ keyType: this.objectRegistry.getOrCreateType(d.keyType),
1065
+ valueType: this.objectRegistry.getOrCreateType(d.valueType),
1066
+ isReadonly: d.isReadonly ?? false,
1067
+ declaration: d.declaration ? new NodeHandle(d.declaration, this.project) : undefined,
1068
+ }));
1069
+ }
1070
+ /**
1071
+ * Get the constraint of a type parameter (the `T` in `<U extends T>`), or
1072
+ * undefined if it has none.
1073
+ */
1074
+ getConstraintOfTypeParameter(type) {
1075
+ const data = this.client.apiRequest("getConstraintOfTypeParameter", {
1076
+ snapshot: this.snapshotId,
1077
+ project: this.project.id,
1078
+ type: type.id,
1079
+ });
1080
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
1081
+ }
1082
+ getBaseConstraintOfType(type) {
1083
+ const data = this.client.apiRequest("getBaseConstraintOfType", {
1084
+ snapshot: this.snapshotId,
1085
+ project: this.project.id,
1086
+ type: type.id,
1087
+ });
1088
+ return data ? this.objectRegistry.getOrCreateType(data) : undefined;
1089
+ }
1090
+ getPropertyOfType(type, name) {
1091
+ const data = this.client.apiRequest("getPropertyOfType", {
1092
+ snapshot: this.snapshotId,
1093
+ project: this.project.id,
1094
+ type: type.id,
1095
+ name,
1096
+ });
1097
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
1098
+ }
1099
+ getConstantValue(node) {
1100
+ const data = this.client.apiRequest("getConstantValue", {
1101
+ snapshot: this.snapshotId,
1102
+ project: this.project.id,
1103
+ location: getNodeId(node),
1104
+ });
1105
+ return data ?? undefined;
1106
+ }
1107
+ getSignatureFromDeclaration(node) {
1108
+ const data = this.client.apiRequest("getSignatureFromDeclaration", {
1109
+ snapshot: this.snapshotId,
1110
+ project: this.project.id,
1111
+ location: getNodeId(node),
1112
+ });
1113
+ return data ? this.objectRegistry.getOrCreateSignature(data) : undefined;
1114
+ }
1115
+ getExportSpecifierLocalTargetSymbol(node) {
1116
+ const data = this.client.apiRequest("getExportSpecifierLocalTargetSymbol", {
1117
+ snapshot: this.snapshotId,
1118
+ project: this.project.id,
1119
+ location: getNodeId(node),
1120
+ });
1121
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
1122
+ }
1123
+ /**
1124
+ * Follow all aliases to get the original symbol. Always returns a symbol; for
1125
+ * an unresolved alias the checker yields the unknown symbol (use
1126
+ * {@link Checker.isUnknownSymbol} to detect it).
1127
+ */
1128
+ getAliasedSymbol(symbol) {
1129
+ const data = this.client.apiRequest("getAliasedSymbol", {
1130
+ snapshot: this.snapshotId,
1131
+ project: this.project.id,
1132
+ symbol: symbol.id,
1133
+ });
1134
+ if (!data)
1135
+ throw new Error(`getAliasedSymbol returned no symbol for symbol ${symbol.id}`);
1136
+ return this.objectRegistry.getOrCreateSymbol(data);
1137
+ }
1138
+ getImmediateAliasedSymbol(symbol) {
1139
+ const data = this.client.apiRequest("getImmediateAliasedSymbol", {
1140
+ snapshot: this.snapshotId,
1141
+ project: this.project.id,
1142
+ symbol: symbol.id,
1143
+ });
1144
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
1145
+ }
1146
+ /**
1147
+ * Fetch (once, then cache) the handle ids of the per-checker singleton
1148
+ * symbols (unknown, undefined, arguments). These ids are stable for the life
1149
+ * of the project's checker, so identity checks against them are local after
1150
+ * the first call.
1151
+ */
1152
+ getWellKnownSymbols() {
1153
+ return this.wellKnownSymbols ??= this.client.apiRequest("getWellKnownSymbols", {
1154
+ snapshot: this.snapshotId,
1155
+ project: this.project.id,
1156
+ });
1157
+ }
1158
+ /**
1159
+ * Returns `true` if the symbol is the checker's "unknown" symbol (e.g. the
1160
+ * result of {@link Checker.getAliasedSymbol} on an unresolved alias).
1161
+ */
1162
+ isUnknownSymbol(symbol) {
1163
+ return symbol.id === (this.getWellKnownSymbols()).unknown;
1164
+ }
1165
+ /**
1166
+ * Returns `true` if the symbol is the checker's "undefined" symbol.
1167
+ */
1168
+ isUndefinedSymbol(symbol) {
1169
+ return symbol.id === (this.getWellKnownSymbols()).undefined;
1170
+ }
1171
+ /**
1172
+ * Returns `true` if the symbol is the checker's "arguments" symbol.
1173
+ */
1174
+ isArgumentsSymbol(symbol) {
1175
+ return symbol.id === (this.getWellKnownSymbols()).arguments;
1176
+ }
1177
+ getExportsOfModule(symbol) {
1178
+ const data = this.client.apiRequest("getExportsOfModule", {
1179
+ snapshot: this.snapshotId,
1180
+ project: this.project.id,
1181
+ symbol: symbol.id,
1182
+ });
1183
+ return data ? data.map(d => this.objectRegistry.getOrCreateSymbol(d)) : [];
1184
+ }
1185
+ getMemberInModuleExports(symbol, name) {
1186
+ const data = this.client.apiRequest("getMemberInModuleExports", {
1187
+ snapshot: this.snapshotId,
1188
+ project: this.project.id,
1189
+ symbol: symbol.id,
1190
+ name,
1191
+ });
1192
+ return data ? this.objectRegistry.getOrCreateSymbol(data) : undefined;
1193
+ }
1194
+ getJsDocTagsOfSymbol(symbol) {
1195
+ const data = this.client.apiRequest("getJsDocTags", {
1196
+ snapshot: this.snapshotId,
1197
+ project: this.project.id,
1198
+ symbol: symbol.id,
1199
+ });
1200
+ return data ?? [];
1201
+ }
1202
+ getDocumentationCommentOfSymbol(symbol) {
1203
+ return this.client.apiRequest("getDocumentationComment", {
1204
+ snapshot: this.snapshotId,
1205
+ project: this.project.id,
1206
+ symbol: symbol.id,
1207
+ });
1208
+ }
1209
+ /**
1210
+ * Get the type arguments of a type reference (e.g. the `string` in `Array<string>`).
1211
+ */
1212
+ getTypeArguments(type) {
1213
+ const data = this.client.apiRequest("getTypeArguments", {
1214
+ snapshot: this.snapshotId,
1215
+ project: this.project.id,
1216
+ type: type.id,
1217
+ });
1218
+ return data ? data.map(d => this.objectRegistry.getOrCreateType(d)) : [];
1219
+ }
1220
+ }
1221
+ export class Emitter {
1222
+ client;
1223
+ constructor(client) {
1224
+ this.client = client;
1225
+ }
1226
+ printNode(node, options = {}) {
1227
+ const encoded = encodeNode(node);
1228
+ const base64 = uint8ArrayToBase64(encoded);
1229
+ return this.client.apiRequest("printNode", {
1230
+ data: base64,
1231
+ ...options,
1232
+ });
1233
+ }
1234
+ }
1235
+ export class NodeHandle {
1236
+ /**
1237
+ * The project this handle was produced in, used as the default for {@link resolve}.
1238
+ * Node handles are only meaningful within a project's program, so the producing project
1239
+ * is remembered so callers don't have to pass it explicitly.
1240
+ */
1241
+ canonicalProject;
1242
+ index;
1243
+ kind;
1244
+ path;
1245
+ constructor(handle, canonicalProject) {
1246
+ const parsed = parseNodeHandle(handle);
1247
+ this.index = parsed.index;
1248
+ this.kind = parsed.kind;
1249
+ this.path = parsed.path;
1250
+ this.canonicalProject = canonicalProject;
1251
+ }
1252
+ /**
1253
+ * Resolve this handle to the actual AST node by fetching the source file from a project
1254
+ * and looking up the node by index. If no project is passed, the project that produced
1255
+ * the handle is used.
1256
+ */
1257
+ resolve(project = this.canonicalProject) {
1258
+ const sourceFile = project.program.getSourceFile(this.path);
1259
+ if (!sourceFile) {
1260
+ return undefined;
1261
+ }
1262
+ return sourceFile.getOrCreateNodeAtIndex(this.index);
1263
+ }
1264
+ }
1265
+ export class Symbol {
1266
+ objectRegistry;
1267
+ /**
1268
+ * The project this symbol was first observed in, used as the default project for
1269
+ * lookups that need a project context (members/exports/parent). Symbols are shared
1270
+ * snapshot-wide, so these lookups can otherwise be ambiguous about which project to use.
1271
+ */
1272
+ canonicalProject;
1273
+ id;
1274
+ /** The escaped (`__String`) name, used as the key in member/export tables. */
1275
+ escapedName;
1276
+ /** The display name (escaped underscores removed). */
1277
+ name;
1278
+ flags;
1279
+ checkFlags;
1280
+ declarations;
1281
+ valueDeclaration;
1282
+ parent;
1283
+ exportSymbol;
1284
+ membersCache;
1285
+ exportsCache;
1286
+ constructor(data, objectRegistry) {
1287
+ this.objectRegistry = objectRegistry;
1288
+ this.id = data.id;
1289
+ this.escapedName = data.name;
1290
+ this.name = unescapeLeadingUnderscores(data.name);
1291
+ this.flags = data.flags;
1292
+ this.checkFlags = data.checkFlags;
1293
+ const canonicalProject = objectRegistry.getProject(data.project);
1294
+ if (!canonicalProject) {
1295
+ throw new Error(`Symbol ${data.id} references unknown canonical project '${data.project}'`);
1296
+ }
1297
+ this.canonicalProject = canonicalProject;
1298
+ this.declarations = (data.declarations ?? []).map(d => new NodeHandle(d, canonicalProject));
1299
+ this.valueDeclaration = data.valueDeclaration ? new NodeHandle(data.valueDeclaration, canonicalProject) : undefined;
1300
+ if (data.parent !== undefined)
1301
+ this.parent = data.parent;
1302
+ if (data.exportSymbol !== undefined)
1303
+ this.exportSymbol = data.exportSymbol;
1304
+ }
1305
+ getParent() {
1306
+ return this.objectRegistry.fetchSymbol(this, "getParentOfSymbol", this.parent, this.canonicalProject.id);
1307
+ }
1308
+ /**
1309
+ * Get this symbol's members keyed by escaped name. The result is cached on
1310
+ * the symbol, so repeated calls do not round-trip to the server.
1311
+ */
1312
+ getMembers() {
1313
+ return this.membersCache ??= this.fetchSymbolTable("getMembersOfSymbol");
1314
+ }
1315
+ /**
1316
+ * Get this symbol's exports keyed by escaped name. The result is cached on
1317
+ * the symbol, so repeated calls do not round-trip to the server.
1318
+ */
1319
+ getExports() {
1320
+ return this.exportsCache ??= this.fetchSymbolTable("getExportsOfSymbol");
1321
+ }
1322
+ fetchSymbolTable(method) {
1323
+ const symbols = this.objectRegistry.fetchSymbols(this, method, undefined, this.canonicalProject.id);
1324
+ const table = new Map();
1325
+ for (const symbol of symbols) {
1326
+ table.set(symbol.escapedName, symbol);
1327
+ }
1328
+ return table;
1329
+ }
1330
+ getExportSymbol() {
1331
+ if (!this.exportSymbol)
1332
+ return this;
1333
+ return this.objectRegistry.fetchSymbol(this, "getExportSymbolOfSymbol", this.exportSymbol, this.canonicalProject.id);
1334
+ }
1335
+ getJsDocTags(checker) {
1336
+ return checker.getJsDocTagsOfSymbol(this);
1337
+ }
1338
+ getDocumentationComment(checker) {
1339
+ return checker.getDocumentationCommentOfSymbol(this);
1340
+ }
1341
+ }
1342
+ class TypeObject {
1343
+ objectRegistry;
1344
+ id;
1345
+ flags;
1346
+ objectFlags;
1347
+ symbol;
1348
+ value;
1349
+ intrinsicName;
1350
+ isThisType;
1351
+ freshType;
1352
+ regularType;
1353
+ target;
1354
+ typeParameters;
1355
+ outerTypeParameters;
1356
+ localTypeParameters;
1357
+ aliasTypeArguments;
1358
+ aliasSymbol;
1359
+ elementFlags;
1360
+ fixedLength;
1361
+ readonly;
1362
+ texts;
1363
+ objectType;
1364
+ indexType;
1365
+ checkType;
1366
+ extendsType;
1367
+ baseType;
1368
+ substConstraint;
1369
+ trueType; // false if not yet loaded
1370
+ falseType; // false if not yet loaded
1371
+ constructor(data, objectRegistry) {
1372
+ this.objectRegistry = objectRegistry;
1373
+ this.id = data.id;
1374
+ this.flags = data.flags;
1375
+ if (data.objectFlags !== undefined)
1376
+ this.objectFlags = data.objectFlags;
1377
+ if (data.symbol !== undefined)
1378
+ this.symbol = data.symbol;
1379
+ if (data.value != null) {
1380
+ // BigInt literal values are serialized as decimal strings (e.g. "-123") because
1381
+ // JSON cannot represent bigint. Decode them back into a real bigint here.
1382
+ this.value = (data.flags & TypeFlags.BigIntLiteral) ? BigInt(data.value) : data.value;
1383
+ }
1384
+ if (data.intrinsicName !== undefined)
1385
+ this.intrinsicName = data.intrinsicName;
1386
+ if (data.isThisType !== undefined)
1387
+ this.isThisType = data.isThisType;
1388
+ if (data.freshType !== undefined)
1389
+ this.freshType = data.freshType;
1390
+ if (data.regularType !== undefined)
1391
+ this.regularType = data.regularType;
1392
+ if (data.target !== undefined)
1393
+ this.target = data.target;
1394
+ this.typeParameters = data.typeParameters ?? [];
1395
+ this.outerTypeParameters = data.outerTypeParameters ?? [];
1396
+ this.localTypeParameters = data.localTypeParameters ?? [];
1397
+ this.aliasTypeArguments = data.aliasTypeArguments ?? [];
1398
+ if (data.aliasSymbol !== undefined)
1399
+ this.aliasSymbol = data.aliasSymbol;
1400
+ if (data.elementFlags !== undefined)
1401
+ this.elementFlags = data.elementFlags;
1402
+ if (data.fixedLength !== undefined)
1403
+ this.fixedLength = data.fixedLength;
1404
+ if (data.readonly !== undefined)
1405
+ this.readonly = data.readonly;
1406
+ if (data.texts !== undefined)
1407
+ this.texts = data.texts;
1408
+ if (data.objectType !== undefined)
1409
+ this.objectType = data.objectType;
1410
+ if (data.indexType !== undefined)
1411
+ this.indexType = data.indexType;
1412
+ if (data.checkType !== undefined)
1413
+ this.checkType = data.checkType;
1414
+ if (data.extendsType !== undefined)
1415
+ this.extendsType = data.extendsType;
1416
+ if (data.baseType !== undefined)
1417
+ this.baseType = data.baseType;
1418
+ if (data.substConstraint !== undefined)
1419
+ this.substConstraint = data.substConstraint;
1420
+ this.trueType = false;
1421
+ this.falseType = false;
1422
+ }
1423
+ getSymbol() {
1424
+ return this.objectRegistry.fetchSymbol(this, "getSymbolOfType", this.symbol);
1425
+ }
1426
+ getAliasSymbol() {
1427
+ return this.objectRegistry.fetchSymbol(this, "getAliasSymbolOfType", this.aliasSymbol);
1428
+ }
1429
+ getTarget() {
1430
+ return this.objectRegistry.fetchType(this, "getTargetOfType", this.target);
1431
+ }
1432
+ getFreshType() {
1433
+ return this.objectRegistry.fetchType(this, "getFreshTypeOfType", this.freshType);
1434
+ }
1435
+ getRegularType() {
1436
+ return this.objectRegistry.fetchType(this, "getRegularTypeOfType", this.regularType);
1437
+ }
1438
+ getTypes() {
1439
+ // Only union, intersection, and template literal types have constituent
1440
+ // types; any other kind has none, so return undefined rather than sending
1441
+ // a request the server cannot satisfy.
1442
+ if (!(this.flags & (TypeFlags.UnionOrIntersection | TypeFlags.TemplateLiteral))) {
1443
+ return undefined;
1444
+ }
1445
+ return this.objectRegistry.fetchTypes(this, "getTypesOfType");
1446
+ }
1447
+ getTypeParameters() {
1448
+ return this.objectRegistry.fetchTypes(this, "getTypeParametersOfType", this.typeParameters);
1449
+ }
1450
+ getOuterTypeParameters() {
1451
+ return this.objectRegistry.fetchTypes(this, "getOuterTypeParametersOfType", this.outerTypeParameters);
1452
+ }
1453
+ getLocalTypeParameters() {
1454
+ return this.objectRegistry.fetchTypes(this, "getLocalTypeParametersOfType", this.localTypeParameters);
1455
+ }
1456
+ getAliasTypeArguments() {
1457
+ return this.objectRegistry.fetchTypes(this, "getAliasTypeArgumentsOfType", this.aliasTypeArguments);
1458
+ }
1459
+ getObjectType() {
1460
+ return this.objectRegistry.fetchType(this, "getObjectTypeOfType", this.objectType);
1461
+ }
1462
+ getIndexType() {
1463
+ return this.objectRegistry.fetchType(this, "getIndexTypeOfType", this.indexType);
1464
+ }
1465
+ getCheckType() {
1466
+ return this.objectRegistry.fetchType(this, "getCheckTypeOfType", this.checkType);
1467
+ }
1468
+ getExtendsType() {
1469
+ return this.objectRegistry.fetchType(this, "getExtendsTypeOfType", this.extendsType);
1470
+ }
1471
+ getBaseType() {
1472
+ return this.objectRegistry.fetchType(this, "getBaseTypeOfType", this.baseType);
1473
+ }
1474
+ getConstraint() {
1475
+ return this.objectRegistry.fetchType(this, "getConstraintOfType", this.substConstraint);
1476
+ }
1477
+ getTrueType() {
1478
+ const result = this.objectRegistry.fetchType(this, "getTrueTypeOfConditionalType", this.trueType);
1479
+ this.trueType = result.id;
1480
+ return result;
1481
+ }
1482
+ getFalseType() {
1483
+ const result = this.objectRegistry.fetchType(this, "getFalseTypeOfConditionalType", this.falseType);
1484
+ this.falseType = result.id;
1485
+ return result;
1486
+ }
1487
+ /**
1488
+ * Get the base types of this type. Returns `undefined` for any type that is
1489
+ * not a class or interface.
1490
+ */
1491
+ getBaseTypes() {
1492
+ if (!this.isClassOrInterface()) {
1493
+ return undefined;
1494
+ }
1495
+ return this.objectRegistry.fetchBaseTypes(this);
1496
+ }
1497
+ isClassOrInterface() {
1498
+ return isClassOrInterfaceType(this);
1499
+ }
1500
+ isUnionType() {
1501
+ return isUnionType(this);
1502
+ }
1503
+ isIntersectionType() {
1504
+ return isIntersectionType(this);
1505
+ }
1506
+ isObjectType() {
1507
+ return isObjectType(this);
1508
+ }
1509
+ isIntrinsicType() {
1510
+ return isIntrinsicType(this);
1511
+ }
1512
+ isErrorType() {
1513
+ return isErrorType(this);
1514
+ }
1515
+ isLiteralType() {
1516
+ return isLiteralType(this);
1517
+ }
1518
+ isStringLiteralType() {
1519
+ return isStringLiteralType(this);
1520
+ }
1521
+ isNumberLiteralType() {
1522
+ return isNumberLiteralType(this);
1523
+ }
1524
+ isBigIntLiteralType() {
1525
+ return isBigIntLiteralType(this);
1526
+ }
1527
+ isBooleanLiteralType() {
1528
+ return isBooleanLiteralType(this);
1529
+ }
1530
+ isTypeReference() {
1531
+ return isTypeReference(this);
1532
+ }
1533
+ isTupleType() {
1534
+ return isTupleType(this);
1535
+ }
1536
+ isIndexType() {
1537
+ return isIndexType(this);
1538
+ }
1539
+ isIndexedAccessType() {
1540
+ return isIndexedAccessType(this);
1541
+ }
1542
+ isConditionalType() {
1543
+ return isConditionalType(this);
1544
+ }
1545
+ isSubstitutionType() {
1546
+ return isSubstitutionType(this);
1547
+ }
1548
+ isTemplateLiteralType() {
1549
+ return isTemplateLiteralType(this);
1550
+ }
1551
+ isStringMappingType() {
1552
+ return isStringMappingType(this);
1553
+ }
1554
+ isTypeParameter() {
1555
+ return isTypeParameter(this);
1556
+ }
1557
+ }
1558
+ export function isUnionType(type) {
1559
+ return (type.flags & TypeFlags.Union) !== 0;
1560
+ }
1561
+ export function isIntersectionType(type) {
1562
+ return (type.flags & TypeFlags.Intersection) !== 0;
1563
+ }
1564
+ export function isObjectType(type) {
1565
+ return (type.flags & TypeFlags.Object) !== 0;
1566
+ }
1567
+ export function isClassOrInterfaceType(type) {
1568
+ return isObjectType(type) && (type.objectFlags & ObjectFlags.ClassOrInterface) !== 0;
1569
+ }
1570
+ export function isIntrinsicType(type) {
1571
+ return (type.flags & TypeFlags.Intrinsic) !== 0;
1572
+ }
1573
+ /**
1574
+ * Whether this is the error type — the placeholder the checker produces when a
1575
+ * type cannot be determined (e.g. an unresolved reference). It is an intrinsic
1576
+ * type named `"error"` (this covers both the singleton error type and the
1577
+ * per-alias error types manufactured for unresolved type alias references).
1578
+ */
1579
+ export function isErrorType(type) {
1580
+ return isIntrinsicType(type) && type.intrinsicName === "error";
1581
+ }
1582
+ export function isLiteralType(type) {
1583
+ return (type.flags & TypeFlags.Literal) !== 0;
1584
+ }
1585
+ export function isStringLiteralType(type) {
1586
+ return (type.flags & TypeFlags.StringLiteral) !== 0;
1587
+ }
1588
+ export function isNumberLiteralType(type) {
1589
+ return (type.flags & TypeFlags.NumberLiteral) !== 0;
1590
+ }
1591
+ export function isBigIntLiteralType(type) {
1592
+ return (type.flags & TypeFlags.BigIntLiteral) !== 0;
1593
+ }
1594
+ export function isBooleanLiteralType(type) {
1595
+ return (type.flags & TypeFlags.BooleanLiteral) !== 0;
1596
+ }
1597
+ export function isTypeReference(type) {
1598
+ return isObjectType(type) && (type.objectFlags & ObjectFlags.Reference) !== 0;
1599
+ }
1600
+ export function isTupleType(type) {
1601
+ return isObjectType(type) && (type.objectFlags & ObjectFlags.Tuple) !== 0;
1602
+ }
1603
+ export function isIndexType(type) {
1604
+ return (type.flags & TypeFlags.Index) !== 0;
1605
+ }
1606
+ export function isIndexedAccessType(type) {
1607
+ return (type.flags & TypeFlags.IndexedAccess) !== 0;
1608
+ }
1609
+ export function isConditionalType(type) {
1610
+ return (type.flags & TypeFlags.Conditional) !== 0;
1611
+ }
1612
+ export function isSubstitutionType(type) {
1613
+ return (type.flags & TypeFlags.Substitution) !== 0;
1614
+ }
1615
+ export function isTemplateLiteralType(type) {
1616
+ return (type.flags & TypeFlags.TemplateLiteral) !== 0;
1617
+ }
1618
+ export function isStringMappingType(type) {
1619
+ return (type.flags & TypeFlags.StringMapping) !== 0;
1620
+ }
1621
+ export function isTypeParameter(type) {
1622
+ return (type.flags & TypeFlags.TypeParameter) !== 0;
1623
+ }
1624
+ export class Signature {
1625
+ flags;
1626
+ objectRegistry;
1627
+ id;
1628
+ declaration;
1629
+ typeParameters;
1630
+ parameters;
1631
+ thisParameter;
1632
+ target;
1633
+ constructor(data, project, objectRegistry) {
1634
+ this.id = data.id;
1635
+ this.flags = data.flags;
1636
+ this.objectRegistry = objectRegistry;
1637
+ this.declaration = data.declaration ? new NodeHandle(data.declaration, project) : undefined;
1638
+ this.typeParameters = data.typeParameters ?? [];
1639
+ this.parameters = data.parameters ?? [];
1640
+ this.thisParameter = data.thisParameter;
1641
+ this.target = data.target;
1642
+ }
1643
+ getTypeParameters() {
1644
+ return this.objectRegistry.fetchTypes(this, "getTypeParametersOfSignature", this.typeParameters);
1645
+ }
1646
+ getParameters() {
1647
+ return this.objectRegistry.fetchSymbols(this, "getParametersOfSignature", this.parameters);
1648
+ }
1649
+ getThisParameter() {
1650
+ return this.objectRegistry.fetchSymbol(this, "getThisParameterOfSignature", this.thisParameter);
1651
+ }
1652
+ getTarget() {
1653
+ return this.objectRegistry.fetchSignature(this, "getTargetOfSignature", this.target);
1654
+ }
1655
+ get hasRestParameter() {
1656
+ return (this.flags & SignatureFlags.HasRestParameter) !== 0;
1657
+ }
1658
+ get isConstruct() {
1659
+ return (this.flags & SignatureFlags.Construct) !== 0;
1660
+ }
1661
+ get isAbstract() {
1662
+ return (this.flags & SignatureFlags.Abstract) !== 0;
1663
+ }
1664
+ }
1665
+ //# sourceMappingURL=api.js.map