@emulsify/cli 2.2.0 → 2.3.1

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 (1532) hide show
  1. package/README.md +17 -1
  2. package/dist/handlers/audit.js +103 -0
  3. package/dist/handlers/cacheClear.js +62 -0
  4. package/dist/handlers/componentCreate.js +3 -1
  5. package/dist/handlers/componentInstall.js +8 -6
  6. package/dist/handlers/componentList.js +4 -2
  7. package/dist/handlers/hofs/withEmulsifySystem.js +69 -6
  8. package/dist/handlers/init.js +9 -1
  9. package/dist/handlers/systemInstall.js +77 -31
  10. package/dist/index.js +43 -8
  11. package/dist/lib/constants.js +1 -0
  12. package/dist/schemas/emulsifyProjectConfig.json +61 -2
  13. package/dist/schemas/system.json +1 -1
  14. package/dist/schemas/variant.json +28 -3
  15. package/dist/util/cache/cloneIntoCache.js +212 -11
  16. package/dist/util/cache/copyItemFromCache.js +8 -7
  17. package/dist/util/cache/getCachedItemCheckout.js +2 -2
  18. package/dist/util/cache/getCachedItemPath.js +10 -7
  19. package/dist/util/cache/getJsonFromCachedFile.js +6 -2
  20. package/dist/util/cache/normalizeRepositoryUrl.js +16 -0
  21. package/dist/util/fs/findFileInCurrentPath.js +13 -4
  22. package/dist/util/getAvailableStarters.js +6 -0
  23. package/dist/util/platform/getPlatformInfo.js +9 -3
  24. package/dist/util/platform/getWordPressInfo.js +40 -0
  25. package/dist/util/platform/platformCompatibility.js +104 -0
  26. package/dist/util/project/getEmulsifyConfig.js +4 -0
  27. package/dist/util/system/getAvailableSystems.js +2 -2
  28. package/dist/util/system/validateSystemConfig.js +28 -0
  29. package/package.json +28 -19
  30. package/dist/node_modules/.package-lock.json +0 -884
  31. package/dist/node_modules/@inquirer/ansi/LICENSE +0 -22
  32. package/dist/node_modules/@inquirer/ansi/README.md +0 -89
  33. package/dist/node_modules/@inquirer/ansi/dist/index.d.ts +0 -14
  34. package/dist/node_modules/@inquirer/ansi/dist/index.js +0 -21
  35. package/dist/node_modules/@inquirer/ansi/package.json +0 -78
  36. package/dist/node_modules/@inquirer/checkbox/LICENSE +0 -22
  37. package/dist/node_modules/@inquirer/checkbox/README.md +0 -195
  38. package/dist/node_modules/@inquirer/checkbox/dist/index.d.ts +0 -56
  39. package/dist/node_modules/@inquirer/checkbox/dist/index.js +0 -210
  40. package/dist/node_modules/@inquirer/checkbox/package.json +0 -92
  41. package/dist/node_modules/@inquirer/confirm/LICENSE +0 -22
  42. package/dist/node_modules/@inquirer/confirm/README.md +0 -92
  43. package/dist/node_modules/@inquirer/confirm/dist/index.d.ts +0 -10
  44. package/dist/node_modules/@inquirer/confirm/dist/index.js +0 -48
  45. package/dist/node_modules/@inquirer/confirm/package.json +0 -90
  46. package/dist/node_modules/@inquirer/core/LICENSE +0 -22
  47. package/dist/node_modules/@inquirer/core/README.md +0 -386
  48. package/dist/node_modules/@inquirer/core/dist/index.d.ts +0 -13
  49. package/dist/node_modules/@inquirer/core/dist/index.js +0 -12
  50. package/dist/node_modules/@inquirer/core/dist/lib/Separator.d.ts +0 -10
  51. package/dist/node_modules/@inquirer/core/dist/lib/Separator.js +0 -21
  52. package/dist/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +0 -4
  53. package/dist/node_modules/@inquirer/core/dist/lib/create-prompt.js +0 -165
  54. package/dist/node_modules/@inquirer/core/dist/lib/errors.d.ts +0 -20
  55. package/dist/node_modules/@inquirer/core/dist/lib/errors.js +0 -21
  56. package/dist/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +0 -23
  57. package/dist/node_modules/@inquirer/core/dist/lib/hook-engine.js +0 -111
  58. package/dist/node_modules/@inquirer/core/dist/lib/key.d.ts +0 -15
  59. package/dist/node_modules/@inquirer/core/dist/lib/key.js +0 -34
  60. package/dist/node_modules/@inquirer/core/dist/lib/make-theme.d.ts +0 -3
  61. package/dist/node_modules/@inquirer/core/dist/lib/make-theme.js +0 -32
  62. package/dist/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +0 -16
  63. package/dist/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +0 -121
  64. package/dist/node_modules/@inquirer/core/dist/lib/promise-polyfill.d.ts +0 -7
  65. package/dist/node_modules/@inquirer/core/dist/lib/promise-polyfill.js +0 -14
  66. package/dist/node_modules/@inquirer/core/dist/lib/screen-manager.d.ts +0 -14
  67. package/dist/node_modules/@inquirer/core/dist/lib/screen-manager.js +0 -84
  68. package/dist/node_modules/@inquirer/core/dist/lib/theme.d.ts +0 -166
  69. package/dist/node_modules/@inquirer/core/dist/lib/theme.js +0 -29
  70. package/dist/node_modules/@inquirer/core/dist/lib/use-effect.d.ts +0 -2
  71. package/dist/node_modules/@inquirer/core/dist/lib/use-effect.js +0 -11
  72. package/dist/node_modules/@inquirer/core/dist/lib/use-keypress.d.ts +0 -3
  73. package/dist/node_modules/@inquirer/core/dist/lib/use-keypress.js +0 -20
  74. package/dist/node_modules/@inquirer/core/dist/lib/use-memo.d.ts +0 -1
  75. package/dist/node_modules/@inquirer/core/dist/lib/use-memo.js +0 -14
  76. package/dist/node_modules/@inquirer/core/dist/lib/use-prefix.d.ts +0 -5
  77. package/dist/node_modules/@inquirer/core/dist/lib/use-prefix.js +0 -35
  78. package/dist/node_modules/@inquirer/core/dist/lib/use-ref.d.ts +0 -6
  79. package/dist/node_modules/@inquirer/core/dist/lib/use-ref.js +0 -4
  80. package/dist/node_modules/@inquirer/core/dist/lib/use-state.d.ts +0 -4
  81. package/dist/node_modules/@inquirer/core/dist/lib/use-state.js +0 -23
  82. package/dist/node_modules/@inquirer/core/dist/lib/utils.d.ts +0 -13
  83. package/dist/node_modules/@inquirer/core/dist/lib/utils.js +0 -25
  84. package/dist/node_modules/@inquirer/core/package.json +0 -97
  85. package/dist/node_modules/@inquirer/editor/LICENSE +0 -22
  86. package/dist/node_modules/@inquirer/editor/README.md +0 -101
  87. package/dist/node_modules/@inquirer/editor/dist/index.d.ts +0 -21
  88. package/dist/node_modules/@inquirer/editor/dist/index.js +0 -73
  89. package/dist/node_modules/@inquirer/editor/package.json +0 -91
  90. package/dist/node_modules/@inquirer/expand/LICENSE +0 -22
  91. package/dist/node_modules/@inquirer/expand/README.md +0 -141
  92. package/dist/node_modules/@inquirer/expand/dist/index.d.ts +0 -24
  93. package/dist/node_modules/@inquirer/expand/dist/index.js +0 -110
  94. package/dist/node_modules/@inquirer/expand/package.json +0 -90
  95. package/dist/node_modules/@inquirer/external-editor/LICENSE +0 -22
  96. package/dist/node_modules/@inquirer/external-editor/README.md +0 -154
  97. package/dist/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
  98. package/dist/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
  99. package/dist/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
  100. package/dist/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
  101. package/dist/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
  102. package/dist/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
  103. package/dist/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
  104. package/dist/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
  105. package/dist/node_modules/@inquirer/external-editor/dist/errors.d.ts +0 -20
  106. package/dist/node_modules/@inquirer/external-editor/dist/errors.js +0 -32
  107. package/dist/node_modules/@inquirer/external-editor/dist/index.d.ts +0 -35
  108. package/dist/node_modules/@inquirer/external-editor/dist/index.js +0 -146
  109. package/dist/node_modules/@inquirer/external-editor/dist/parse-editor-command.d.ts +0 -5
  110. package/dist/node_modules/@inquirer/external-editor/dist/parse-editor-command.js +0 -28
  111. package/dist/node_modules/@inquirer/external-editor/package.json +0 -97
  112. package/dist/node_modules/@inquirer/figures/LICENSE +0 -22
  113. package/dist/node_modules/@inquirer/figures/dist/index.d.ts +0 -275
  114. package/dist/node_modules/@inquirer/figures/dist/index.js +0 -315
  115. package/dist/node_modules/@inquirer/figures/package.json +0 -80
  116. package/dist/node_modules/@inquirer/input/LICENSE +0 -22
  117. package/dist/node_modules/@inquirer/input/README.md +0 -101
  118. package/dist/node_modules/@inquirer/input/dist/index.d.ts +0 -20
  119. package/dist/node_modules/@inquirer/input/dist/index.js +0 -99
  120. package/dist/node_modules/@inquirer/input/package.json +0 -90
  121. package/dist/node_modules/@inquirer/number/LICENSE +0 -22
  122. package/dist/node_modules/@inquirer/number/README.md +0 -95
  123. package/dist/node_modules/@inquirer/number/dist/index.d.ts +0 -13
  124. package/dist/node_modules/@inquirer/number/dist/index.js +0 -95
  125. package/dist/node_modules/@inquirer/number/package.json +0 -90
  126. package/dist/node_modules/@inquirer/password/LICENSE +0 -22
  127. package/dist/node_modules/@inquirer/password/README.md +0 -93
  128. package/dist/node_modules/@inquirer/password/dist/index.d.ts +0 -15
  129. package/dist/node_modules/@inquirer/password/dist/index.js +0 -60
  130. package/dist/node_modules/@inquirer/password/package.json +0 -91
  131. package/dist/node_modules/@inquirer/prompts/LICENSE +0 -22
  132. package/dist/node_modules/@inquirer/prompts/README.md +0 -543
  133. package/dist/node_modules/@inquirer/prompts/dist/index.d.ts +0 -10
  134. package/dist/node_modules/@inquirer/prompts/dist/index.js +0 -10
  135. package/dist/node_modules/@inquirer/prompts/package.json +0 -101
  136. package/dist/node_modules/@inquirer/rawlist/LICENSE +0 -22
  137. package/dist/node_modules/@inquirer/rawlist/README.md +0 -135
  138. package/dist/node_modules/@inquirer/rawlist/dist/index.d.ts +0 -23
  139. package/dist/node_modules/@inquirer/rawlist/dist/index.js +0 -145
  140. package/dist/node_modules/@inquirer/rawlist/package.json +0 -90
  141. package/dist/node_modules/@inquirer/search/LICENSE +0 -22
  142. package/dist/node_modules/@inquirer/search/README.md +0 -213
  143. package/dist/node_modules/@inquirer/search/dist/index.d.ts +0 -33
  144. package/dist/node_modules/@inquirer/search/dist/index.js +0 -195
  145. package/dist/node_modules/@inquirer/search/package.json +0 -91
  146. package/dist/node_modules/@inquirer/select/LICENSE +0 -22
  147. package/dist/node_modules/@inquirer/select/README.md +0 -188
  148. package/dist/node_modules/@inquirer/select/dist/index.d.ts +0 -34
  149. package/dist/node_modules/@inquirer/select/dist/index.js +0 -191
  150. package/dist/node_modules/@inquirer/select/package.json +0 -92
  151. package/dist/node_modules/@inquirer/type/LICENSE +0 -22
  152. package/dist/node_modules/@inquirer/type/dist/index.d.ts +0 -2
  153. package/dist/node_modules/@inquirer/type/dist/index.js +0 -2
  154. package/dist/node_modules/@inquirer/type/dist/inquirer.d.ts +0 -35
  155. package/dist/node_modules/@inquirer/type/dist/inquirer.js +0 -1
  156. package/dist/node_modules/@inquirer/type/dist/utils.d.ts +0 -29
  157. package/dist/node_modules/@inquirer/type/dist/utils.js +0 -2
  158. package/dist/node_modules/@inquirer/type/package.json +0 -87
  159. package/dist/node_modules/@kwsites/file-exists/CHANGELOG.md +0 -12
  160. package/dist/node_modules/@kwsites/file-exists/LICENSE +0 -20
  161. package/dist/node_modules/@kwsites/file-exists/dist/index.d.ts +0 -1
  162. package/dist/node_modules/@kwsites/file-exists/dist/index.js +0 -7
  163. package/dist/node_modules/@kwsites/file-exists/dist/index.js.map +0 -1
  164. package/dist/node_modules/@kwsites/file-exists/dist/src/index.d.ts +0 -19
  165. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js +0 -55
  166. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js.map +0 -1
  167. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts +0 -7
  168. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js +0 -26
  169. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map +0 -1
  170. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.d.ts +0 -1
  171. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js +0 -77
  172. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js.map +0 -1
  173. package/dist/node_modules/@kwsites/file-exists/package.json +0 -42
  174. package/dist/node_modules/@kwsites/file-exists/readme.md +0 -41
  175. package/dist/node_modules/@kwsites/promise-deferred/LICENSE +0 -21
  176. package/dist/node_modules/@kwsites/promise-deferred/dist/index.d.ts +0 -49
  177. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js +0 -59
  178. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js.map +0 -1
  179. package/dist/node_modules/@kwsites/promise-deferred/package.json +0 -43
  180. package/dist/node_modules/@simple-git/args-pathspec/dist/index.cjs +0 -2
  181. package/dist/node_modules/@simple-git/args-pathspec/dist/index.cjs.map +0 -1
  182. package/dist/node_modules/@simple-git/args-pathspec/dist/index.d.ts +0 -1
  183. package/dist/node_modules/@simple-git/args-pathspec/dist/index.mjs +0 -17
  184. package/dist/node_modules/@simple-git/args-pathspec/dist/index.mjs.map +0 -1
  185. package/dist/node_modules/@simple-git/args-pathspec/dist/src/pathspec.d.ts +0 -8
  186. package/dist/node_modules/@simple-git/args-pathspec/package.json +0 -32
  187. package/dist/node_modules/@simple-git/argv-parser/dist/index.cjs +0 -2
  188. package/dist/node_modules/@simple-git/argv-parser/dist/index.cjs.map +0 -1
  189. package/dist/node_modules/@simple-git/argv-parser/dist/index.d.ts +0 -5
  190. package/dist/node_modules/@simple-git/argv-parser/dist/index.mjs +0 -463
  191. package/dist/node_modules/@simple-git/argv-parser/dist/index.mjs.map +0 -1
  192. package/dist/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts +0 -6
  193. package/dist/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts +0 -59
  194. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +0 -3
  195. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +0 -4
  196. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +0 -6
  197. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +0 -13
  198. package/dist/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts +0 -6
  199. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +0 -9
  200. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +0 -6
  201. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +0 -8
  202. package/dist/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +0 -9
  203. package/dist/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +0 -7
  204. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts +0 -3
  205. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts +0 -3
  206. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +0 -4
  207. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts +0 -5
  208. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +0 -104
  209. package/dist/node_modules/@simple-git/argv-parser/package.json +0 -36
  210. package/dist/node_modules/@types/node/LICENSE +0 -21
  211. package/dist/node_modules/@types/node/README.md +0 -15
  212. package/dist/node_modules/@types/node/assert/strict.d.ts +0 -68
  213. package/dist/node_modules/@types/node/assert.d.ts +0 -1077
  214. package/dist/node_modules/@types/node/async_hooks.d.ts +0 -711
  215. package/dist/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  216. package/dist/node_modules/@types/node/buffer.d.ts +0 -1760
  217. package/dist/node_modules/@types/node/child_process.d.ts +0 -1362
  218. package/dist/node_modules/@types/node/cluster.d.ts +0 -432
  219. package/dist/node_modules/@types/node/console.d.ts +0 -93
  220. package/dist/node_modules/@types/node/constants.d.ts +0 -14
  221. package/dist/node_modules/@types/node/crypto.d.ts +0 -3941
  222. package/dist/node_modules/@types/node/dgram.d.ts +0 -537
  223. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +0 -563
  224. package/dist/node_modules/@types/node/dns/promises.d.ts +0 -497
  225. package/dist/node_modules/@types/node/dns.d.ts +0 -876
  226. package/dist/node_modules/@types/node/domain.d.ts +0 -150
  227. package/dist/node_modules/@types/node/events.d.ts +0 -1008
  228. package/dist/node_modules/@types/node/fs/promises.d.ts +0 -1468
  229. package/dist/node_modules/@types/node/fs.d.ts +0 -4771
  230. package/dist/node_modules/@types/node/globals.d.ts +0 -150
  231. package/dist/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  232. package/dist/node_modules/@types/node/http.d.ts +0 -2147
  233. package/dist/node_modules/@types/node/http2.d.ts +0 -2489
  234. package/dist/node_modules/@types/node/https.d.ts +0 -400
  235. package/dist/node_modules/@types/node/index.d.ts +0 -114
  236. package/dist/node_modules/@types/node/inspector/promises.d.ts +0 -35
  237. package/dist/node_modules/@types/node/inspector.d.ts +0 -264
  238. package/dist/node_modules/@types/node/inspector.generated.d.ts +0 -4406
  239. package/dist/node_modules/@types/node/module.d.ts +0 -726
  240. package/dist/node_modules/@types/node/net.d.ts +0 -970
  241. package/dist/node_modules/@types/node/os.d.ts +0 -498
  242. package/dist/node_modules/@types/node/package.json +0 -155
  243. package/dist/node_modules/@types/node/path/posix.d.ts +0 -8
  244. package/dist/node_modules/@types/node/path/win32.d.ts +0 -8
  245. package/dist/node_modules/@types/node/path.d.ts +0 -178
  246. package/dist/node_modules/@types/node/perf_hooks.d.ts +0 -604
  247. package/dist/node_modules/@types/node/process.d.ts +0 -2204
  248. package/dist/node_modules/@types/node/punycode.d.ts +0 -89
  249. package/dist/node_modules/@types/node/querystring.d.ts +0 -139
  250. package/dist/node_modules/@types/node/quic.d.ts +0 -897
  251. package/dist/node_modules/@types/node/readline/promises.d.ts +0 -158
  252. package/dist/node_modules/@types/node/readline.d.ts +0 -508
  253. package/dist/node_modules/@types/node/repl.d.ts +0 -420
  254. package/dist/node_modules/@types/node/sea.d.ts +0 -47
  255. package/dist/node_modules/@types/node/sqlite.d.ts +0 -1068
  256. package/dist/node_modules/@types/node/stream/consumers.d.ts +0 -114
  257. package/dist/node_modules/@types/node/stream/iter.d.ts +0 -301
  258. package/dist/node_modules/@types/node/stream/promises.d.ts +0 -211
  259. package/dist/node_modules/@types/node/stream/web.d.ts +0 -300
  260. package/dist/node_modules/@types/node/stream.d.ts +0 -1774
  261. package/dist/node_modules/@types/node/string_decoder.d.ts +0 -27
  262. package/dist/node_modules/@types/node/test/reporters.d.ts +0 -59
  263. package/dist/node_modules/@types/node/test.d.ts +0 -2279
  264. package/dist/node_modules/@types/node/timers/promises.d.ts +0 -93
  265. package/dist/node_modules/@types/node/timers.d.ts +0 -149
  266. package/dist/node_modules/@types/node/tls.d.ts +0 -1193
  267. package/dist/node_modules/@types/node/trace_events.d.ts +0 -103
  268. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  269. package/dist/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  270. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  271. package/dist/node_modules/@types/node/ts5.6/index.d.ts +0 -116
  272. package/dist/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  273. package/dist/node_modules/@types/node/ts5.7/index.d.ts +0 -116
  274. package/dist/node_modules/@types/node/tty.d.ts +0 -225
  275. package/dist/node_modules/@types/node/url.d.ts +0 -556
  276. package/dist/node_modules/@types/node/util/types.d.ts +0 -558
  277. package/dist/node_modules/@types/node/util.d.ts +0 -1660
  278. package/dist/node_modules/@types/node/v8.d.ts +0 -980
  279. package/dist/node_modules/@types/node/vm.d.ts +0 -1136
  280. package/dist/node_modules/@types/node/wasi.d.ts +0 -131
  281. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  282. package/dist/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  283. package/dist/node_modules/@types/node/web-globals/console.d.ts +0 -9
  284. package/dist/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  285. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +0 -83
  286. package/dist/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  287. package/dist/node_modules/@types/node/web-globals/events.d.ts +0 -106
  288. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  289. package/dist/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  290. package/dist/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  291. package/dist/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  292. package/dist/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  293. package/dist/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  294. package/dist/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  295. package/dist/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  296. package/dist/node_modules/@types/node/web-globals/url.d.ts +0 -24
  297. package/dist/node_modules/@types/node/worker_threads.d.ts +0 -668
  298. package/dist/node_modules/@types/node/zlib/iter.d.ts +0 -131
  299. package/dist/node_modules/@types/node/zlib.d.ts +0 -589
  300. package/dist/node_modules/ajv/.runkit_example.js +0 -23
  301. package/dist/node_modules/ajv/LICENSE +0 -22
  302. package/dist/node_modules/ajv/README.md +0 -207
  303. package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
  304. package/dist/node_modules/ajv/dist/2019.js +0 -61
  305. package/dist/node_modules/ajv/dist/2019.js.map +0 -1
  306. package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
  307. package/dist/node_modules/ajv/dist/2020.js +0 -55
  308. package/dist/node_modules/ajv/dist/2020.js.map +0 -1
  309. package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
  310. package/dist/node_modules/ajv/dist/ajv.js +0 -50
  311. package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
  312. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  313. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  314. package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  315. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  316. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  317. package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  318. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  319. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  320. package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  321. package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  322. package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
  323. package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
  324. package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
  325. package/dist/node_modules/ajv/dist/compile/index.js +0 -242
  326. package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
  327. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  328. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  329. package/dist/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  330. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  331. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  332. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  333. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  334. package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  335. package/dist/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  336. package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
  337. package/dist/node_modules/ajv/dist/compile/names.js +0 -28
  338. package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
  339. package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  340. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
  341. package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  342. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  343. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
  344. package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  345. package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  346. package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
  347. package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
  348. package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
  349. package/dist/node_modules/ajv/dist/compile/util.js +0 -178
  350. package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
  351. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  352. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  353. package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  354. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  355. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  356. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  357. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  358. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  359. package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  360. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  361. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  362. package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  363. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  364. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
  365. package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  366. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  367. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  368. package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  369. package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  370. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  371. package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  372. package/dist/node_modules/ajv/dist/core.d.ts +0 -174
  373. package/dist/node_modules/ajv/dist/core.js +0 -618
  374. package/dist/node_modules/ajv/dist/core.js.map +0 -1
  375. package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
  376. package/dist/node_modules/ajv/dist/jtd.js +0 -72
  377. package/dist/node_modules/ajv/dist/jtd.js.map +0 -1
  378. package/dist/node_modules/ajv/dist/refs/data.json +0 -13
  379. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  380. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  381. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  382. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  383. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  384. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  385. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  386. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  387. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  388. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  389. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  390. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  391. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  392. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  393. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  394. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  395. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  396. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  397. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  398. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  399. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  400. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  401. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  402. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  403. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  404. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  405. package/dist/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  406. package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  407. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
  408. package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  409. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  410. package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  411. package/dist/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  412. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  413. package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
  414. package/dist/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  415. package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  416. package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
  417. package/dist/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  418. package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  419. package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  420. package/dist/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  421. package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  422. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  423. package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  424. package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  425. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
  426. package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  427. package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  428. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  429. package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  430. package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  431. package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
  432. package/dist/node_modules/ajv/dist/standalone/index.js.map +0 -1
  433. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  434. package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
  435. package/dist/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  436. package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
  437. package/dist/node_modules/ajv/dist/types/index.js +0 -3
  438. package/dist/node_modules/ajv/dist/types/index.js.map +0 -1
  439. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  440. package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
  441. package/dist/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  442. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  443. package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  444. package/dist/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  445. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  446. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  447. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  448. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  449. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  450. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  451. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  452. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  453. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  454. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  455. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  456. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  457. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  458. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  459. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  460. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  461. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  462. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  463. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  464. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  465. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  466. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  467. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  468. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  469. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  470. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  471. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  472. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  473. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  474. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  475. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  476. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  477. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  478. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  479. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  480. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  481. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  482. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  483. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  484. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  485. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  486. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  487. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  488. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  489. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  490. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  491. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  492. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  493. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  494. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  495. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  496. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  497. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  498. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  499. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  500. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
  501. package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  502. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  503. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  504. package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  505. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  506. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  507. package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  508. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  509. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  510. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  511. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  512. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  513. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  514. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  515. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  516. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  517. package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  518. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  519. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  520. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  521. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  522. package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  523. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  524. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  525. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  526. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  527. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  528. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  529. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  530. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  531. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  532. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  533. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  534. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  535. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  536. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  537. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  538. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  539. package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  540. package/dist/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  541. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  542. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  543. package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  544. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  545. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  546. package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  547. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  548. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  549. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  550. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  551. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  552. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  553. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  554. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  555. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  556. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  557. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  558. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  559. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  560. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  561. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  562. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  563. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  564. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  565. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  566. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  567. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  568. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  569. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  570. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  571. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  572. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  573. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  574. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  575. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  576. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  577. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  578. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  579. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  580. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  581. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  582. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  583. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  584. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  585. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  586. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  587. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  588. package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  589. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  590. package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
  591. package/dist/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  592. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  593. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  594. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  595. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  596. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  597. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  598. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  599. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  600. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  601. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  602. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  603. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  604. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  605. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  606. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  607. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  608. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  609. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  610. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  611. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  612. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  613. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  614. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  615. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  616. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  617. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  618. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  619. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  620. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  621. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  622. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  623. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  624. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  625. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  626. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  627. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  628. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  629. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  630. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  631. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  632. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  633. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  634. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  635. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  636. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  637. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  638. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  639. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  640. package/dist/node_modules/ajv/lib/2019.ts +0 -81
  641. package/dist/node_modules/ajv/lib/2020.ts +0 -75
  642. package/dist/node_modules/ajv/lib/ajv.ts +0 -70
  643. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  644. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  645. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  646. package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
  647. package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
  648. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  649. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  650. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  651. package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
  652. package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  653. package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
  654. package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
  655. package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
  656. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  657. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  658. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  659. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  660. package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  661. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  662. package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  663. package/dist/node_modules/ajv/lib/core.ts +0 -892
  664. package/dist/node_modules/ajv/lib/jtd.ts +0 -132
  665. package/dist/node_modules/ajv/lib/refs/data.json +0 -13
  666. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  667. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  668. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  669. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  670. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  671. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  672. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  673. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  674. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  675. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  676. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  677. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  678. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  679. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  680. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  681. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  682. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  683. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  684. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  685. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  686. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  687. package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
  688. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  689. package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
  690. package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
  691. package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  692. package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  693. package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
  694. package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  695. package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
  696. package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
  697. package/dist/node_modules/ajv/lib/types/index.ts +0 -244
  698. package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
  699. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  700. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  701. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  702. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  703. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  704. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  705. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  706. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  707. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  708. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  709. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  710. package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  711. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  712. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  713. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  714. package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  715. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  716. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  717. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  718. package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  719. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  720. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  721. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  722. package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  723. package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  724. package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  725. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  726. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  727. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  728. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  729. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  730. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  731. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  732. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  733. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  734. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  735. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  736. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  737. package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  738. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  739. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  740. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  741. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  742. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  743. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  744. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  745. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  746. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  747. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  748. package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  749. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  750. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  751. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  752. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  753. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  754. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  755. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  756. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  757. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  758. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  759. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  760. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  761. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  762. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  763. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  764. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  765. package/dist/node_modules/ajv/package.json +0 -126
  766. package/dist/node_modules/ajv-formats/LICENSE +0 -21
  767. package/dist/node_modules/ajv-formats/README.md +0 -125
  768. package/dist/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  769. package/dist/node_modules/ajv-formats/dist/formats.js +0 -208
  770. package/dist/node_modules/ajv-formats/dist/formats.js.map +0 -1
  771. package/dist/node_modules/ajv-formats/dist/index.d.ts +0 -15
  772. package/dist/node_modules/ajv-formats/dist/index.js +0 -37
  773. package/dist/node_modules/ajv-formats/dist/index.js.map +0 -1
  774. package/dist/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  775. package/dist/node_modules/ajv-formats/dist/limit.js +0 -69
  776. package/dist/node_modules/ajv-formats/dist/limit.js.map +0 -1
  777. package/dist/node_modules/ajv-formats/package.json +0 -74
  778. package/dist/node_modules/ajv-formats/src/formats.ts +0 -269
  779. package/dist/node_modules/ajv-formats/src/index.ts +0 -62
  780. package/dist/node_modules/ajv-formats/src/limit.ts +0 -99
  781. package/dist/node_modules/ansi-align/CHANGELOG.md +0 -58
  782. package/dist/node_modules/ansi-align/LICENSE +0 -13
  783. package/dist/node_modules/ansi-align/README.md +0 -80
  784. package/dist/node_modules/ansi-align/index.js +0 -61
  785. package/dist/node_modules/ansi-align/node_modules/ansi-regex/index.d.ts +0 -37
  786. package/dist/node_modules/ansi-align/node_modules/ansi-regex/index.js +0 -10
  787. package/dist/node_modules/ansi-align/node_modules/ansi-regex/license +0 -9
  788. package/dist/node_modules/ansi-align/node_modules/ansi-regex/package.json +0 -55
  789. package/dist/node_modules/ansi-align/node_modules/ansi-regex/readme.md +0 -78
  790. package/dist/node_modules/ansi-align/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  791. package/dist/node_modules/ansi-align/node_modules/emoji-regex/README.md +0 -73
  792. package/dist/node_modules/ansi-align/node_modules/emoji-regex/es2015/index.js +0 -6
  793. package/dist/node_modules/ansi-align/node_modules/emoji-regex/es2015/text.js +0 -6
  794. package/dist/node_modules/ansi-align/node_modules/emoji-regex/index.d.ts +0 -23
  795. package/dist/node_modules/ansi-align/node_modules/emoji-regex/index.js +0 -6
  796. package/dist/node_modules/ansi-align/node_modules/emoji-regex/package.json +0 -50
  797. package/dist/node_modules/ansi-align/node_modules/emoji-regex/text.js +0 -6
  798. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  799. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  800. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/license +0 -9
  801. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  802. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/readme.md +0 -39
  803. package/dist/node_modules/ansi-align/node_modules/string-width/index.d.ts +0 -29
  804. package/dist/node_modules/ansi-align/node_modules/string-width/index.js +0 -47
  805. package/dist/node_modules/ansi-align/node_modules/string-width/license +0 -9
  806. package/dist/node_modules/ansi-align/node_modules/string-width/package.json +0 -56
  807. package/dist/node_modules/ansi-align/node_modules/string-width/readme.md +0 -50
  808. package/dist/node_modules/ansi-align/node_modules/strip-ansi/index.d.ts +0 -17
  809. package/dist/node_modules/ansi-align/node_modules/strip-ansi/index.js +0 -4
  810. package/dist/node_modules/ansi-align/node_modules/strip-ansi/license +0 -9
  811. package/dist/node_modules/ansi-align/node_modules/strip-ansi/package.json +0 -54
  812. package/dist/node_modules/ansi-align/node_modules/strip-ansi/readme.md +0 -46
  813. package/dist/node_modules/ansi-align/package.json +0 -43
  814. package/dist/node_modules/ansi-regex/index.d.ts +0 -33
  815. package/dist/node_modules/ansi-regex/index.js +0 -14
  816. package/dist/node_modules/ansi-regex/license +0 -9
  817. package/dist/node_modules/ansi-regex/package.json +0 -61
  818. package/dist/node_modules/ansi-regex/readme.md +0 -66
  819. package/dist/node_modules/boxen/index.d.ts +0 -267
  820. package/dist/node_modules/boxen/index.js +0 -376
  821. package/dist/node_modules/boxen/license +0 -9
  822. package/dist/node_modules/boxen/package.json +0 -69
  823. package/dist/node_modules/boxen/readme.md +0 -300
  824. package/dist/node_modules/camelcase/index.d.ts +0 -102
  825. package/dist/node_modules/camelcase/index.js +0 -110
  826. package/dist/node_modules/camelcase/license +0 -9
  827. package/dist/node_modules/camelcase/package.json +0 -47
  828. package/dist/node_modules/camelcase/readme.md +0 -135
  829. package/dist/node_modules/chalk/license +0 -9
  830. package/dist/node_modules/chalk/package.json +0 -83
  831. package/dist/node_modules/chalk/readme.md +0 -297
  832. package/dist/node_modules/chalk/source/index.d.ts +0 -325
  833. package/dist/node_modules/chalk/source/index.js +0 -225
  834. package/dist/node_modules/chalk/source/utilities.js +0 -33
  835. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  836. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  837. package/dist/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  838. package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  839. package/dist/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  840. package/dist/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  841. package/dist/node_modules/chardet/LICENSE +0 -19
  842. package/dist/node_modules/chardet/README.md +0 -135
  843. package/dist/node_modules/chardet/lib/encoding/ascii.d.ts +0 -6
  844. package/dist/node_modules/chardet/lib/encoding/ascii.js +0 -23
  845. package/dist/node_modules/chardet/lib/encoding/ascii.js.map +0 -1
  846. package/dist/node_modules/chardet/lib/encoding/index.d.ts +0 -14
  847. package/dist/node_modules/chardet/lib/encoding/index.js +0 -3
  848. package/dist/node_modules/chardet/lib/encoding/index.js.map +0 -1
  849. package/dist/node_modules/chardet/lib/encoding/iso2022.d.ts +0 -23
  850. package/dist/node_modules/chardet/lib/encoding/iso2022.js +0 -114
  851. package/dist/node_modules/chardet/lib/encoding/iso2022.js.map +0 -1
  852. package/dist/node_modules/chardet/lib/encoding/mbcs.d.ts +0 -50
  853. package/dist/node_modules/chardet/lib/encoding/mbcs.js +0 -347
  854. package/dist/node_modules/chardet/lib/encoding/mbcs.js.map +0 -1
  855. package/dist/node_modules/chardet/lib/encoding/sbcs.d.ts +0 -94
  856. package/dist/node_modules/chardet/lib/encoding/sbcs.js +0 -935
  857. package/dist/node_modules/chardet/lib/encoding/sbcs.js.map +0 -1
  858. package/dist/node_modules/chardet/lib/encoding/unicode.d.ts +0 -27
  859. package/dist/node_modules/chardet/lib/encoding/unicode.js +0 -109
  860. package/dist/node_modules/chardet/lib/encoding/unicode.js.map +0 -1
  861. package/dist/node_modules/chardet/lib/encoding/utf8.d.ts +0 -6
  862. package/dist/node_modules/chardet/lib/encoding/utf8.js +0 -72
  863. package/dist/node_modules/chardet/lib/encoding/utf8.js.map +0 -1
  864. package/dist/node_modules/chardet/lib/fs/browser.d.ts +0 -2
  865. package/dist/node_modules/chardet/lib/fs/browser.js +0 -6
  866. package/dist/node_modules/chardet/lib/fs/browser.js.map +0 -1
  867. package/dist/node_modules/chardet/lib/fs/node.d.ts +0 -2
  868. package/dist/node_modules/chardet/lib/fs/node.js +0 -11
  869. package/dist/node_modules/chardet/lib/fs/node.js.map +0 -1
  870. package/dist/node_modules/chardet/lib/index.d.ts +0 -20
  871. package/dist/node_modules/chardet/lib/index.js +0 -177
  872. package/dist/node_modules/chardet/lib/index.js.map +0 -1
  873. package/dist/node_modules/chardet/lib/match.d.ts +0 -9
  874. package/dist/node_modules/chardet/lib/match.js +0 -8
  875. package/dist/node_modules/chardet/lib/match.js.map +0 -1
  876. package/dist/node_modules/chardet/lib/utils.d.ts +0 -1
  877. package/dist/node_modules/chardet/lib/utils.js +0 -10
  878. package/dist/node_modules/chardet/lib/utils.js.map +0 -1
  879. package/dist/node_modules/chardet/package.json +0 -100
  880. package/dist/node_modules/cli-boxes/boxes.json +0 -82
  881. package/dist/node_modules/cli-boxes/index.d.ts +0 -127
  882. package/dist/node_modules/cli-boxes/index.js +0 -6
  883. package/dist/node_modules/cli-boxes/license +0 -9
  884. package/dist/node_modules/cli-boxes/package.json +0 -42
  885. package/dist/node_modules/cli-boxes/readme.md +0 -115
  886. package/dist/node_modules/cli-width/LICENSE +0 -13
  887. package/dist/node_modules/cli-width/README.md +0 -71
  888. package/dist/node_modules/cli-width/index.d.ts +0 -13
  889. package/dist/node_modules/cli-width/index.js +0 -49
  890. package/dist/node_modules/cli-width/package.json +0 -40
  891. package/dist/node_modules/colorette/LICENSE.md +0 -7
  892. package/dist/node_modules/colorette/README.md +0 -134
  893. package/dist/node_modules/colorette/index.cjs +0 -218
  894. package/dist/node_modules/colorette/index.d.ts +0 -93
  895. package/dist/node_modules/colorette/index.js +0 -150
  896. package/dist/node_modules/colorette/package.json +0 -40
  897. package/dist/node_modules/commander/LICENSE +0 -22
  898. package/dist/node_modules/commander/Readme.md +0 -1172
  899. package/dist/node_modules/commander/index.js +0 -21
  900. package/dist/node_modules/commander/lib/argument.js +0 -147
  901. package/dist/node_modules/commander/lib/command.js +0 -2790
  902. package/dist/node_modules/commander/lib/error.js +0 -36
  903. package/dist/node_modules/commander/lib/help.js +0 -731
  904. package/dist/node_modules/commander/lib/option.js +0 -377
  905. package/dist/node_modules/commander/lib/suggestSimilar.js +0 -99
  906. package/dist/node_modules/commander/package-support.json +0 -19
  907. package/dist/node_modules/commander/package.json +0 -64
  908. package/dist/node_modules/commander/typings/index.d.ts +0 -1113
  909. package/dist/node_modules/consola/LICENSE +0 -47
  910. package/dist/node_modules/consola/README.md +0 -352
  911. package/dist/node_modules/consola/basic.d.ts +0 -1
  912. package/dist/node_modules/consola/browser.d.ts +0 -1
  913. package/dist/node_modules/consola/core.d.ts +0 -1
  914. package/dist/node_modules/consola/dist/basic.cjs +0 -32
  915. package/dist/node_modules/consola/dist/basic.d.cts +0 -23
  916. package/dist/node_modules/consola/dist/basic.d.mts +0 -21
  917. package/dist/node_modules/consola/dist/basic.d.ts +0 -23
  918. package/dist/node_modules/consola/dist/basic.mjs +0 -24
  919. package/dist/node_modules/consola/dist/browser.cjs +0 -84
  920. package/dist/node_modules/consola/dist/browser.d.cts +0 -23
  921. package/dist/node_modules/consola/dist/browser.d.mts +0 -21
  922. package/dist/node_modules/consola/dist/browser.d.ts +0 -23
  923. package/dist/node_modules/consola/dist/browser.mjs +0 -76
  924. package/dist/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  925. package/dist/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  926. package/dist/node_modules/consola/dist/core.cjs +0 -517
  927. package/dist/node_modules/consola/dist/core.d.cts +0 -459
  928. package/dist/node_modules/consola/dist/core.d.mts +0 -459
  929. package/dist/node_modules/consola/dist/core.d.ts +0 -459
  930. package/dist/node_modules/consola/dist/core.mjs +0 -512
  931. package/dist/node_modules/consola/dist/index.cjs +0 -663
  932. package/dist/node_modules/consola/dist/index.d.cts +0 -24
  933. package/dist/node_modules/consola/dist/index.d.mts +0 -22
  934. package/dist/node_modules/consola/dist/index.d.ts +0 -24
  935. package/dist/node_modules/consola/dist/index.mjs +0 -651
  936. package/dist/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  937. package/dist/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  938. package/dist/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  939. package/dist/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  940. package/dist/node_modules/consola/dist/utils.cjs +0 -64
  941. package/dist/node_modules/consola/dist/utils.d.cts +0 -286
  942. package/dist/node_modules/consola/dist/utils.d.mts +0 -286
  943. package/dist/node_modules/consola/dist/utils.d.ts +0 -286
  944. package/dist/node_modules/consola/dist/utils.mjs +0 -54
  945. package/dist/node_modules/consola/lib/index.cjs +0 -10
  946. package/dist/node_modules/consola/package.json +0 -136
  947. package/dist/node_modules/consola/utils.d.ts +0 -1
  948. package/dist/node_modules/debug/LICENSE +0 -20
  949. package/dist/node_modules/debug/README.md +0 -481
  950. package/dist/node_modules/debug/package.json +0 -64
  951. package/dist/node_modules/debug/src/browser.js +0 -272
  952. package/dist/node_modules/debug/src/common.js +0 -292
  953. package/dist/node_modules/debug/src/index.js +0 -10
  954. package/dist/node_modules/debug/src/node.js +0 -263
  955. package/dist/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  956. package/dist/node_modules/emoji-regex/README.md +0 -107
  957. package/dist/node_modules/emoji-regex/index.d.ts +0 -3
  958. package/dist/node_modules/emoji-regex/index.js +0 -4
  959. package/dist/node_modules/emoji-regex/index.mjs +0 -4
  960. package/dist/node_modules/emoji-regex/package.json +0 -45
  961. package/dist/node_modules/fast-deep-equal/LICENSE +0 -21
  962. package/dist/node_modules/fast-deep-equal/README.md +0 -96
  963. package/dist/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  964. package/dist/node_modules/fast-deep-equal/es6/index.js +0 -72
  965. package/dist/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  966. package/dist/node_modules/fast-deep-equal/es6/react.js +0 -79
  967. package/dist/node_modules/fast-deep-equal/index.d.ts +0 -4
  968. package/dist/node_modules/fast-deep-equal/index.js +0 -46
  969. package/dist/node_modules/fast-deep-equal/package.json +0 -61
  970. package/dist/node_modules/fast-deep-equal/react.d.ts +0 -2
  971. package/dist/node_modules/fast-deep-equal/react.js +0 -53
  972. package/dist/node_modules/fast-string-truncated-width/dist/index.d.ts +0 -4
  973. package/dist/node_modules/fast-string-truncated-width/dist/index.js +0 -111
  974. package/dist/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -19
  975. package/dist/node_modules/fast-string-truncated-width/dist/types.js +0 -2
  976. package/dist/node_modules/fast-string-truncated-width/dist/utils.d.ts +0 -4
  977. package/dist/node_modules/fast-string-truncated-width/dist/utils.js +0 -20
  978. package/dist/node_modules/fast-string-truncated-width/license +0 -21
  979. package/dist/node_modules/fast-string-truncated-width/package.json +0 -35
  980. package/dist/node_modules/fast-string-truncated-width/readme.md +0 -59
  981. package/dist/node_modules/fast-string-width/dist/index.d.ts +0 -4
  982. package/dist/node_modules/fast-string-width/dist/index.js +0 -14
  983. package/dist/node_modules/fast-string-width/license +0 -21
  984. package/dist/node_modules/fast-string-width/package.json +0 -34
  985. package/dist/node_modules/fast-string-width/readme.md +0 -42
  986. package/dist/node_modules/fast-uri/.gitattributes +0 -2
  987. package/dist/node_modules/fast-uri/.github/dependabot.yml +0 -13
  988. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +0 -106
  989. package/dist/node_modules/fast-uri/.github/workflows/lock-threads.yml +0 -19
  990. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
  991. package/dist/node_modules/fast-uri/LICENSE +0 -30
  992. package/dist/node_modules/fast-uri/README.md +0 -152
  993. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
  994. package/dist/node_modules/fast-uri/benchmark/equal.mjs +0 -51
  995. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
  996. package/dist/node_modules/fast-uri/benchmark/package.json +0 -17
  997. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
  998. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
  999. package/dist/node_modules/fast-uri/eslint.config.js +0 -6
  1000. package/dist/node_modules/fast-uri/index.js +0 -406
  1001. package/dist/node_modules/fast-uri/lib/schemes.js +0 -267
  1002. package/dist/node_modules/fast-uri/lib/utils.js +0 -443
  1003. package/dist/node_modules/fast-uri/package.json +0 -68
  1004. package/dist/node_modules/fast-uri/test/ajv.test.js +0 -43
  1005. package/dist/node_modules/fast-uri/test/equal.test.js +0 -117
  1006. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
  1007. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
  1008. package/dist/node_modules/fast-uri/test/parse.test.js +0 -323
  1009. package/dist/node_modules/fast-uri/test/resolve.test.js +0 -87
  1010. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
  1011. package/dist/node_modules/fast-uri/test/security-normalization.test.js +0 -39
  1012. package/dist/node_modules/fast-uri/test/security.test.js +0 -133
  1013. package/dist/node_modules/fast-uri/test/serialize.test.js +0 -151
  1014. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
  1015. package/dist/node_modules/fast-uri/test/uri-js.test.js +0 -912
  1016. package/dist/node_modules/fast-uri/test/util.test.js +0 -38
  1017. package/dist/node_modules/fast-uri/tsconfig.json +0 -9
  1018. package/dist/node_modules/fast-uri/types/index.d.ts +0 -60
  1019. package/dist/node_modules/fast-uri/types/index.test-d.ts +0 -17
  1020. package/dist/node_modules/fast-wrap-ansi/LICENSE +0 -23
  1021. package/dist/node_modules/fast-wrap-ansi/README.md +0 -26
  1022. package/dist/node_modules/fast-wrap-ansi/lib/main.d.ts +0 -6
  1023. package/dist/node_modules/fast-wrap-ansi/lib/main.js +0 -218
  1024. package/dist/node_modules/fast-wrap-ansi/package.json +0 -51
  1025. package/dist/node_modules/fs-extra/LICENSE +0 -15
  1026. package/dist/node_modules/fs-extra/README.md +0 -294
  1027. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
  1028. package/dist/node_modules/fs-extra/lib/copy/copy.js +0 -180
  1029. package/dist/node_modules/fs-extra/lib/copy/index.js +0 -7
  1030. package/dist/node_modules/fs-extra/lib/empty/index.js +0 -39
  1031. package/dist/node_modules/fs-extra/lib/ensure/file.js +0 -66
  1032. package/dist/node_modules/fs-extra/lib/ensure/index.js +0 -23
  1033. package/dist/node_modules/fs-extra/lib/ensure/link.js +0 -64
  1034. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  1035. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  1036. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +0 -92
  1037. package/dist/node_modules/fs-extra/lib/esm.mjs +0 -68
  1038. package/dist/node_modules/fs-extra/lib/fs/index.js +0 -146
  1039. package/dist/node_modules/fs-extra/lib/index.js +0 -16
  1040. package/dist/node_modules/fs-extra/lib/json/index.js +0 -16
  1041. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  1042. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  1043. package/dist/node_modules/fs-extra/lib/json/output-json.js +0 -12
  1044. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  1045. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  1046. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  1047. package/dist/node_modules/fs-extra/lib/move/index.js +0 -7
  1048. package/dist/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  1049. package/dist/node_modules/fs-extra/lib/move/move.js +0 -59
  1050. package/dist/node_modules/fs-extra/lib/output-file/index.js +0 -31
  1051. package/dist/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  1052. package/dist/node_modules/fs-extra/lib/remove/index.js +0 -17
  1053. package/dist/node_modules/fs-extra/lib/util/async.js +0 -29
  1054. package/dist/node_modules/fs-extra/lib/util/stat.js +0 -159
  1055. package/dist/node_modules/fs-extra/lib/util/utimes.js +0 -53
  1056. package/dist/node_modules/fs-extra/package.json +0 -71
  1057. package/dist/node_modules/get-east-asian-width/index.d.ts +0 -60
  1058. package/dist/node_modules/get-east-asian-width/index.js +0 -30
  1059. package/dist/node_modules/get-east-asian-width/license +0 -9
  1060. package/dist/node_modules/get-east-asian-width/lookup-data.js +0 -21
  1061. package/dist/node_modules/get-east-asian-width/lookup.js +0 -138
  1062. package/dist/node_modules/get-east-asian-width/package.json +0 -71
  1063. package/dist/node_modules/get-east-asian-width/readme.md +0 -65
  1064. package/dist/node_modules/get-east-asian-width/utilities.js +0 -24
  1065. package/dist/node_modules/graceful-fs/LICENSE +0 -15
  1066. package/dist/node_modules/graceful-fs/README.md +0 -143
  1067. package/dist/node_modules/graceful-fs/clone.js +0 -23
  1068. package/dist/node_modules/graceful-fs/graceful-fs.js +0 -448
  1069. package/dist/node_modules/graceful-fs/legacy-streams.js +0 -118
  1070. package/dist/node_modules/graceful-fs/package.json +0 -53
  1071. package/dist/node_modules/graceful-fs/polyfills.js +0 -355
  1072. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  1073. package/dist/node_modules/iconv-lite/README.md +0 -138
  1074. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  1075. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  1076. package/dist/node_modules/iconv-lite/encodings/index.js +0 -23
  1077. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -218
  1078. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  1079. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1080. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  1081. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1082. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1083. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1084. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1085. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1086. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1087. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1088. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1089. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -187
  1090. package/dist/node_modules/iconv-lite/encodings/utf32.js +0 -307
  1091. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -283
  1092. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  1093. package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  1094. package/dist/node_modules/iconv-lite/lib/index.d.ts +0 -129
  1095. package/dist/node_modules/iconv-lite/lib/index.js +0 -182
  1096. package/dist/node_modules/iconv-lite/lib/streams.js +0 -105
  1097. package/dist/node_modules/iconv-lite/package.json +0 -70
  1098. package/dist/node_modules/iconv-lite/types/encodings.d.ts +0 -423
  1099. package/dist/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  1100. package/dist/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  1101. package/dist/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  1102. package/dist/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  1103. package/dist/node_modules/json-schema-traverse/LICENSE +0 -21
  1104. package/dist/node_modules/json-schema-traverse/README.md +0 -95
  1105. package/dist/node_modules/json-schema-traverse/index.d.ts +0 -40
  1106. package/dist/node_modules/json-schema-traverse/index.js +0 -93
  1107. package/dist/node_modules/json-schema-traverse/package.json +0 -43
  1108. package/dist/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  1109. package/dist/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  1110. package/dist/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  1111. package/dist/node_modules/jsonfile/LICENSE +0 -15
  1112. package/dist/node_modules/jsonfile/README.md +0 -230
  1113. package/dist/node_modules/jsonfile/index.js +0 -88
  1114. package/dist/node_modules/jsonfile/package.json +0 -40
  1115. package/dist/node_modules/jsonfile/utils.js +0 -18
  1116. package/dist/node_modules/ms/index.js +0 -162
  1117. package/dist/node_modules/ms/license.md +0 -21
  1118. package/dist/node_modules/ms/package.json +0 -38
  1119. package/dist/node_modules/ms/readme.md +0 -59
  1120. package/dist/node_modules/mute-stream/LICENSE +0 -15
  1121. package/dist/node_modules/mute-stream/README.md +0 -68
  1122. package/dist/node_modules/mute-stream/lib/index.js +0 -142
  1123. package/dist/node_modules/mute-stream/package.json +0 -54
  1124. package/dist/node_modules/progress/CHANGELOG.md +0 -115
  1125. package/dist/node_modules/progress/LICENSE +0 -22
  1126. package/dist/node_modules/progress/Makefile +0 -8
  1127. package/dist/node_modules/progress/Readme.md +0 -146
  1128. package/dist/node_modules/progress/index.js +0 -1
  1129. package/dist/node_modules/progress/lib/node-progress.js +0 -236
  1130. package/dist/node_modules/progress/package.json +0 -26
  1131. package/dist/node_modules/require-from-string/index.js +0 -34
  1132. package/dist/node_modules/require-from-string/license +0 -21
  1133. package/dist/node_modules/require-from-string/package.json +0 -28
  1134. package/dist/node_modules/require-from-string/readme.md +0 -56
  1135. package/dist/node_modules/safer-buffer/LICENSE +0 -21
  1136. package/dist/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1137. package/dist/node_modules/safer-buffer/Readme.md +0 -156
  1138. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  1139. package/dist/node_modules/safer-buffer/package.json +0 -34
  1140. package/dist/node_modules/safer-buffer/safer.js +0 -77
  1141. package/dist/node_modules/safer-buffer/tests.js +0 -406
  1142. package/dist/node_modules/signal-exit/LICENSE.txt +0 -16
  1143. package/dist/node_modules/signal-exit/README.md +0 -74
  1144. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  1145. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  1146. package/dist/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  1147. package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  1148. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  1149. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  1150. package/dist/node_modules/signal-exit/dist/cjs/index.js +0 -279
  1151. package/dist/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  1152. package/dist/node_modules/signal-exit/dist/cjs/package.json +0 -3
  1153. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  1154. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  1155. package/dist/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  1156. package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  1157. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  1158. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  1159. package/dist/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  1160. package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  1161. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  1162. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  1163. package/dist/node_modules/signal-exit/dist/mjs/index.js +0 -275
  1164. package/dist/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  1165. package/dist/node_modules/signal-exit/dist/mjs/package.json +0 -3
  1166. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  1167. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  1168. package/dist/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  1169. package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  1170. package/dist/node_modules/signal-exit/package.json +0 -106
  1171. package/dist/node_modules/simple-git/dist/cjs/index.js +0 -4898
  1172. package/dist/node_modules/simple-git/dist/cjs/index.js.map +0 -7
  1173. package/dist/node_modules/simple-git/dist/esm/index.js +0 -4745
  1174. package/dist/node_modules/simple-git/dist/esm/index.js.map +0 -7
  1175. package/dist/node_modules/simple-git/dist/esm/package.json +0 -3
  1176. package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +0 -13
  1177. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +0 -9
  1178. package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +0 -15
  1179. package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +0 -30
  1180. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +0 -7
  1181. package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +0 -32
  1182. package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +0 -12
  1183. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +0 -15
  1184. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +0 -21
  1185. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +0 -5
  1186. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +0 -2
  1187. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +0 -2
  1188. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +0 -3
  1189. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +0 -2
  1190. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +0 -6
  1191. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +0 -11
  1192. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +0 -2
  1193. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +0 -6
  1194. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +0 -4
  1195. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +0 -5
  1196. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +0 -3
  1197. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +0 -3
  1198. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +0 -3
  1199. package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +0 -2
  1200. package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +0 -3
  1201. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +0 -3
  1202. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +0 -7
  1203. package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +0 -11
  1204. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +0 -11
  1205. package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +0 -3
  1206. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +0 -48
  1207. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -3
  1208. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +0 -2
  1209. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +0 -3
  1210. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +0 -12
  1211. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +0 -14
  1212. package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
  1213. package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +0 -9
  1214. package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +0 -13
  1215. package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +0 -10
  1216. package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +0 -9
  1217. package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +0 -11
  1218. package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +0 -9
  1219. package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +0 -16
  1220. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +0 -25
  1221. package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +0 -19
  1222. package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +0 -7
  1223. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +0 -25
  1224. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +0 -14
  1225. package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
  1226. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +0 -11
  1227. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +0 -23
  1228. package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +0 -20
  1229. package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +0 -2
  1230. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +0 -3
  1231. package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +0 -7
  1232. package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +0 -2
  1233. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +0 -2
  1234. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +0 -9
  1235. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +0 -2
  1236. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +0 -25
  1237. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +0 -9
  1238. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +0 -4
  1239. package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +0 -8
  1240. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +0 -12
  1241. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +0 -12
  1242. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +0 -5
  1243. package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +0 -4
  1244. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +0 -2
  1245. package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +0 -12
  1246. package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +0 -5
  1247. package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +0 -3
  1248. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +0 -32
  1249. package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +0 -4
  1250. package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +0 -3
  1251. package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +0 -3
  1252. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +0 -9
  1253. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +0 -8
  1254. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +0 -11
  1255. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +0 -2
  1256. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +0 -4
  1257. package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +0 -3
  1258. package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +0 -5
  1259. package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +0 -18
  1260. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +0 -14
  1261. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +0 -9
  1262. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +0 -21
  1263. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +0 -136
  1264. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +0 -19
  1265. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +0 -14
  1266. package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +0 -10
  1267. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -7
  1268. package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +0 -8
  1269. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +0 -15
  1270. package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +0 -2
  1271. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +0 -13
  1272. package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +0 -5
  1273. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +0 -47
  1274. package/dist/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
  1275. package/dist/node_modules/simple-git/dist/typings/index.d.ts +0 -14
  1276. package/dist/node_modules/simple-git/dist/typings/response.d.ts +0 -556
  1277. package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
  1278. package/dist/node_modules/simple-git/dist/typings/types.d.ts +0 -22
  1279. package/dist/node_modules/simple-git/package.json +0 -51
  1280. package/dist/node_modules/simple-git/promise.js +0 -17
  1281. package/dist/node_modules/simple-git/readme.md +0 -851
  1282. package/dist/node_modules/string-width/index.d.ts +0 -39
  1283. package/dist/node_modules/string-width/index.js +0 -82
  1284. package/dist/node_modules/string-width/license +0 -9
  1285. package/dist/node_modules/string-width/package.json +0 -64
  1286. package/dist/node_modules/string-width/readme.md +0 -66
  1287. package/dist/node_modules/strip-ansi/index.d.ts +0 -15
  1288. package/dist/node_modules/strip-ansi/index.js +0 -19
  1289. package/dist/node_modules/strip-ansi/license +0 -9
  1290. package/dist/node_modules/strip-ansi/package.json +0 -59
  1291. package/dist/node_modules/strip-ansi/readme.md +0 -37
  1292. package/dist/node_modules/type-fest/index.d.ts +0 -178
  1293. package/dist/node_modules/type-fest/license-cc0 +0 -121
  1294. package/dist/node_modules/type-fest/license-mit +0 -9
  1295. package/dist/node_modules/type-fest/package.json +0 -91
  1296. package/dist/node_modules/type-fest/readme.md +0 -1060
  1297. package/dist/node_modules/type-fest/source/all-union-fields.d.ts +0 -88
  1298. package/dist/node_modules/type-fest/source/and.d.ts +0 -25
  1299. package/dist/node_modules/type-fest/source/array-indices.d.ts +0 -23
  1300. package/dist/node_modules/type-fest/source/array-slice.d.ts +0 -109
  1301. package/dist/node_modules/type-fest/source/array-splice.d.ts +0 -99
  1302. package/dist/node_modules/type-fest/source/array-tail.d.ts +0 -76
  1303. package/dist/node_modules/type-fest/source/array-values.d.ts +0 -22
  1304. package/dist/node_modules/type-fest/source/arrayable.d.ts +0 -29
  1305. package/dist/node_modules/type-fest/source/async-return-type.d.ts +0 -23
  1306. package/dist/node_modules/type-fest/source/asyncify.d.ts +0 -32
  1307. package/dist/node_modules/type-fest/source/basic.d.ts +0 -68
  1308. package/dist/node_modules/type-fest/source/camel-case.d.ts +0 -89
  1309. package/dist/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +0 -97
  1310. package/dist/node_modules/type-fest/source/camel-cased-properties.d.ts +0 -43
  1311. package/dist/node_modules/type-fest/source/conditional-except.d.ts +0 -45
  1312. package/dist/node_modules/type-fest/source/conditional-keys.d.ts +0 -47
  1313. package/dist/node_modules/type-fest/source/conditional-pick-deep.d.ts +0 -118
  1314. package/dist/node_modules/type-fest/source/conditional-pick.d.ts +0 -44
  1315. package/dist/node_modules/type-fest/source/conditional-simplify.d.ts +0 -32
  1316. package/dist/node_modules/type-fest/source/delimiter-case.d.ts +0 -78
  1317. package/dist/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +0 -106
  1318. package/dist/node_modules/type-fest/source/delimiter-cased-properties.d.ts +0 -46
  1319. package/dist/node_modules/type-fest/source/distributed-omit.d.ts +0 -89
  1320. package/dist/node_modules/type-fest/source/distributed-pick.d.ts +0 -85
  1321. package/dist/node_modules/type-fest/source/empty-object.d.ts +0 -46
  1322. package/dist/node_modules/type-fest/source/enforce-optional.d.ts +0 -47
  1323. package/dist/node_modules/type-fest/source/entries.d.ts +0 -62
  1324. package/dist/node_modules/type-fest/source/entry.d.ts +0 -65
  1325. package/dist/node_modules/type-fest/source/exact.d.ts +0 -68
  1326. package/dist/node_modules/type-fest/source/except.d.ts +0 -108
  1327. package/dist/node_modules/type-fest/source/find-global-type.d.ts +0 -64
  1328. package/dist/node_modules/type-fest/source/fixed-length-array.d.ts +0 -43
  1329. package/dist/node_modules/type-fest/source/get.d.ts +0 -219
  1330. package/dist/node_modules/type-fest/source/global-this.d.ts +0 -21
  1331. package/dist/node_modules/type-fest/source/greater-than-or-equal.d.ts +0 -22
  1332. package/dist/node_modules/type-fest/source/greater-than.d.ts +0 -56
  1333. package/dist/node_modules/type-fest/source/has-optional-keys.d.ts +0 -21
  1334. package/dist/node_modules/type-fest/source/has-readonly-keys.d.ts +0 -21
  1335. package/dist/node_modules/type-fest/source/has-required-keys.d.ts +0 -59
  1336. package/dist/node_modules/type-fest/source/has-writable-keys.d.ts +0 -21
  1337. package/dist/node_modules/type-fest/source/if-any.d.ts +0 -24
  1338. package/dist/node_modules/type-fest/source/if-empty-object.d.ts +0 -26
  1339. package/dist/node_modules/type-fest/source/if-never.d.ts +0 -24
  1340. package/dist/node_modules/type-fest/source/if-null.d.ts +0 -24
  1341. package/dist/node_modules/type-fest/source/if-unknown.d.ts +0 -24
  1342. package/dist/node_modules/type-fest/source/includes.d.ts +0 -22
  1343. package/dist/node_modules/type-fest/source/int-closed-range.d.ts +0 -35
  1344. package/dist/node_modules/type-fest/source/int-range.d.ts +0 -55
  1345. package/dist/node_modules/type-fest/source/internal/array.d.ts +0 -126
  1346. package/dist/node_modules/type-fest/source/internal/characters.d.ts +0 -67
  1347. package/dist/node_modules/type-fest/source/internal/index.d.ts +0 -8
  1348. package/dist/node_modules/type-fest/source/internal/keys.d.ts +0 -97
  1349. package/dist/node_modules/type-fest/source/internal/numeric.d.ts +0 -118
  1350. package/dist/node_modules/type-fest/source/internal/object.d.ts +0 -236
  1351. package/dist/node_modules/type-fest/source/internal/string.d.ts +0 -210
  1352. package/dist/node_modules/type-fest/source/internal/tuple.d.ts +0 -90
  1353. package/dist/node_modules/type-fest/source/internal/type.d.ts +0 -139
  1354. package/dist/node_modules/type-fest/source/invariant-of.d.ts +0 -76
  1355. package/dist/node_modules/type-fest/source/is-any.d.ts +0 -33
  1356. package/dist/node_modules/type-fest/source/is-equal.d.ts +0 -31
  1357. package/dist/node_modules/type-fest/source/is-float.d.ts +0 -41
  1358. package/dist/node_modules/type-fest/source/is-integer.d.ts +0 -58
  1359. package/dist/node_modules/type-fest/source/is-literal.d.ts +0 -296
  1360. package/dist/node_modules/type-fest/source/is-never.d.ts +0 -42
  1361. package/dist/node_modules/type-fest/source/is-null.d.ts +0 -20
  1362. package/dist/node_modules/type-fest/source/is-tuple.d.ts +0 -89
  1363. package/dist/node_modules/type-fest/source/is-unknown.d.ts +0 -52
  1364. package/dist/node_modules/type-fest/source/iterable-element.d.ts +0 -64
  1365. package/dist/node_modules/type-fest/source/join.d.ts +0 -68
  1366. package/dist/node_modules/type-fest/source/jsonifiable.d.ts +0 -37
  1367. package/dist/node_modules/type-fest/source/jsonify.d.ts +0 -122
  1368. package/dist/node_modules/type-fest/source/kebab-case.d.ts +0 -44
  1369. package/dist/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +0 -63
  1370. package/dist/node_modules/type-fest/source/kebab-cased-properties.d.ts +0 -40
  1371. package/dist/node_modules/type-fest/source/keys-of-union.d.ts +0 -42
  1372. package/dist/node_modules/type-fest/source/last-array-element.d.ts +0 -38
  1373. package/dist/node_modules/type-fest/source/less-than-or-equal.d.ts +0 -22
  1374. package/dist/node_modules/type-fest/source/less-than.d.ts +0 -26
  1375. package/dist/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +0 -36
  1376. package/dist/node_modules/type-fest/source/literal-to-primitive.d.ts +0 -36
  1377. package/dist/node_modules/type-fest/source/literal-union.d.ts +0 -37
  1378. package/dist/node_modules/type-fest/source/merge-deep.d.ts +0 -486
  1379. package/dist/node_modules/type-fest/source/merge-exclusive.d.ts +0 -41
  1380. package/dist/node_modules/type-fest/source/merge.d.ts +0 -48
  1381. package/dist/node_modules/type-fest/source/multidimensional-array.d.ts +0 -44
  1382. package/dist/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +0 -48
  1383. package/dist/node_modules/type-fest/source/non-empty-object.d.ts +0 -35
  1384. package/dist/node_modules/type-fest/source/non-empty-string.d.ts +0 -28
  1385. package/dist/node_modules/type-fest/source/non-empty-tuple.d.ts +0 -21
  1386. package/dist/node_modules/type-fest/source/numeric.d.ts +0 -222
  1387. package/dist/node_modules/type-fest/source/observable-like.d.ts +0 -63
  1388. package/dist/node_modules/type-fest/source/omit-deep.d.ts +0 -167
  1389. package/dist/node_modules/type-fest/source/omit-index-signature.d.ts +0 -95
  1390. package/dist/node_modules/type-fest/source/opaque.d.ts +0 -1
  1391. package/dist/node_modules/type-fest/source/optional-keys-of.d.ts +0 -39
  1392. package/dist/node_modules/type-fest/source/or.d.ts +0 -25
  1393. package/dist/node_modules/type-fest/source/override-properties.d.ts +0 -36
  1394. package/dist/node_modules/type-fest/source/package-json.d.ts +0 -676
  1395. package/dist/node_modules/type-fest/source/partial-deep.d.ts +0 -151
  1396. package/dist/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +0 -78
  1397. package/dist/node_modules/type-fest/source/pascal-case.d.ts +0 -42
  1398. package/dist/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +0 -62
  1399. package/dist/node_modules/type-fest/source/pascal-cased-properties.d.ts +0 -36
  1400. package/dist/node_modules/type-fest/source/paths.d.ts +0 -262
  1401. package/dist/node_modules/type-fest/source/pick-deep.d.ts +0 -149
  1402. package/dist/node_modules/type-fest/source/pick-index-signature.d.ts +0 -50
  1403. package/dist/node_modules/type-fest/source/primitive.d.ts +0 -13
  1404. package/dist/node_modules/type-fest/source/promisable.d.ts +0 -25
  1405. package/dist/node_modules/type-fest/source/readonly-deep.d.ts +0 -81
  1406. package/dist/node_modules/type-fest/source/readonly-keys-of.d.ts +0 -30
  1407. package/dist/node_modules/type-fest/source/readonly-tuple.d.ts +0 -41
  1408. package/dist/node_modules/type-fest/source/replace.d.ts +0 -85
  1409. package/dist/node_modules/type-fest/source/require-all-or-none.d.ts +0 -51
  1410. package/dist/node_modules/type-fest/source/require-at-least-one.d.ts +0 -47
  1411. package/dist/node_modules/type-fest/source/require-exactly-one.d.ts +0 -45
  1412. package/dist/node_modules/type-fest/source/require-one-or-none.d.ts +0 -46
  1413. package/dist/node_modules/type-fest/source/required-deep.d.ts +0 -78
  1414. package/dist/node_modules/type-fest/source/required-keys-of.d.ts +0 -30
  1415. package/dist/node_modules/type-fest/source/schema.d.ts +0 -114
  1416. package/dist/node_modules/type-fest/source/screaming-snake-case.d.ts +0 -28
  1417. package/dist/node_modules/type-fest/source/set-field-type.d.ts +0 -65
  1418. package/dist/node_modules/type-fest/source/set-non-nullable-deep.d.ts +0 -83
  1419. package/dist/node_modules/type-fest/source/set-non-nullable.d.ts +0 -39
  1420. package/dist/node_modules/type-fest/source/set-optional.d.ts +0 -38
  1421. package/dist/node_modules/type-fest/source/set-parameter-type.d.ts +0 -117
  1422. package/dist/node_modules/type-fest/source/set-readonly.d.ts +0 -39
  1423. package/dist/node_modules/type-fest/source/set-required-deep.d.ts +0 -68
  1424. package/dist/node_modules/type-fest/source/set-required.d.ts +0 -70
  1425. package/dist/node_modules/type-fest/source/set-return-type.d.ts +0 -29
  1426. package/dist/node_modules/type-fest/source/shared-union-fields-deep.d.ts +0 -178
  1427. package/dist/node_modules/type-fest/source/shared-union-fields.d.ts +0 -76
  1428. package/dist/node_modules/type-fest/source/simplify-deep.d.ts +0 -115
  1429. package/dist/node_modules/type-fest/source/simplify.d.ts +0 -58
  1430. package/dist/node_modules/type-fest/source/single-key-object.d.ts +0 -29
  1431. package/dist/node_modules/type-fest/source/snake-case.d.ts +0 -45
  1432. package/dist/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +0 -63
  1433. package/dist/node_modules/type-fest/source/snake-cased-properties.d.ts +0 -40
  1434. package/dist/node_modules/type-fest/source/split.d.ts +0 -88
  1435. package/dist/node_modules/type-fest/source/spread.d.ts +0 -84
  1436. package/dist/node_modules/type-fest/source/string-key-of.d.ts +0 -25
  1437. package/dist/node_modules/type-fest/source/string-repeat.d.ts +0 -47
  1438. package/dist/node_modules/type-fest/source/string-slice.d.ts +0 -37
  1439. package/dist/node_modules/type-fest/source/stringified.d.ts +0 -23
  1440. package/dist/node_modules/type-fest/source/structured-cloneable.d.ts +0 -92
  1441. package/dist/node_modules/type-fest/source/subtract.d.ts +0 -83
  1442. package/dist/node_modules/type-fest/source/sum.d.ts +0 -78
  1443. package/dist/node_modules/type-fest/source/tagged-union.d.ts +0 -51
  1444. package/dist/node_modules/type-fest/source/tagged.d.ts +0 -256
  1445. package/dist/node_modules/type-fest/source/trim.d.ts +0 -27
  1446. package/dist/node_modules/type-fest/source/tsconfig-json.d.ts +0 -1294
  1447. package/dist/node_modules/type-fest/source/tuple-to-object.d.ts +0 -42
  1448. package/dist/node_modules/type-fest/source/tuple-to-union.d.ts +0 -51
  1449. package/dist/node_modules/type-fest/source/typed-array.d.ts +0 -17
  1450. package/dist/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +0 -80
  1451. package/dist/node_modules/type-fest/source/union-to-intersection.d.ts +0 -61
  1452. package/dist/node_modules/type-fest/source/union-to-tuple.d.ts +0 -56
  1453. package/dist/node_modules/type-fest/source/unknown-array.d.ts +0 -25
  1454. package/dist/node_modules/type-fest/source/unknown-map.d.ts +0 -24
  1455. package/dist/node_modules/type-fest/source/unknown-record.d.ts +0 -31
  1456. package/dist/node_modules/type-fest/source/unknown-set.d.ts +0 -24
  1457. package/dist/node_modules/type-fest/source/value-of.d.ts +0 -42
  1458. package/dist/node_modules/type-fest/source/words.d.ts +0 -118
  1459. package/dist/node_modules/type-fest/source/writable-deep.d.ts +0 -83
  1460. package/dist/node_modules/type-fest/source/writable-keys-of.d.ts +0 -33
  1461. package/dist/node_modules/type-fest/source/writable.d.ts +0 -68
  1462. package/dist/node_modules/undici-types/LICENSE +0 -21
  1463. package/dist/node_modules/undici-types/README.md +0 -6
  1464. package/dist/node_modules/undici-types/agent.d.ts +0 -30
  1465. package/dist/node_modules/undici-types/api.d.ts +0 -43
  1466. package/dist/node_modules/undici-types/balanced-pool.d.ts +0 -30
  1467. package/dist/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  1468. package/dist/node_modules/undici-types/cache.d.ts +0 -36
  1469. package/dist/node_modules/undici-types/client-stats.d.ts +0 -15
  1470. package/dist/node_modules/undici-types/client.d.ts +0 -129
  1471. package/dist/node_modules/undici-types/connector.d.ts +0 -36
  1472. package/dist/node_modules/undici-types/content-type.d.ts +0 -21
  1473. package/dist/node_modules/undici-types/cookies.d.ts +0 -30
  1474. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  1475. package/dist/node_modules/undici-types/dispatcher.d.ts +0 -253
  1476. package/dist/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  1477. package/dist/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  1478. package/dist/node_modules/undici-types/errors.d.ts +0 -177
  1479. package/dist/node_modules/undici-types/eventsource.d.ts +0 -66
  1480. package/dist/node_modules/undici-types/fetch.d.ts +0 -231
  1481. package/dist/node_modules/undici-types/formdata.d.ts +0 -108
  1482. package/dist/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1483. package/dist/node_modules/undici-types/global-origin.d.ts +0 -7
  1484. package/dist/node_modules/undici-types/h2c-client.d.ts +0 -73
  1485. package/dist/node_modules/undici-types/handlers.d.ts +0 -14
  1486. package/dist/node_modules/undici-types/header.d.ts +0 -165
  1487. package/dist/node_modules/undici-types/index.d.ts +0 -93
  1488. package/dist/node_modules/undici-types/interceptors.d.ts +0 -80
  1489. package/dist/node_modules/undici-types/mock-agent.d.ts +0 -68
  1490. package/dist/node_modules/undici-types/mock-call-history.d.ts +0 -111
  1491. package/dist/node_modules/undici-types/mock-client.d.ts +0 -27
  1492. package/dist/node_modules/undici-types/mock-errors.d.ts +0 -12
  1493. package/dist/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  1494. package/dist/node_modules/undici-types/mock-pool.d.ts +0 -27
  1495. package/dist/node_modules/undici-types/package.json +0 -55
  1496. package/dist/node_modules/undici-types/patch.d.ts +0 -29
  1497. package/dist/node_modules/undici-types/pool-stats.d.ts +0 -19
  1498. package/dist/node_modules/undici-types/pool.d.ts +0 -39
  1499. package/dist/node_modules/undici-types/proxy-agent.d.ts +0 -29
  1500. package/dist/node_modules/undici-types/readable.d.ts +0 -68
  1501. package/dist/node_modules/undici-types/retry-agent.d.ts +0 -8
  1502. package/dist/node_modules/undici-types/retry-handler.d.ts +0 -125
  1503. package/dist/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  1504. package/dist/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  1505. package/dist/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  1506. package/dist/node_modules/undici-types/util.d.ts +0 -18
  1507. package/dist/node_modules/undici-types/utility.d.ts +0 -7
  1508. package/dist/node_modules/undici-types/webidl.d.ts +0 -346
  1509. package/dist/node_modules/undici-types/websocket.d.ts +0 -188
  1510. package/dist/node_modules/universalify/LICENSE +0 -20
  1511. package/dist/node_modules/universalify/README.md +0 -76
  1512. package/dist/node_modules/universalify/index.js +0 -24
  1513. package/dist/node_modules/universalify/package.json +0 -34
  1514. package/dist/node_modules/widest-line/index.d.ts +0 -12
  1515. package/dist/node_modules/widest-line/index.js +0 -11
  1516. package/dist/node_modules/widest-line/license +0 -9
  1517. package/dist/node_modules/widest-line/package.json +0 -60
  1518. package/dist/node_modules/widest-line/readme.md +0 -26
  1519. package/dist/node_modules/wrap-ansi/index.d.ts +0 -41
  1520. package/dist/node_modules/wrap-ansi/index.js +0 -222
  1521. package/dist/node_modules/wrap-ansi/license +0 -9
  1522. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +0 -236
  1523. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +0 -223
  1524. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/license +0 -9
  1525. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +0 -54
  1526. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +0 -173
  1527. package/dist/node_modules/wrap-ansi/package.json +0 -69
  1528. package/dist/node_modules/wrap-ansi/readme.md +0 -75
  1529. package/dist/package-lock.json +0 -10655
  1530. package/dist/package.json +0 -76
  1531. package/dist/scripts/jsonSchemaToTs.js +0 -16
  1532. package/dist/scripts/versionDevelop.js +0 -116
