create-yoya-ui 0.2.2 → 0.3.3

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