@@ -1,1060 +0,0 @@
1
- <div align="center">
2
- <br>
3
- <br>
4
- <img src="media/logo.svg" alt="type-fest" height="300">
5
- <br>
6
- <br>
7
- <b>A collection of essential TypeScript types</b>
8
- <br>
9
- <br>
10
- <br>
11
- <br>
12
- <hr>
13
- <div align="center">
14
- <p>
15
- <p>
16
- <sup>
17
- <a href="https://github.com/sponsors/sindresorhus">Sindre Sorhus' open source work is supported by the community</a>
18
- </sup>
19
- </p>
20
- <sup>Special thanks to:</sup>
21
- <br>
22
- <br>
23
- <a href="https://workos.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=type-fest&utm_source=github">
24
- <div>
25
- <img src="https://sindresorhus.com/assets/thanks/workos-logo-white-bg.svg" width="220" alt="WorkOS">
26
- </div>
27
- <b>Your app, enterprise-ready.</b>
28
- <div>
29
- <sub>Start selling to enterprise customers with just a few lines of code.</sub>
30
- <br>
31
- <sup>Add Single Sign-On (and more) in minutes instead of months.</sup>
32
- </div>
33
- </a>
34
- <br>
35
- <br>
36
- <a href="https://logto.io/?ref=sindre">
37
- <div>
38
- <picture>
39
- <source width="200" media="(prefers-color-scheme: dark)" srcset="https://sindresorhus.com/assets/thanks/logto-logo-dark.svg?x">
40
- <source width="200" media="(prefers-color-scheme: light)" srcset="https://sindresorhus.com/assets/thanks/logto-logo-light.svg?x">
41
- <img width="200" src="https://sindresorhus.com/assets/thanks/logto-logo-light.svg?x" alt="Logto logo">
42
- </picture>
43
- </div>
44
- <b>The better identity infrastructure for developers</b>
45
- <div>
46
- <sup>Logto is an open-source Auth0 alternative designed for every app.</sup>
47
- </div>
48
- </a>
49
- <br>
50
- <br>
51
- <a href="https://nitric.io/?utm_campaign=github_repo&utm_medium=referral&utm_content=sindresorhus&utm_source=github">
52
- <div>
53
- <img width="230" src="https://sindresorhus.com/assets/thanks/nitric-logo.svg" alt="nitric logo">
54
- </div>
55
- <b>Effortless backends with infrastructure from code</b>
56
- <div>
57
- <sup>An open-source framework that supports any programming language, cloud provider, or deployment automation tool.</sup>
58
- </div>
59
- </a>
60
- </p>
61
- </div>
62
- <br>
63
- <hr>
64
- </div>
65
- <br>
66
- <br>
67
-
68
- [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://giphy.com/gifs/illustration-rainbow-unicorn-26AHG5KGFxSkUWw1i)
69
- [![npm dependents](https://badgen.net/npm/dependents/type-fest)](https://www.npmjs.com/package/type-fest?activeTab=dependents)
70
- [![npm downloads](https://badgen.net/npm/dt/type-fest)](https://www.npmjs.com/package/type-fest)
71
-
72
- Many of the types here should have been built-in. You can help by suggesting some of them to the [TypeScript project](https://github.com/Microsoft/TypeScript/blob/main/CONTRIBUTING.md).
73
-
74
- Either add this package as a dependency or copy-paste the needed types. No credit required. 👌
75
-
76
- PR welcome for additional commonly needed types and docs improvements. Read the [contributing guidelines](.github/contributing.md) first.
77
-
78
- **Help wanted with reviewing [proposals](https://github.com/sindresorhus/type-fest/issues) and [pull requests](https://github.com/sindresorhus/type-fest/pulls).**
79
-
80
- ## Install
81
-
82
- ```sh
83
- npm install type-fest
84
- ```
85
-
86
- *Requires TypeScript >=5.1 and [`{strict: true}`](https://www.typescriptlang.org/tsconfig#strict) in your tsconfig.*
87
-
88
- ## Usage
89
-
90
- ```ts
91
- import type {Except} from 'type-fest';
92
-
93
- type Foo = {
94
- unicorn: string;
95
- rainbow: boolean;
96
- };
97
-
98
- type FooWithoutRainbow = Except<Foo, 'rainbow'>;
99
- //=> {unicorn: string}
100
- ```
101
-
102
- ## API
103
-
104
- Click the type names for complete docs.
105
-
106
- ### Basic
107
-
108
- - [`Primitive`](source/primitive.d.ts) - Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
109
- - [`Class`](source/basic.d.ts) - Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
110
- - [`Constructor`](source/basic.d.ts) - Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
111
- - [`AbstractClass`](source/basic.d.ts) - Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/classes.html#abstract-classes).
112
- - [`AbstractConstructor`](source/basic.d.ts) - Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures) constructor.
113
- - [`TypedArray`](source/typed-array.d.ts) - Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`.
114
- - [`ObservableLike`](source/observable-like.d.ts) - Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable).
115
-
116
- ### Utilities
117
-
118
- - [`EmptyObject`](source/empty-object.d.ts) - Represents a strictly empty plain object, the `{}` value.
119
- - [`NonEmptyObject`](source/non-empty-object.d.ts) - Represents an object with at least 1 non-optional key.
120
- - [`UnknownRecord`](source/unknown-record.d.ts) - Represents an object with `unknown` value. You probably want this instead of `{}`.
121
- - [`UnknownArray`](source/unknown-array.d.ts) - Represents an array with `unknown` value.
122
- - [`UnknownMap`](source/unknown-map.d.ts) - Represents a map with `unknown` key and value.
123
- - [`UnknownSet`](source/unknown-set.d.ts) - Represents a set with `unknown` value.
124
- - [`Except`](source/except.d.ts) - Create a type from an object type without certain keys. This is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys).
125
- - [`Writable`](source/writable.d.ts) - Create a type that strips `readonly` from the given type. Inverse of `Readonly<T>`.
126
- - [`WritableDeep`](source/writable-deep.d.ts) - Create a deeply mutable version of an `object`/`ReadonlyMap`/`ReadonlySet`/`ReadonlyArray` type. The inverse of `ReadonlyDeep<T>`. Use `Writable<T>` if you only need one level deep.
127
- - [`Merge`](source/merge.d.ts) - Merge two types into a new type. Keys of the second type overrides keys of the first type.
128
- - [`MergeDeep`](source/merge-deep.d.ts) - Merge two objects or two arrays/tuples recursively into a new type.
129
- - [`MergeExclusive`](source/merge-exclusive.d.ts) - Create a type that has mutually exclusive keys.
130
- - [`OverrideProperties`](source/override-properties.d.ts) - Override only existing properties of the given type. Similar to `Merge`, but enforces that the original type has the properties you want to override.
131
- - [`RequireAtLeastOne`](source/require-at-least-one.d.ts) - Create a type that requires at least one of the given keys.
132
- - [`RequireExactlyOne`](source/require-exactly-one.d.ts) - Create a type that requires exactly a single key of the given keys and disallows more.
133
- - [`RequireAllOrNone`](source/require-all-or-none.d.ts) - Create a type that requires all of the given keys or none of the given keys.
134
- - [`RequireOneOrNone`](source/require-one-or-none.d.ts) - Create a type that requires exactly a single key of the given keys and disallows more, or none of the given keys.
135
- - [`SingleKeyObject`](source/single-key-object.d.ts) - Create a type that only accepts an object with a single key.
136
- - [`RequiredDeep`](source/required-deep.d.ts) - Create a deeply required version of another type. Use [`Required<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype) if you only need one level deep.
137
- - [`PickDeep`](source/pick-deep.d.ts) - Pick properties from a deeply-nested object. Use [`Pick<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys) if you only need one level deep.
138
- - [`OmitDeep`](source/omit-deep.d.ts) - Omit properties from a deeply-nested object. Use [`Omit<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys) if you only need one level deep.
139
- - [`OmitIndexSignature`](source/omit-index-signature.d.ts) - Omit any index signatures from the given object type, leaving only explicitly defined properties.
140
- - [`PickIndexSignature`](source/pick-index-signature.d.ts) - Pick only index signatures from the given object type, leaving out all explicitly defined properties.
141
- - [`PartialDeep`](source/partial-deep.d.ts) - Create a deeply optional version of another type. Use [`Partial<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype) if you only need one level deep.
142
- - [`PartialOnUndefinedDeep`](source/partial-on-undefined-deep.d.ts) - Create a deep version of another type where all keys accepting `undefined` type are set to optional.
143
- - [`UndefinedOnPartialDeep`](source/undefined-on-partial-deep.d.ts) - Create a deep version of another type where all optional keys are set to also accept `undefined`.
144
- - [`ReadonlyDeep`](source/readonly-deep.d.ts) - Create a deeply immutable version of an `object`/`Map`/`Set`/`Array` type. Use [`Readonly<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype) if you only need one level deep.
145
- - [`LiteralUnion`](source/literal-union.d.ts) - Create a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. Workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729).
146
- - [`Tagged`](source/tagged.d.ts) - Create a [tagged type](https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d) that can support [multiple tags](https://github.com/sindresorhus/type-fest/issues/665) and [per-tag metadata](https://medium.com/@ethanresnick/advanced-typescript-tagged-types-improved-with-type-level-metadata-5072fc125fcf). (This replaces the previous [`Opaque`](source/tagged.d.ts) type, which is now deprecated.)
147
- - [`UnwrapTagged`](source/tagged.d.ts) - Get the untagged portion of a tagged type created with `Tagged`. (This replaces the previous [`UnwrapOpaque`](source/tagged.d.ts) type, which is now deprecated.)
148
- - [`InvariantOf`](source/invariant-of.d.ts) - Create an [invariant type](https://basarat.gitbook.io/typescript/type-system/type-compatibility#footnote-invariance), which is a type that does not accept supertypes and subtypes.
149
- - [`SetOptional`](source/set-optional.d.ts) - Create a type that makes the given keys optional.
150
- - [`SetReadonly`](source/set-readonly.d.ts) - Create a type that makes the given keys readonly.
151
- - [`SetRequired`](source/set-required.d.ts) - Create a type that makes the given keys required.
152
- - [`SetRequiredDeep`](source/set-required-deep.d.ts) - Like `SetRequired` except it selects the keys deeply.
153
- - [`SetNonNullable`](source/set-non-nullable.d.ts) - Create a type that makes the given keys non-nullable.
154
- - [`SetNonNullableDeep`](source/set-non-nullable-deep.d.ts) - Create a type that makes the specified keys non-nullable (removes `null` and `undefined`), supports deeply nested key paths, and leaves all other keys unchanged.
155
- - [`ValueOf`](source/value-of.d.ts) - Create a union of the given object's values, and optionally specify which keys to get the values from.
156
- - [`ConditionalKeys`](source/conditional-keys.d.ts) - Extract keys from a shape where values extend the given `Condition` type.
157
- - [`ConditionalPick`](source/conditional-pick.d.ts) - Like `Pick` except it selects properties from a shape where the values extend the given `Condition` type.
158
- - [`ConditionalPickDeep`](source/conditional-pick-deep.d.ts) - Like `ConditionalPick` except that it selects the properties deeply.
159
- - [`ConditionalExcept`](source/conditional-except.d.ts) - Like `Omit` except it removes properties from a shape where the values extend the given `Condition` type.
160
- - [`UnionToIntersection`](source/union-to-intersection.d.ts) - Convert a union type to an intersection type.
161
- - [`LiteralToPrimitive`](source/literal-to-primitive.d.ts) - Convert a [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types) to the [primitive type](source/primitive.d.ts) it belongs to.
162
- - [`LiteralToPrimitiveDeep`](source/literal-to-primitive-deep.d.ts) - Like `LiteralToPrimitive` except it converts literal types inside an object or array deeply.
163
- - [`Stringified`](source/stringified.d.ts) - Create a type with the keys of the given type changed to `string` type.
164
- - [`IterableElement`](source/iterable-element.d.ts) - Get the element type of an `Iterable`/`AsyncIterable`. For example, `Array`, `Set`, `Map`, generator, stream, etc.
165
- - [`Entry`](source/entry.d.ts) - Create a type that represents the type of an entry of a collection.
166
- - [`Entries`](source/entries.d.ts) - Create a type that represents the type of the entries of a collection.
167
- - [`SetReturnType`](source/set-return-type.d.ts) - Create a function type with a return type of your choice and the same parameters as the given function type.
168
- - [`SetParameterType`](source/set-parameter-type.d.ts) - Create a function that replaces some parameters with the given parameters.
169
- - [`Simplify`](source/simplify.d.ts) - Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
170
- - [`SimplifyDeep`](source/simplify-deep.d.ts) - Deeply simplifies an object type.
171
- - [`Get`](source/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs/latest#get) function.
172
- - [`StringKeyOf`](source/string-key-of.d.ts) - Get keys of the given type as strings.
173
- - [`Schema`](source/schema.d.ts) - Create a deep version of another object type where property values are recursively replaced into a given value type.
174
- - [`Exact`](source/exact.d.ts) - Create a type that does not allow extra properties.
175
- - [`OptionalKeysOf`](source/optional-keys-of.d.ts) - Extract all optional keys from the given type.
176
- - [`KeysOfUnion`](source/keys-of-union.d.ts) - Create a union of all keys from a given type, even those exclusive to specific union members.
177
- - [`HasOptionalKeys`](source/has-optional-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any optional fields.
178
- - [`RequiredKeysOf`](source/required-keys-of.d.ts) - Extract all required keys from the given type.
179
- - [`HasRequiredKeys`](source/has-required-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any required fields.
180
- - [`ReadonlyKeysOf`](source/readonly-keys-of.d.ts) - Extract all readonly keys from the given type.
181
- - [`HasReadonlyKeys`](source/has-readonly-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any readonly fields.
182
- - [`WritableKeysOf`](source/writable-keys-of.d.ts) - Extract all writable (non-readonly) keys from the given type.
183
- - [`HasWritableKeys`](source/has-writable-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any writable fields.
184
- - [`Spread`](source/spread.d.ts) - Mimic the type inferred by TypeScript when merging two objects or two arrays/tuples using the spread syntax.
185
- - [`IsEqual`](source/is-equal.d.ts) - Returns a boolean for whether the two given types are equal.
186
- - [`TaggedUnion`](source/tagged-union.d.ts) - Create a union of types that share a common discriminant property.
187
- - [`IntRange`](source/int-range.d.ts) - Generate a union of numbers (includes the start and excludes the end).
188
- - [`IntClosedRange`](source/int-closed-range.d.ts) - Generate a union of numbers (includes the start and the end).
189
- - [`ArrayIndices`](source/array-indices.d.ts) - Provides valid indices for a constant array or tuple.
190
- - [`ArrayValues`](source/array-values.d.ts) - Provides all values for a constant array or tuple.
191
- - [`ArraySplice`](source/array-splice.d.ts) - Creates a new array type by adding or removing elements at a specified index range in the original array.
192
- - [`ArrayTail`](source/array-tail.d.ts) - Extracts the type of an array or tuple minus the first element.
193
- - [`SetFieldType`](source/set-field-type.d.ts) - Create a type that changes the type of the given keys.
194
- - [`Paths`](source/paths.d.ts) - Generate a union of all possible paths to properties in the given object.
195
- - [`SharedUnionFields`](source/shared-union-fields.d.ts) - Create a type with shared fields from a union of object types.
196
- - [`SharedUnionFieldsDeep`](source/shared-union-fields-deep.d.ts) - Create a type with shared fields from a union of object types, deeply traversing nested structures.
197
- - [`AllUnionFields`](source/all-union-fields.d.ts) - Create a type with all fields from a union of object types.
198
- - [`DistributedOmit`](source/distributed-omit.d.ts) - Omits keys from a type, distributing the operation over a union.
199
- - [`DistributedPick`](source/distributed-pick.d.ts) - Picks keys from a type, distributing the operation over a union.
200
- - [`And`](source/and.d.ts) - Returns a boolean for whether two given types are both true.
201
- - [`Or`](source/or.d.ts) - Returns a boolean for whether either of two given types are true.
202
- - [`NonEmptyTuple`](source/non-empty-tuple.d.ts) - Matches any non-empty tuple.
203
- - [`NonEmptyString`](source/non-empty-string.d.ts) - Matches any non-empty string.
204
- - [`FindGlobalType`](source/find-global-type.d.ts) - Tries to find the type of a global with the given name.
205
- - [`FindGlobalInstanceType`](source/find-global-type.d.ts) - Tries to find one or more types from their globally-defined constructors.
206
-
207
- ### Type Guard
208
-
209
- #### `IsType` vs. `IfType`
210
-
211
- For every `IsT` type (e.g. `IsAny`), there is an associated `IfT` type that can help simplify conditional types. While the `IsT` types return a `boolean`, the `IfT` types act like an `If`/`Else` - they resolve to the given `TypeIfT` or `TypeIfNotT` depending on whether `IsX` is `true` or not. By default, `IfT` returns a `boolean`:
212
-
213
- ```ts
214
- type IfAny<T, TypeIfAny = true, TypeIfNotAny = false> = (
215
- IsAny<T> extends true ? TypeIfAny : TypeIfNotAny
216
- );
217
- ```
218
-
219
- #### Usage
220
-
221
- ```ts
222
- import type {IsAny, IfAny} from 'type-fest';
223
-
224
- type ShouldBeTrue = IsAny<any> extends true ? true : false;
225
- //=> true
226
-
227
- type ShouldBeFalse = IfAny<'not any'>;
228
- //=> false
229
-
230
- type ShouldBeNever = IfAny<'not any', 'not never', 'never'>;
231
- //=> 'never'
232
- ```
233
-
234
- - [`IsLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
235
- - [`IsStringLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `string` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
236
- - [`IsNumericLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `number` or `bigint` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
237
- - [`IsBooleanLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `true` or `false` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
238
- - [`IsSymbolLiteral`](source/is-literal.d.ts) - Returns a boolean for whether the given type is a `symbol` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
239
- - [`IsAny`](source/is-any.d.ts) - Returns a boolean for whether the given type is `any`. (Conditional version: [`IfAny`](source/if-any.d.ts))
240
- - [`IsNever`](source/is-never.d.ts) - Returns a boolean for whether the given type is `never`. (Conditional version: [`IfNever`](source/if-never.d.ts))
241
- - [`IsUnknown`](source/is-unknown.d.ts) - Returns a boolean for whether the given type is `unknown`. (Conditional version: [`IfUnknown`](source/if-unknown.d.ts))
242
- - [`IsEmptyObject`](source/empty-object.d.ts) - Returns a boolean for whether the type is strictly equal to an empty plain object, the `{}` value. (Conditional version: [`IfEmptyObject`](source/if-empty-object.d.ts))
243
- - [`IsNull`](source/is-null.d.ts) - Returns a boolean for whether the given type is `null`. (Conditional version: [`IfNull`](source/if-null.d.ts))
244
- - [`IsTuple`](source/is-tuple.d.ts) - Returns a boolean for whether the given array is a tuple.
245
-
246
- ### JSON
247
-
248
- - [`Jsonify`](source/jsonify.d.ts) - Transform a type to one that is assignable to the `JsonValue` type.
249
- - [`Jsonifiable`](source/jsonifiable.d.ts) - Matches a value that can be losslessly converted to JSON.
250
- - [`JsonPrimitive`](source/basic.d.ts) - Matches a JSON primitive.
251
- - [`JsonObject`](source/basic.d.ts) - Matches a JSON object.
252
- - [`JsonArray`](source/basic.d.ts) - Matches a JSON array.
253
- - [`JsonValue`](source/basic.d.ts) - Matches any valid JSON value.
254
-
255
- ### Structured clone
256
-
257
- - [`StructuredCloneable`](source/structured-cloneable.d.ts) - Matches a value that can be losslessly cloned using `structuredClone`.
258
-
259
- ### Async
260
-
261
- - [`Promisable`](source/promisable.d.ts) - Create a type that represents either the value or the value wrapped in `PromiseLike`.
262
- - [`AsyncReturnType`](source/async-return-type.d.ts) - Unwrap the return type of a function that returns a `Promise`.
263
- - [`Asyncify`](source/asyncify.d.ts) - Create an async version of the given function type.
264
-
265
- ### String
266
-
267
- - [`Trim`](source/trim.d.ts) - Remove leading and trailing spaces from a string.
268
- - [`Split`](source/split.d.ts) - Represents an array of strings split using a given character or character set.
269
- - [`Words`](source/words.d.ts) - Represents an array of strings split using a heuristic for detecting words.
270
- - [`Replace`](source/replace.d.ts) - Represents a string with some or all matches replaced by a replacement.
271
- - [`StringSlice`](source/string-slice.d.ts) - Returns a string slice of a given range, just like `String#slice()`.
272
- - [`StringRepeat`](source/string-repeat.d.ts) - Returns a new string which contains the specified number of copies of a given string, just like `String#repeat()`.
273
-
274
- ### Array
275
-
276
- - [`Arrayable`](source/arrayable.d.ts) - Create a type that represents either the value or an array of the value.
277
- - [`Includes`](source/includes.d.ts) - Returns a boolean for whether the given array includes the given item.
278
- - [`Join`](source/join.d.ts) - Join an array of strings and/or numbers using the given string as a delimiter.
279
- - [`ArraySlice`](source/array-slice.d.ts) - Returns an array slice of a given range, just like `Array#slice()`.
280
- - [`LastArrayElement`](source/last-array-element.d.ts) - Extracts the type of the last element of an array.
281
- - [`FixedLengthArray`](source/fixed-length-array.d.ts) - Create a type that represents an array of the given type and length.
282
- - [`MultidimensionalArray`](source/multidimensional-array.d.ts) - Create a type that represents a multidimensional array of the given type and dimensions.
283
- - [`MultidimensionalReadonlyArray`](source/multidimensional-readonly-array.d.ts) - Create a type that represents a multidimensional readonly array of the given type and dimensions.
284
- - [`ReadonlyTuple`](source/readonly-tuple.d.ts) - Create a type that represents a read-only tuple of the given type and length.
285
- - [`TupleToUnion`](source/tuple-to-union.d.ts) - Convert a tuple/array into a union type of its elements.
286
- - [`UnionToTuple`](source/union-to-tuple.d.ts) - Convert a union type into an unordered tuple type of its elements.
287
- - [`TupleToObject`](source/tuple-to-object.d.ts) - Transforms a tuple into an object, mapping each tuple index to its corresponding type as a key-value pair.
288
-
289
- ### Numeric
290
-
291
- - [`PositiveInfinity`](source/numeric.d.ts) - Matches the hidden `Infinity` type.
292
- - [`NegativeInfinity`](source/numeric.d.ts) - Matches the hidden `-Infinity` type.
293
- - [`Finite`](source/numeric.d.ts) - A finite `number`.
294
- - [`Integer`](source/numeric.d.ts) - A `number` that is an integer.
295
- - [`Float`](source/numeric.d.ts) - A `number` that is not an integer.
296
- - [`NegativeFloat`](source/numeric.d.ts) - A negative (`-∞ < x < 0`) `number` that is not an integer.
297
- - [`Negative`](source/numeric.d.ts) - A negative `number`/`bigint` (`-∞ < x < 0`)
298
- - [`NonNegative`](source/numeric.d.ts) - A non-negative `number`/`bigint` (`0 <= x < ∞`).
299
- - [`NegativeInteger`](source/numeric.d.ts) - A negative (`-∞ < x < 0`) `number` that is an integer.
300
- - [`NonNegativeInteger`](source/numeric.d.ts) - A non-negative (`0 <= x < ∞`) `number` that is an integer.
301
- - [`IsNegative`](source/numeric.d.ts) - Returns a boolean for whether the given number is a negative number.
302
- - [`IsFloat`](source/is-float.d.ts) - Returns a boolean for whether the given number is a float, like `1.5` or `-1.5`.
303
- - [`IsInteger`](source/is-integer.d.ts) - Returns a boolean for whether the given number is a integer, like `-5`, `1.0` or `100`.
304
- - [`GreaterThan`](source/greater-than.d.ts) - Returns a boolean for whether a given number is greater than another number.
305
- - [`GreaterThanOrEqual`](source/greater-than-or-equal.d.ts) - Returns a boolean for whether a given number is greater than or equal to another number.
306
- - [`LessThan`](source/less-than.d.ts) - Returns a boolean for whether a given number is less than another number.
307
- - [`LessThanOrEqual`](source/less-than-or-equal.d.ts) - Returns a boolean for whether a given number is less than or equal to another number.
308
- - [`Sum`](source/sum.d.ts) - Returns the sum of two numbers.
309
- - [`Subtract`](source/subtract.d.ts) - Returns the difference between two numbers.
310
-
311
- ### Change case
312
-
313
- - [`CamelCase`](source/camel-case.d.ts) - Convert a string literal to camel-case (`fooBar`).
314
- - [`CamelCasedProperties`](source/camel-cased-properties.d.ts) - Convert object properties to camel-case (`fooBar`).
315
- - [`CamelCasedPropertiesDeep`](source/camel-cased-properties-deep.d.ts) - Convert object properties to camel-case recursively (`fooBar`).
316
- - [`KebabCase`](source/kebab-case.d.ts) - Convert a string literal to kebab-case (`foo-bar`).
317
- - [`KebabCasedProperties`](source/kebab-cased-properties.d.ts) - Convert a object properties to kebab-case recursively (`foo-bar`).
318
- - [`KebabCasedPropertiesDeep`](source/kebab-cased-properties-deep.d.ts) - Convert object properties to kebab-case (`foo-bar`).
319
- - [`PascalCase`](source/pascal-case.d.ts) - Converts a string literal to pascal-case (`FooBar`)
320
- - [`PascalCasedProperties`](source/pascal-cased-properties.d.ts) - Converts object properties to pascal-case (`FooBar`)
321
- - [`PascalCasedPropertiesDeep`](source/pascal-cased-properties-deep.d.ts) - Converts object properties to pascal-case (`FooBar`)
322
- - [`SnakeCase`](source/snake-case.d.ts) - Convert a string literal to snake-case (`foo_bar`).
323
- - [`SnakeCasedProperties`](source/snake-cased-properties.d.ts) - Convert object properties to snake-case (`foo_bar`).
324
- - [`SnakeCasedPropertiesDeep`](source/snake-cased-properties-deep.d.ts) - Convert object properties to snake-case recursively (`foo_bar`).
325
- - [`ScreamingSnakeCase`](source/screaming-snake-case.d.ts) - Convert a string literal to screaming-snake-case (`FOO_BAR`).
326
- - [`DelimiterCase`](source/delimiter-case.d.ts) - Convert a string literal to a custom string delimiter casing.
327
- - [`DelimiterCasedProperties`](source/delimiter-cased-properties.d.ts) - Convert object properties to a custom string delimiter casing.
328
- - [`DelimiterCasedPropertiesDeep`](source/delimiter-cased-properties-deep.d.ts) - Convert object properties to a custom string delimiter casing recursively.
329
-
330
- ### Miscellaneous
331
-
332
- - [`GlobalThis`](source/global-this.d.ts) - Declare locally scoped properties on `globalThis`.
333
- - [`PackageJson`](source/package-json.d.ts) - Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). It also includes support for [TypeScript Declaration Files](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html).
334
- - [`TsConfigJson`](source/tsconfig-json.d.ts) - Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
335
-
336
- ## Declined types
337
-
338
- *If we decline a type addition, we will make sure to document the better solution here.*
339
-
340
- - [`Diff` and `Spread`](https://github.com/sindresorhus/type-fest/pull/7) - The pull request author didn't provide any real-world use-cases and the PR went stale. If you think this type is useful, provide some real-world use-cases and we might reconsider.
341
- - [`Dictionary`](https://github.com/sindresorhus/type-fest/issues/33) - You only save a few characters (`Dictionary<number>` vs `Record<string, number>`) from [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type), which is more flexible and well-known. Also, you shouldn't use an object as a dictionary. We have `Map` in JavaScript now.
342
- - [`ExtractProperties` and `ExtractMethods`](https://github.com/sindresorhus/type-fest/pull/4) - The types violate the single responsibility principle. Instead, refine your types into more granular type hierarchies.
343
- - [`Url2Json`](https://github.com/sindresorhus/type-fest/pull/262) - Inferring search parameters from a URL string is a cute idea, but not very useful in practice, since search parameters are usually dynamic and defined separately.
344
- - [`Nullish`](https://github.com/sindresorhus/type-fest/pull/318) - The type only saves a couple of characters, not everyone knows what "nullish" means, and I'm also trying to [get away from `null`](https://github.com/sindresorhus/meta/discussions/7).
345
- - [`TitleCase`](https://github.com/sindresorhus/type-fest/pull/303) - It's not solving a common need and is a better fit for a separate package.
346
- - [`ExtendOr` and `ExtendAnd`](https://github.com/sindresorhus/type-fest/pull/247) - The benefits don't outweigh having to learn what they mean.
347
- - [`PackageJsonExtras`](https://github.com/sindresorhus/type-fest/issues/371) - There are too many possible configurations that can be put into `package.json`. If you would like to extend `PackageJson` to support an additional configuration in your project, please see the *Extending existing types* section below.
348
-
349
- ## Alternative type names
350
-
351
- *If you know one of our types by a different name, add it here for discovery.*
352
-
353
- - `Prettify`- See [`Simplify`](source/simplify.d.ts)
354
- - `Expand`- See [`Simplify`](source/simplify.d.ts)
355
- - `PartialBy` - See [`SetOptional`](source/set-optional.d.ts)
356
- - `RecordDeep`- See [`Schema`](source/schema.d.ts)
357
- - `Mutable`- See [`Writable`](source/writable.d.ts)
358
- - `RequireOnlyOne`, `OneOf` - See [`RequireExactlyOne`](source/require-exactly-one.d.ts)
359
- - `AtMostOne` - See [`RequireOneOrNone`](source/require-one-or-none.d.ts)
360
- - `AllKeys` - See [`KeysOfUnion`](source/keys-of-union.d.ts)
361
- - `Branded` - See [`Tagged`](source/tagged.d.ts)
362
- - `Opaque` - See [`Tagged`](source/tagged.d.ts)
363
- - `SetElement` - See [`IterableElement`](source/iterable-element.d.ts)
364
- - `SetEntry` - See [`IterableElement`](source/iterable-element.d.ts)
365
- - `SetValues` - See [`IterableElement`](source/iterable-element.d.ts)
366
- - `PickByTypes` - See [`ConditionalPick`](source/conditional-pick.d.ts)
367
- - `HomomorphicOmit` - See [`Except`](source/except.d.ts)
368
-
369
- ## Tips
370
-
371
- ### Extending existing types
372
-
373
- - [`PackageJson`](source/package-json.d.ts) - There are a lot of tools that place extra configurations inside the `package.json` file. You can extend `PackageJson` to support these additional configurations.
374
- <details>
375
- <summary>
376
- Example
377
- </summary>
378
-
379
- [Playground](https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBDAnmApnA3gBQIYGMDW2A5igFIDOEAdnNuXAEJ0o4HFmVUC+cAZlBBBwA5ElQBaXinIxhAbgCwAKFCRYCZGnQAZYFRgooPfoJHSANntmKlysWlaESFanAC8jZo-YuaAMgwLKwBhal5gIgB+AC44XX1DADpQqnCiLhsgA)
380
-
381
- ```ts
382
- import type {PackageJson as BasePackageJson} from 'type-fest';
383
- import type {Linter} from 'eslint';
384
-
385
- type PackageJson = BasePackageJson & {eslintConfig?: Linter.Config};
386
- ```
387
- </details>
388
-
389
- ### Related
390
-
391
- - [typed-query-selector](https://github.com/g-plane/typed-query-selector) - Enhances `document.querySelector` and `document.querySelectorAll` with a template literal type that matches element types returned from an HTML element query selector.
392
- - [`Linter.Config`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/eslint/index.d.ts) - Definitions for the [ESLint configuration schema](https://eslint.org/docs/user-guide/configuring/language-options).
393
-
394
- ### Built-in types
395
-
396
- There are many advanced types most users don't know about.
397
-
398
-
399
- - [`Awaited<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#awaitedtype) - Extract the type of a value that a `Promise` resolves to.
400
- <details>
401
- <summary>
402
- Example
403
- </summary>
404
-
405
- [Playground](https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgKoGdrIN4FgBQyyAkMACYBcyIArgLYBG0A3AUcSHHRFemFKADmrQiTiCe1ekygiiAXwJtkCADZx06NJigBBAA7AAytABuwJDmXENATxAJkMCGAQALDNAAUNHQElKKUZoAEoqAAUoAHs6YEwAHk8oAD4rUWJiAHpM5AAxF3dkMDcUXywyODA4J2i6IpLkCqqGDQgAOmssnIAVBsQwGjhVZGA6fVUIbnBK4CiQZFjBNzBkVSiogGtV4A2UYriKTuyVOb5kKAh0fVOUAF5kOAB3OGAV51c3LwAiTLhDTLKUEyABJsICAvIQnISF0TiAzk1qvcLlcbm0AFboOZeKFHHIXAZQeaI6EZAk0Ik4EaBACMABpqFxJF8AFJRNzzAAiUQgXwZ4kkAGYAAzIeSkxSiSXKMC2fQofIfCBkJLIe66Z6vZXxABKLgpIG6cogiR0BmMZgsEAA2l93u4kl8ALrJZIiZR2BxOGgOMCzeZuOAgMgTJKcypwLx-C1QcxIKhJc0mWNWhngwK0YJQEJpdj8Wy5mEIU4rQFURXuZWq+5PF4raPJuPte0eHQ+fxkXHpWG6GCQKBOApuITIQGNCMM2xRGgqIPIeWwKJQOqmOACadafr+rToGiFDSj-RNEfFUo6EbgaDwJB0vGz9wnhqImpRb2Es8QBlLhZwDYjuBkGQrz+kMyC6OEfjnBAACONCXGAm5aCAEDKsqHTpPIs4fMgXjQNE2aFhkxx4d+gbBqoQjWJKChKKIxbwqWZqGI2VpqtQECPNo0BJpaSA4tCZEhhAYYRu23HMbxn7IDSUJAA)
406
-
407
- ```ts
408
- interface User {
409
- id: number;
410
- name: string;
411
- age: number;
412
- }
413
-
414
- class UserApiService {
415
- async fetchUser(userId: number): Promise<User> {
416
- // Fetch the user data from the database.
417
- // The actual implementation might look like this:
418
- // const response = await fetch('/api/user/${userId}');
419
- // const data = response.json();
420
- // return data;
421
- return {
422
- id: 1,
423
- name: 'John Doe',
424
- age: 30
425
- };
426
- }
427
- }
428
-
429
- type FetchedUser = Awaited<ReturnType<UserApiService['fetchUser']>>;
430
-
431
- async function handleUserData(apiService: UserApiService, userId: number) {
432
- try {
433
- const user: FetchedUser = await apiService.fetchUser(userId);
434
- // After fetching user data, you can perform various actions such as updating the user interface,
435
- // caching the data for future use, or making additional API requests as needed.
436
- } catch (error) {
437
- // Error handling
438
- }
439
- }
440
-
441
- const userApiService = new UserApiService();
442
- handleUserData(userApiService, 1);
443
- ```
444
-
445
- - [`Partial<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype) - Make all properties in `T` optional.
446
- <details>
447
- <summary>
448
- Example
449
- </summary>
450
-
451
- [Playground](https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgHIHsAmEDC6QzADmyA3gLABQyycADnanALYQBcyAzmFKEQNxUaddFDAcQAV2YAjaIMoBfKlQQAbOJ05osEAIIMAQpOBrsUMkOR1eANziRkCfISKSoD4Pg4ZseAsTIALyW1DS0DEysHADkvvoMMQA0VsKi4sgAzAAMuVaKClY2wPaOknSYDrguADwA0sgQAB6QIJjaANYQAJ7oMDp+LsQAfAAUXd0cdUnI9mo+uv6uANp1ALoAlKHhyGAAFsCcAHTOAW4eYF4gyxNrwbNwago0ypRWp66jH8QcAApwYmAjxq8SWIy2FDCNDA3ToKFBQyIdR69wmfQG1TOhShyBgomQX3w3GQE2Q6IA8jIAFYQBBgI4TTiEs5bTQYsFInrLTbbHZOIlgZDlSqQABqj0kKBC3yINx6a2xfOQwH6o2FVXFaklwSCIUkbQghBAEEwENSfNOlykEGefNe5uhB2O6sgS3GPRmLogmslG1tLxUOKgEDA7hAuydtteryAA)
452
-
453
- ```ts
454
- interface NodeConfig {
455
- appName: string;
456
- port: number;
457
- }
458
-
459
- class NodeAppBuilder {
460
- private configuration: NodeConfig = {
461
- appName: 'NodeApp',
462
- port: 3000
463
- };
464
-
465
- private updateConfig<Key extends keyof NodeConfig>(key: Key, value: NodeConfig[Key]) {
466
- this.configuration[key] = value;
467
- }
468
-
469
- config(config: Partial<NodeConfig>) {
470
- type NodeConfigKey = keyof NodeConfig;
471
-
472
- for (const key of Object.keys(config) as NodeConfigKey[]) {
473
- const updateValue = config[key];
474
-
475
- if (updateValue === undefined) {
476
- continue;
477
- }
478
-
479
- this.updateConfig(key, updateValue);
480
- }
481
-
482
- return this;
483
- }
484
- }
485
-
486
- // `Partial<NodeConfig>`` allows us to provide only a part of the
487
- // NodeConfig interface.
488
- new NodeAppBuilder().config({appName: 'ToDoApp'});
489
- ```
490
- </details>
491
-
492
- - [`Required<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype) - Make all properties in `T` required.
493
- <details>
494
- <summary>
495
- Example
496
- </summary>
497
-
498
- [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgGED21VQGJZwC2wA3gFCjXAzFJgA2A-AFzADOUckA5gNxUaIYjA4ckvGG07c+g6gF8KQkAgCuEFFDA5O6gEbEwUbLm2ESwABQIixACJIoSdgCUYAR3Vg4MACYAPGYuFvYAfACU5Ko0APRxwADKMBD+wFAAFuh2Vv7OSBlYGdmc8ABu8LHKsRyGxqY4oQT21pTCIHQMjOwA5DAAHgACxAAOjDAAdChYxL0ANLHUouKSMH0AEmAAhJhY6ozpAJ77GTCMjMCiV0ToSAb7UJPPC9WRgrEJwAAqR6MwSRQPFGUFocDgRHYxnEfGAowh-zgUCOwF6KwkUl6tXqJhCeEsxDaS1AXSYfUGI3GUxmc0WSneQA)
499
-
500
- ```ts
501
- interface ContactForm {
502
- email?: string;
503
- message?: string;
504
- }
505
-
506
- function submitContactForm(formData: Required<ContactForm>) {
507
- // Send the form data to the server.
508
- }
509
-
510
- submitContactForm({
511
- email: 'ex@mple.com',
512
- message: 'Hi! Could you tell me more about…',
513
- });
514
-
515
- // TypeScript error: missing property 'message'
516
- submitContactForm({
517
- email: 'ex@mple.com',
518
- });
519
- ```
520
- </details>
521
-
522
- - [`Readonly<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype) - Make all properties in `T` readonly.
523
- <details>
524
- <summary>
525
- Example
526
- </summary>
527
-
528
- [Playground](https://typescript-play.js.org/?target=6#code/AQ4UwOwVwW2AZA9gc3mAbmANsA3gKFCOAHkAzMgGkOJABEwAjKZa2kAUQCcvEu32AMQCGAF2FYBIAL4BufDRABLCKLBcywgMZgEKZOoDCiCGSXI8i4hGEwwALmABnUVxXJ57YFgzZHSVF8sT1BpBSItLGEnJz1kAy5LLy0TM2RHACUwYQATEywATwAeAITjU3MAPnkrCJMXLigtUT4AClxgGztKbyDgaX99I1TzAEokr1BRAAslJwA6FIqLAF48TtswHp9MHDla9hJGACswZvmyLjAwAC8wVpm5xZHkUZDaMKIwqyWXYCW0oN4sNlsA1h0ug5gAByACyBQAggAHJHQ7ZBIFoXbzBjMCz7OoQP5YIaJNYQMAAdziCVaALGNSIAHomcAACoFJFgADKWjcSNEwG4vC4ji0wggEEQguiTnMEGALWAV1yAFp8gVgEjeFyuKICvMrCTgVxnst5jtsGC4ljsPNhXxGaAWcAAOq6YRXYDCRg+RWIcA5JSC+kWdCepQ+v3RYCU3RInzRMCGwlpC19NYBW1Ye08R1AA)
529
-
530
- ```ts
531
- enum LogLevel {
532
- Off,
533
- Debug,
534
- Error,
535
- Fatal
536
- };
537
-
538
- interface LoggerConfig {
539
- name: string;
540
- level: LogLevel;
541
- }
542
-
543
- class Logger {
544
- config: Readonly<LoggerConfig>;
545
-
546
- constructor({name, level}: LoggerConfig) {
547
- this.config = {name, level};
548
- Object.freeze(this.config);
549
- }
550
- }
551
-
552
- const config: LoggerConfig = {
553
- name: 'MyApp',
554
- level: LogLevel.Debug
555
- };
556
-
557
- const logger = new Logger(config);
558
-
559
- // TypeScript Error: cannot assign to read-only property.
560
- logger.config.level = LogLevel.Error;
561
-
562
- // We are able to edit config variable as we please.
563
- config.level = LogLevel.Error;
564
- ```
565
- </details>
566
-
567
- - [`Pick<T, K>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys) - From `T`, pick a set of properties whose keys are in the union `K`.
568
- <details>
569
- <summary>
570
- Example
571
- </summary>
572
-
573
- [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgEE5TCgNugN4BQoZwOUBAXMAM5RyQDmA3KeSFABYCuAtgCMISMHloMmENh04oA9tBjQJjFuzIBfYrOAB6PcADCcGElh1gEGAHcKATwAO6ebyjB5CTNlwFwSxFR0BX5HeToYABNgBDh5fm8cfBg6AHIKG3ldA2BHOOcfFNpUygJ0pAhokr4hETFUgDpswywkggAFUwA3MFtgAF5gQgowKhhVKTYKGuFRcXo1aVZgbTIoJ3RW3xhOmB6+wfbcAGsAHi3kgBpgEtGy4AAfG54BWfqAPnZm4AAlZUj4MAkMA8GAGB4vEgfMlLLw6CwPBA8PYRmMgZVgAC6CgmI4cIommQELwICh8RBgKZKvALh1ur0bHQABR5PYMui0Wk7em2ADaAF0AJS0AASABUALIAGQAogR+Mp3CROCAFBBwVC2ikBpj5CgBIqGjizLA5TAFdAmalImAuqlBRoVQh5HBgEy1eDWfs7J5cjzGYKhroVfpDEhHM4MV6GRR5NN0JrtnRg6BVirTFBeHAKYmYY6QNpdB73LmCJZBlSAXAubtvczeSmQMNSuMbmKNgBlHFgPEUNwusBIPAAQlS1xetTmxT0SDoESgdD0C4aACtHMwxytLrohawgA)
574
-
575
- ```ts
576
- interface Article {
577
- title: string;
578
- thumbnail: string;
579
- content: string;
580
- }
581
-
582
- // Creates new type out of the `Article` interface composed
583
- // from the Articles' two properties: `title` and `thumbnail`.
584
- // `ArticlePreview = {title: string; thumbnail: string}`
585
- type ArticlePreview = Pick<Article, 'title' | 'thumbnail'>;
586
-
587
- // Render a list of articles using only title and description.
588
- function renderArticlePreviews(previews: ArticlePreview[]): HTMLElement {
589
- const articles = document.createElement('div');
590
-
591
- for (const preview of previews) {
592
- // Append preview to the articles.
593
- }
594
-
595
- return articles;
596
- }
597
-
598
- const articles = renderArticlePreviews([
599
- {
600
- title: 'TypeScript tutorial!',
601
- thumbnail: '/assets/ts.jpg'
602
- }
603
- ]);
604
- ```
605
- </details>
606
-
607
- - [`Record<K, T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type) - Construct a type with a set of properties `K` of type `T`.
608
- <details>
609
- <summary>
610
- Example
611
- </summary>
612
-
613
- [Playground](https://typescript-play.js.org/?target=6#code/AQ4ejYAUHsGcCWAXBMB2dgwGbAKYC2ADgDYwCeeemCaWArgE7ADGMxAhmuQHQBQoYEnJE8wALKEARnkaxEKdMAC8wAOS0kstGuAAfdQBM8ANzxlRjXQbVaWACwC0JPB0NqA3HwGgIwAJJoWozYHCxixnAsjAhStADmwESMMJYo1Fi4HMCIaPEu+MRklHj8gpqyoeHAAKJFFFTAAN4+giDYCIxwSAByHAR4AFw5SDF5Xm2gJBzdfQPD3WPxE5PAlBxdAPLYNQAelgh4aOHDaPQEMowrIAC+3oJ+AMKMrlrAXFhSAFZ4LEhC9g4-0BmA4JBISXgiCkBQABpILrJ5MhUGhYcATGD6Bk4Hh-jNgABrPDkOBlXyQAAq9ngYmJpOAAHcEOCRjAXqwYODfoo6DhakUSph+Uh7GI4P0xER4Cj0OSQGwMP8tP1hgAlX7swwAHgRl2RvIANALSA08ABtAC6AD4VM1Wm0Kow0MMrYaHYJjGYLLJXZb3at1HYnC43Go-QHQDcvA6-JsmEJXARgCDgMYWAhjIYhDAU+YiMAAFIwex0ZmilMITCGF79TLAGRsAgJYAAZRwSEZGzEABFTOZUrJ5Yn+jwnWgeER6HB7AAKJrADpdXqS4ZqYultTG6azVfqHswPBbtauLY7fayQ7HIbAAAMwBuAEoYw9IBq2Ixs9h2eFMOQYPQObALQKJgggABeYhghCIpikkKRpOQRIknAsZUiIeCttECBEP8NSMCkjDDAARMGziuIYxHwYOjDCMBmDNnAuTxA6irdCOBB1Lh5Dqpqn66tISIykawBnOCtqqC0gbjqc9DgpGkxegOliyfJDrRkAA)
614
-
615
- ```ts
616
- // Positions of employees in our company.
617
- type MemberPosition = 'intern' | 'developer' | 'tech-lead';
618
-
619
- // Interface describing properties of a single employee.
620
- interface Employee {
621
- firstName: string;
622
- lastName: string;
623
- yearsOfExperience: number;
624
- }
625
-
626
- // Create an object that has all possible `MemberPosition` values set as keys.
627
- // Those keys will store a collection of Employees of the same position.
628
- const team: Record<MemberPosition, Employee[]> = {
629
- intern: [],
630
- developer: [],
631
- 'tech-lead': [],
632
- };
633
-
634
- // Our team has decided to help John with his dream of becoming Software Developer.
635
- team.intern.push({
636
- firstName: 'John',
637
- lastName: 'Doe',
638
- yearsOfExperience: 0
639
- });
640
-
641
- // `Record` forces you to initialize all of the property keys.
642
- // TypeScript Error: "tech-lead" property is missing
643
- const teamEmpty: Record<MemberPosition, null> = {
644
- intern: null,
645
- developer: null,
646
- };
647
- ```
648
- </details>
649
-
650
- - [`Exclude<T, U>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#excludetype-excludedunion) - Exclude from `T` those types that are assignable to `U`.
651
- <details>
652
- <summary>
653
- Example
654
- </summary>
655
-
656
- [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgMrQG7QMIHsQzADmyA3gFDLIAOuUYAXMiAK4A2byAPsgM5hRQJHqwC2AI2gBucgF9y5MAE9qKAEoQAjiwj8AEnBAATNtGQBeZAAooWphu26wAGmS3e93bRC8IASgsAPmRDJRlyAHoI5ABRAA8ENhYjFFYOZGVVZBgoXFFkAAM0zh5+QRBhZhYJaAKAOkjogEkQZAQ4X2QAdwALCFbaemRgXmQtFjhOMFwq9K6ULuB0lk6U+HYwZAxJnQaYFhAEMGB8ZCIIMAAFOjAANR2IK0HGWISklIAedCgsKDwCYgAbQA5M9gQBdVzFQJ+JhiSRQMiUYYwayZCC4VHPCzmSzAspCYEBWxgFhQAZwKC+FpgJ43VwARgADH4ZFQSWSBjcZPJyPtDsdTvxKWBvr8rD1DCZoJ5HPopaYoK4EPhCEQmGKcKriLCtrhgEYkVQVT5Nr4fmZLLZtMBbFZgT0wGBqES6ghbHBIJqoBKFdBWQpjfh+DQbhY2tqiHVsbjLMVkAB+ZAAZiZaeQTHOVxu9ySjxNaujNwDVHNvzqbBGkBAdPoAfkQA)
657
-
658
- ```ts
659
- interface ServerConfig {
660
- port: null | string | number;
661
- }
662
-
663
- type RequestHandler = (request: Request, response: Response) => void;
664
-
665
- // Exclude `null` type from `null | string | number`.
666
- // In case the port is equal to `null`, we will use default value.
667
- function getPortValue(port: Exclude<ServerConfig['port'], null>): number {
668
- if (typeof port === 'string') {
669
- return parseInt(port, 10);
670
- }
671
-
672
- return port;
673
- }
674
-
675
- function startServer(handler: RequestHandler, config: ServerConfig): void {
676
- const server = require('http').createServer(handler);
677
-
678
- const port = config.port === null ? 3000 : getPortValue(config.port);
679
- server.listen(port);
680
- }
681
- ```
682
- </details>
683
-
684
- - [`Extract<T, U>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union) - Extract from `T` those types that are assignable to `U`.
685
- <details>
686
- <summary>
687
- Example
688
- </summary>
689
-
690
- [Playground](https://typescript-play.js.org/?target=6#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXzSwEdkQBJYACgEoAueVZAWwCMQYBuAKDDwGcM8MgBF4AXngBlAJ6scESgHIRi6ty5ZUGdoihgEABXZ888AN5d48ANoiAuvUat23K6ihMQ9ATE0BzV3goPy8GZjZOLgBfLi4Aejj4AEEICBwAdz54MAALKFQQ+BxEeAAHY1NgKAwoIKy0grr4DByEUpgccpgMaXgAaxBerCzi+B9-ZulygDouFHRsU1z8kKMYE1RhaqgAHkt4AHkWACt4EAAPbVRgLLWNgBp9gGlBs8uQa6yAUUuYPQwdgNpKM7nh7mMML4CgA+R5WABqUAgpDeVxuhxO1he0jsXGh8EoOBO9COx3BQPo2PBADckaR6IjkSA6PBqTgsMBzPsicdrEC7OJWXSQNwYvFEgAVTS9JLXODpeDpKBZFg4GCoWa8VACIJykAKiQWKy2YQOAioYikCg0OEMDyhRSy4DyxS24KhAAMjyi6gS8AAwjh5OD0iBFHAkJoEOksC1mnkMJq8gUQKDNttKPlnfrwYp3J5XfBHXqoKpfYkAOI4ansTxaeDADmoRSCCBYAbxhC6TDx6rwYHIRX5bScjA4bLJwoDmDwDkfbA9JMrVMVdM1TN69LgkTgwgkchUahqIA)
691
-
692
- ```ts
693
- declare function uniqueId(): number;
694
-
695
- const ID = Symbol('ID');
696
-
697
- interface Person {
698
- [ID]: number;
699
- name: string;
700
- age: number;
701
- }
702
-
703
- // Allows changing the person data as long as the property key is of string type.
704
- function changePersonData<
705
- Obj extends Person,
706
- Key extends Extract<keyof Person, string>,
707
- Value extends Obj[Key]
708
- > (obj: Obj, key: Key, value: Value): void {
709
- obj[key] = value;
710
- }
711
-
712
- // Tiny Andrew was born.
713
- const andrew = {
714
- [ID]: uniqueId(),
715
- name: 'Andrew',
716
- age: 0,
717
- };
718
-
719
- // Cool, we're fine with that.
720
- changePersonData(andrew, 'name', 'Pony');
721
-
722
- // Government didn't like the fact that you wanted to change your identity.
723
- changePersonData(andrew, ID, uniqueId());
724
- ```
725
- </details>
726
-
727
- - [`NonNullable<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype) - Exclude `null` and `undefined` from `T`.
728
- <details>
729
- <summary>
730
- Example
731
- </summary>
732
- Works with <a href="https://www.typescriptlang.org/tsconfig#strictNullChecks"><code>strictNullChecks</code></a> set to <code>true</code>.
733
-
734
- [Playground](https://typescript-play.js.org/?target=6#code/C4TwDgpgBACg9gJ2AOQK4FsBGEFQLxQDOwCAlgHYDmUAPlORtrnQwDasDcAUFwPQBU-WAEMkUOADMowqAGNWwwoSgATCBIqlgpOOSjAAFsOBRSy1IQgr9cKJlSlW1mZYQA3HFH68u8xcoBlHA8EACEHJ08Aby4oKDBUTFZSWXjEFEYcAEIALihkXTR2YSSIAB54JDQsHAA+blj4xOTUsHSACkMzPKD3HHDHNQQAGjSkPMqMmoQASh7g-oihqBi4uNIpdraxPAI2VhmVxrX9AzMAOm2ppnwoAA4ABifuE4BfKAhWSyOTuK7CS7pao3AhXF5rV48E4ICDAVAIPT-cGQyG+XTEIgLMJLTx7CAAdygvRCA0iCHaMwarhJOIQjUBSHaACJHk8mYdeLwxtdcVAAOSsh58+lXdr7Dlcq7A3n3J4PEUdADMcspUE53OluAIUGVTx46oAKuAIAFZGQwCYAKIIBCILjUxaDHAMnla+iodjcIA)
735
-
736
- ```ts
737
- type PortNumber = string | number | null;
738
-
739
- /** Part of a class definition that is used to build a server */
740
- class ServerBuilder {
741
- portNumber!: NonNullable<PortNumber>;
742
-
743
- port(this: ServerBuilder, port: PortNumber): ServerBuilder {
744
- if (port == null) {
745
- this.portNumber = 8000;
746
- } else {
747
- this.portNumber = port;
748
- }
749
-
750
- return this;
751
- }
752
- }
753
-
754
- const serverBuilder = new ServerBuilder();
755
-
756
- serverBuilder
757
- .port('8000') // portNumber = '8000'
758
- .port(null) // portNumber = 8000
759
- .port(3000); // portNumber = 3000
760
-
761
- // TypeScript error
762
- serverBuilder.portNumber = null;
763
- ```
764
- </details>
765
-
766
- - [`Parameters<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype) - Obtain the parameters of a function type in a tuple.
767
- <details>
768
- <summary>
769
- Example
770
- </summary>
771
-
772
- [Playground](https://typescript-play.js.org/?target=6#code/GYVwdgxgLglg9mABAZwBYmMANgUwBQxgAOIUAXIgIZgCeA2gLoCUFAbnDACaIDeAUIkQB6IYgCypSlBxUATrMo1ECsJzgBbLEoipqAc0J7EMKMgDkiHLnU4wp46pwAPHMgB0fAL58+oSLARECEosLAA5ABUYG2QAHgAxJGdpVWREPDdMylk9ZApqemZEAF4APipacrw-CApEgBogkKwAYThwckQwEHUAIxxZJl4BYVEImiIZKF0oZRwiWVdbeygJmThgOYgcGFYcbhqApCJsyhtpWXcR1cnEePBoeDAABVPzgbTixFeFd8uEsClADcIxGiygIFkSEOT3SmTc2VydQeRx+ZxwF2QQ34gkEwDgsnSuFmMBKiAADEDjIhYk1Qm0OlSYABqZnYka4xA1DJZHJYkGc7yCbyeRA+CAIZCzNAYbA4CIAdxg2zJwVCkWirjwMswuEaACYmCCgA)
773
-
774
- ```ts
775
- function shuffle(input: any[]): void {
776
- // Mutate array randomly changing its' elements indexes.
777
- }
778
-
779
- function callNTimes<Fn extends (...arguments_: any[]) => any> (func: Fn, callCount: number) {
780
- // Type that represents the type of the received function parameters.
781
- type FunctionParameters = Parameters<Fn>;
782
-
783
- return function (...arguments_: FunctionParameters) {
784
- for (let i = 0; i < callCount; i++) {
785
- func(...arguments_);
786
- }
787
- }
788
- }
789
-
790
- const shuffleTwice = callNTimes(shuffle, 2);
791
- ```
792
- </details>
793
-
794
- - [`ConstructorParameters<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#constructorparameterstype) - Obtain the parameters of a constructor function type in a tuple.
795
- <details>
796
- <summary>
797
- Example
798
- </summary>
799
-
800
- [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECCBOAXAlqApgWQPYBM0mgG8AoaaFRENALmgkXmQDsBzAblOmCycTV4D8teo1YdO3JiICuwRFngAKClWENmLAJRFOZRAAtkEAHQq00ALzlklNBzIBfYk+KhIMAJJTEYJsDQAwmDA+mgAPAAq0GgAHnxMODCKTGgA7tCKxllg8CwQtL4AngDaALraFgB80EWa1SRkAA6MAG5gfNAB4FABPDJyCrQR9tDNyG0dwMGhtBhgjWEiGgA00F70vv4RhY3hEZXVVinpc42KmuJkkv3y8Bly8EPaDWTkhiZd7r3e8LK3llwGCMXGQWGhEOsfH5zJlsrl8p0+gw-goAAo5MAAW3BaHgEEilU0tEhmzQ212BJ0ry4SOg+kg+gBBiMximIGA0nAfAQLGk2N4EAAEgzYcYcnkLsRdDTvNEYkYUKwSdCme9WdM0MYwYhFPSIPpJdTkAAzDKxBUaZX+aAAQgsVmkCTQxuYaBw2ng4Ok8CYcotSu8pMur09iG9vuObxZnx6SN+AyUWTF8MN0CcZE4Ywm5jZHK5aB5fP4iCFIqT4oRRTKRLo6lYVNeAHpG50wOzOe1zHr9NLQ+HoABybsD4HOKXXRA1JCoKhBELmI5pNaB6Fz0KKBAodDYPAgSUTmqYsAALx4m5nC6nW9nGq14KtaEUA9gR9PvuNCjQ9BgACNvcwNBtAcLiAA)
801
-
802
- ```ts
803
- class ArticleModel {
804
- title: string;
805
- content?: string;
806
-
807
- constructor(title: string) {
808
- this.title = title;
809
- }
810
- }
811
-
812
- class InstanceCache<T extends (new (...arguments_: any[]) => any)> {
813
- private ClassConstructor: T;
814
- private cache: Map<string, InstanceType<T>> = new Map();
815
-
816
- constructor (ctr: T) {
817
- this.ClassConstructor = ctr;
818
- }
819
-
820
- getInstance (...arguments_: ConstructorParameters<T>): InstanceType<T> {
821
- const hash = this.calculateArgumentsHash(...arguments_);
822
-
823
- const existingInstance = this.cache.get(hash);
824
- if (existingInstance !== undefined) {
825
- return existingInstance;
826
- }
827
-
828
- return new this.ClassConstructor(...arguments_);
829
- }
830
-
831
- private calculateArgumentsHash(...arguments_: any[]): string {
832
- // Calculate hash.
833
- return 'hash';
834
- }
835
- }
836
-
837
- const articleCache = new InstanceCache(ArticleModel);
838
- const amazonArticle = articleCache.getInstance('Amazon forests burning!');
839
- ```
840
- </details>
841
-
842
- - [`ReturnType<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype) - Obtain the return type of a function type.
843
- <details>
844
- <summary>
845
- Example
846
- </summary>
847
-
848
- [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA)
849
-
850
- ```ts
851
- /** Provides every element of the iterable `iter` into the `callback` function and stores the results in an array. */
852
- function mapIter<
853
- Elem,
854
- Func extends (elem: Elem) => any,
855
- Ret extends ReturnType<Func>
856
- >(iter: Iterable<Elem>, callback: Func): Ret[] {
857
- const mapped: Ret[] = [];
858
-
859
- for (const elem of iter) {
860
- mapped.push(callback(elem));
861
- }
862
-
863
- return mapped;
864
- }
865
-
866
- const setObject: Set<string> = new Set();
867
- const mapObject: Map<number, string> = new Map();
868
-
869
- mapIter(setObject, (value: string) => value.indexOf('Foo')); // number[]
870
-
871
- mapIter(mapObject, ([key, value]: [number, string]) => {
872
- return key % 2 === 0 ? value : 'Odd';
873
- }); // string[]
874
- ```
875
- </details>
876
-
877
- - [`InstanceType<T>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype) - Obtain the instance type of a constructor function type.
878
- <details>
879
- <summary>
880
- Example
881
- </summary>
882
-
883
- [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA)
884
-
885
- ```ts
886
- class IdleService {
887
- doNothing (): void {}
888
- }
889
-
890
- class News {
891
- title: string;
892
- content: string;
893
-
894
- constructor(title: string, content: string) {
895
- this.title = title;
896
- this.content = content;
897
- }
898
- }
899
-
900
- const instanceCounter: Map<Function, number> = new Map();
901
-
902
- interface Constructor {
903
- new(...arguments_: any[]): any;
904
- }
905
-
906
- // Keep track how many instances of `Constr` constructor have been created.
907
- function getInstance<
908
- Constr extends Constructor,
909
- Arguments extends ConstructorParameters<Constr>
910
- >(constructor: Constr, ...arguments_: Arguments): InstanceType<Constr> {
911
- let count = instanceCounter.get(constructor) || 0;
912
-
913
- const instance = new constructor(...arguments_);
914
-
915
- instanceCounter.set(constructor, count + 1);
916
-
917
- console.log(`Created ${count + 1} instances of ${Constr.name} class`);
918
-
919
- return instance;
920
- }
921
-
922
-
923
- const idleService = getInstance(IdleService);
924
- // Will log: `Created 1 instances of IdleService class`
925
- const newsEntry = getInstance(News, 'New ECMAScript proposals!', 'Last month...');
926
- // Will log: `Created 1 instances of News class`
927
- ```
928
- </details>
929
-
930
- - [`Omit<T, K>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys) - Constructs a type by picking all properties from T and then removing K.
931
- <details>
932
- <summary>
933
- Example
934
- </summary>
935
-
936
- [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgIImAWzgG2QbwChlks4BzCAVShwC5kBnMKUcgbmKYAcIFgIjBs1YgOXMpSFMWbANoBdTiW5woFddwAW0kfKWEAvoUIB6U8gDCUCHEiNkICAHdkYAJ69kz4GC3JcPG4oAHteKDABBxCYNAxsPFBIWEQUCAAPJG4wZABySUFcgJAAEzMLXNV1ck0dIuCw6EjBADpy5AB1FAQ4EGQAV0YUP2AHDy8wEOQbUugmBLwtEIA3OcmQnEjuZBgQqE7gAGtgZAhwKHdkHFGwNvGUdDIcAGUliIBJEF3kAF5kAHlML4ADyPBIAGjyBUYRQAPnkqho4NoYQA+TiEGD9EAISIhPozErQMG4AASK2gn2+AApek9pCSXm8wFSQooAJQMUkAFQAsgAZACiOAgmDOOSIJAQ+OYyGl4DgoDmf2QJRCCH6YvALQQNjsEGFovF1NyJWAy1y7OUyHMyE+yRAuFImG4Iq1YDswHxbRINjA-SgfXlHqVUE4xiAA)
937
-
938
- ```ts
939
- interface Animal {
940
- imageUrl: string;
941
- species: string;
942
- images: string[];
943
- paragraphs: string[];
944
- }
945
-
946
- // Creates new type with all properties of the `Animal` interface
947
- // except 'images' and 'paragraphs' properties. We can use this
948
- // type to render small hover tooltip for a wiki entry list.
949
- type AnimalShortInfo = Omit<Animal, 'images' | 'paragraphs'>;
950
-
951
- function renderAnimalHoverInfo (animals: AnimalShortInfo[]): HTMLElement {
952
- const container = document.createElement('div');
953
- // Internal implementation.
954
- return container;
955
- }
956
- ```
957
- </details>
958
-
959
- - [`Uppercase<S extends string>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#uppercasestringtype) - Transforms every character in a string into uppercase.
960
- <details>
961
- <summary>
962
- Example
963
- </summary>
964
-
965
- ```ts
966
- type T = Uppercase<'hello'>; // 'HELLO'
967
-
968
- type T2 = Uppercase<'foo' | 'bar'>; // 'FOO' | 'BAR'
969
-
970
- type T3<S extends string> = Uppercase<`aB${S}`>;
971
- type T4 = T3<'xYz'>; // 'ABXYZ'
972
-
973
- type T5 = Uppercase<string>; // string
974
- type T6 = Uppercase<any>; // any
975
- type T7 = Uppercase<never>; // never
976
- type T8 = Uppercase<42>; // Error, type 'number' does not satisfy the constraint 'string'
977
- ```
978
- </details>
979
-
980
- - [`Lowercase<S extends string>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#lowercasestringtype) - Transforms every character in a string into lowercase.
981
- <details>
982
- <summary>
983
- Example
984
- </summary>
985
-
986
- ```ts
987
- type T = Lowercase<'HELLO'>; // 'hello'
988
-
989
- type T2 = Lowercase<'FOO' | 'BAR'>; // 'foo' | 'bar'
990
-
991
- type T3<S extends string> = Lowercase<`aB${S}`>;
992
- type T4 = T3<'xYz'>; // 'abxyz'
993
-
994
- type T5 = Lowercase<string>; // string
995
- type T6 = Lowercase<any>; // any
996
- type T7 = Lowercase<never>; // never
997
- type T8 = Lowercase<42>; // Error, type 'number' does not satisfy the constraint 'string'
998
- ```
999
- </details>
1000
-
1001
- - [`Capitalize<S extends string>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#capitalizestringtype) - Transforms the first character in a string into uppercase.
1002
- <details>
1003
- <summary>
1004
- Example
1005
- </summary>
1006
-
1007
- ```ts
1008
- type T = Capitalize<'hello'>; // 'Hello'
1009
-
1010
- type T2 = Capitalize<'foo' | 'bar'>; // 'Foo' | 'Bar'
1011
-
1012
- type T3<S extends string> = Capitalize<`aB${S}`>;
1013
- type T4 = T3<'xYz'>; // 'ABxYz'
1014
-
1015
- type T5 = Capitalize<string>; // string
1016
- type T6 = Capitalize<any>; // any
1017
- type T7 = Capitalize<never>; // never
1018
- type T8 = Capitalize<42>; // Error, type 'number' does not satisfy the constraint 'string'
1019
- ```
1020
- </details>
1021
-
1022
- - [`Uncapitalize<S extends string>`](https://www.typescriptlang.org/docs/handbook/utility-types.html#uncapitalizestringtype) - Transforms the first character in a string into lowercase.
1023
- <details>
1024
- <summary>
1025
- Example
1026
- </summary>
1027
-
1028
- ```ts
1029
- type T = Uncapitalize<'Hello'>; // 'hello'
1030
-
1031
- type T2 = Uncapitalize<'Foo' | 'Bar'>; // 'foo' | 'bar'
1032
-
1033
- type T3<S extends string> = Uncapitalize<`AB${S}`>;
1034
- type T4 = T3<'xYz'>; // 'aBxYz'
1035
-
1036
- type T5 = Uncapitalize<string>; // string
1037
- type T6 = Uncapitalize<any>; // any
1038
- type T7 = Uncapitalize<never>; // never
1039
- type T8 = Uncapitalize<42>; // Error, type 'number' does not satisfy the constraint 'string'
1040
- ```
1041
- </details>
1042
-
1043
- You can find some examples in the [TypeScript docs](https://www.typescriptlang.org/docs/handbook/utility-types.html).
1044
-
1045
- ## Maintainers
1046
-
1047
- - [Sindre Sorhus](https://github.com/sindresorhus)
1048
- - [Haozheng Li](https://github.com/Emiyaaaaa)
1049
- - [Som Shekhar Mukherjee](https://github.com/som-sm)
1050
- - [Jarek Radosz](https://github.com/CvX)
1051
- - [Dimitri Benin](https://github.com/BendingBender)
1052
- - [Pelle Wessman](https://github.com/voxpelli)
1053
- - [Sébastien Mischler](https://github.com/skarab42)
1054
-
1055
- ## License
1056
-
1057
- - [MIT](license-mit)
1058
- - [CC0-1.0](license-cc0)
1059
-
1060
- SPDX-License-Identifier: (MIT OR CC0-1.0)