@bemoje/cli 0.0.8 → 0.0.10

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 (463) hide show
  1. package/cjs/arg/ArgumentBuilder.js +2 -2
  2. package/cjs/arg/ArgumentBuilder.js.map +1 -1
  3. package/cjs/arg/ArgumentValidatorSelector.js +2 -2
  4. package/cjs/arg/ArgumentValidatorSelector.js.map +1 -1
  5. package/cjs/cmd/CommandBuilder.js +77 -34
  6. package/cjs/cmd/CommandBuilder.js.map +1 -1
  7. package/cjs/cmd/CommandBuilderMetaData.js +2 -2
  8. package/cjs/cmd/CommandBuilderMetaData.js.map +1 -1
  9. package/cjs/core/OutputManager.js +4 -4
  10. package/cjs/core/OutputManager.js.map +1 -1
  11. package/cjs/core/ParserSelector.js +11 -11
  12. package/cjs/core/ParserSelector.js.map +1 -1
  13. package/cjs/core/ValidatorSelector.js +11 -11
  14. package/cjs/core/ValidatorSelector.js.map +1 -1
  15. package/cjs/db/AbstractJsonFileSection.js +2 -3
  16. package/cjs/db/AbstractJsonFileSection.js.map +1 -1
  17. package/cjs/db/ConfigSection.js +3 -4
  18. package/cjs/db/ConfigSection.js.map +1 -1
  19. package/cjs/db/JsonFile.js +5 -6
  20. package/cjs/db/JsonFile.js.map +1 -1
  21. package/cjs/db/PresetsSection.js +2 -2
  22. package/cjs/db/PresetsSection.js.map +1 -1
  23. package/cjs/index.js +0 -78
  24. package/cjs/index.js.map +1 -1
  25. package/cjs/opt/OptionBuilder.js +2 -2
  26. package/cjs/opt/OptionBuilder.js.map +1 -1
  27. package/cjs/opt/OptionHelpers.js +5 -5
  28. package/cjs/opt/OptionHelpers.js.map +1 -1
  29. package/esm/arg/ArgumentBuilder.js +1 -1
  30. package/esm/arg/ArgumentBuilder.js.map +1 -1
  31. package/esm/arg/ArgumentValidatorSelector.js +1 -1
  32. package/esm/arg/ArgumentValidatorSelector.js.map +1 -1
  33. package/esm/cmd/CommandBuilder.js +59 -16
  34. package/esm/cmd/CommandBuilder.js.map +1 -1
  35. package/esm/cmd/CommandBuilderMetaData.js +1 -1
  36. package/esm/cmd/CommandBuilderMetaData.js.map +1 -1
  37. package/esm/core/OutputManager.js +1 -1
  38. package/esm/core/OutputManager.js.map +1 -1
  39. package/esm/core/ParserSelector.js +4 -4
  40. package/esm/core/ParserSelector.js.map +1 -1
  41. package/esm/core/ValidatorSelector.js +4 -4
  42. package/esm/core/ValidatorSelector.js.map +1 -1
  43. package/esm/db/AbstractJsonFileSection.js +1 -2
  44. package/esm/db/AbstractJsonFileSection.js.map +1 -1
  45. package/esm/db/ConfigSection.js +1 -2
  46. package/esm/db/ConfigSection.js.map +1 -1
  47. package/esm/db/JsonFile.js +1 -2
  48. package/esm/db/JsonFile.js.map +1 -1
  49. package/esm/db/PresetsSection.js +1 -1
  50. package/esm/db/PresetsSection.js.map +1 -1
  51. package/esm/index.js +0 -78
  52. package/esm/index.js.map +1 -1
  53. package/esm/opt/OptionBuilder.js +1 -1
  54. package/esm/opt/OptionBuilder.js.map +1 -1
  55. package/esm/opt/OptionHelpers.js +2 -2
  56. package/esm/opt/OptionHelpers.js.map +1 -1
  57. package/package.json +1 -1
  58. package/types/arg/ArgumentParserSelector.d.ts +2 -2
  59. package/types/arg/ArgumentValidatorSelector.d.ts +1 -1
  60. package/types/cmd/CommandBuilder.d.ts +40 -6
  61. package/types/cmd/CommandBuilderMetaData.d.ts +3 -3
  62. package/types/core/OutputManager.d.ts +2 -2
  63. package/types/core/ParserSelector.d.ts +2 -2
  64. package/types/core/ValidatorSelector.d.ts +2 -2
  65. package/types/db/AbstractJsonFileSection.d.ts +2 -3
  66. package/types/db/AppDataSection.d.ts +1 -1
  67. package/types/db/ConfigSection.d.ts +1 -3
  68. package/types/db/JsonFile.d.ts +1 -1
  69. package/types/index.d.ts +0 -78
  70. package/types/opt/OptionArgumentParserSelector.d.ts +1 -1
  71. package/types/opt/OptionArgumentValidatorSelector.d.ts +1 -1
  72. package/types/types/IConfig.d.ts +3 -3
  73. package/types/types/IPreset.d.ts +1 -1
  74. package/cjs/_example/bFindIn.js +0 -189
  75. package/cjs/_example/bFindIn.js.map +0 -1
  76. package/cjs/cmd/asdas.js +0 -27
  77. package/cjs/cmd/asdas.js.map +0 -1
  78. package/cjs/util/array/arrLast.js +0 -21
  79. package/cjs/util/array/arrLast.js.map +0 -1
  80. package/cjs/util/array/arrSome.js +0 -26
  81. package/cjs/util/array/arrSome.js.map +0 -1
  82. package/cjs/util/array/types/ArrayPredicate.js +0 -3
  83. package/cjs/util/array/types/ArrayPredicate.js.map +0 -1
  84. package/cjs/util/db/JsonDB.js +0 -145
  85. package/cjs/util/db/JsonDB.js.map +0 -1
  86. package/cjs/util/errors/ErrorParser.js +0 -164
  87. package/cjs/util/errors/ErrorParser.js.map +0 -1
  88. package/cjs/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js +0 -3
  89. package/cjs/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js.map +0 -1
  90. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js +0 -32
  91. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js.map +0 -1
  92. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js +0 -25
  93. package/cjs/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js.map +0 -1
  94. package/cjs/util/fs/readFile/readFileSafeSync.js +0 -28
  95. package/cjs/util/fs/readFile/readFileSafeSync.js.map +0 -1
  96. package/cjs/util/fs/readFile/readFileSync.js +0 -20
  97. package/cjs/util/fs/readFile/readFileSync.js.map +0 -1
  98. package/cjs/util/fs/readJsonFile/readJsonFileSafeSync.js +0 -24
  99. package/cjs/util/fs/readJsonFile/readJsonFileSafeSync.js.map +0 -1
  100. package/cjs/util/fs/removeFile/removeFile.js +0 -6
  101. package/cjs/util/fs/removeFile/removeFile.js.map +0 -1
  102. package/cjs/util/fs/tempFile/tempFileSync.js +0 -28
  103. package/cjs/util/fs/tempFile/tempFileSync.js.map +0 -1
  104. package/cjs/util/fs/types/IReadJsonFileOptions.js +0 -3
  105. package/cjs/util/fs/types/IReadJsonFileOptions.js.map +0 -1
  106. package/cjs/util/fs/writeFile/writeFileSafeSync.js +0 -6
  107. package/cjs/util/fs/writeFile/writeFileSafeSync.js.map +0 -1
  108. package/cjs/util/fs/writeFile/writeFileSync.js +0 -6
  109. package/cjs/util/fs/writeFile/writeFileSync.js.map +0 -1
  110. package/cjs/util/fs/writeJsonFile/writeJsonFileSafe.js +0 -6
  111. package/cjs/util/fs/writeJsonFile/writeJsonFileSafe.js.map +0 -1
  112. package/cjs/util/function/MethodDisabler.js +0 -94
  113. package/cjs/util/function/MethodDisabler.js.map +0 -1
  114. package/cjs/util/function/funSetName.js +0 -21
  115. package/cjs/util/function/funSetName.js.map +0 -1
  116. package/cjs/util/node/execInherit.js +0 -19
  117. package/cjs/util/node/execInherit.js.map +0 -1
  118. package/cjs/util/node/formatTableForTerminal.js +0 -21
  119. package/cjs/util/node/formatTableForTerminal.js.map +0 -1
  120. package/cjs/util/object/arrAssign.js +0 -6
  121. package/cjs/util/object/arrAssign.js.map +0 -1
  122. package/cjs/util/object/createArrayMerger.js +0 -20
  123. package/cjs/util/object/createArrayMerger.js.map +0 -1
  124. package/cjs/util/object/createObjectMerger.js +0 -20
  125. package/cjs/util/object/createObjectMerger.js.map +0 -1
  126. package/cjs/util/object/objAssign.js +0 -6
  127. package/cjs/util/object/objAssign.js.map +0 -1
  128. package/cjs/util/object/objUpdatePropertyDescriptors.js +0 -28
  129. package/cjs/util/object/objUpdatePropertyDescriptors.js.map +0 -1
  130. package/cjs/util/object/realizeLazyProperty.js +0 -14
  131. package/cjs/util/object/realizeLazyProperty.js.map +0 -1
  132. package/cjs/util/object/setNonEnumerable.js +0 -25
  133. package/cjs/util/object/setNonEnumerable.js.map +0 -1
  134. package/cjs/util/os/defaultOpenInEditorCommand.js +0 -18
  135. package/cjs/util/os/defaultOpenInEditorCommand.js.map +0 -1
  136. package/cjs/util/os/isOSX.js +0 -13
  137. package/cjs/util/os/isOSX.js.map +0 -1
  138. package/cjs/util/os/isVsCodeInstalled.js +0 -19
  139. package/cjs/util/os/isVsCodeInstalled.js.map +0 -1
  140. package/cjs/util/os/isWindows.js +0 -16
  141. package/cjs/util/os/isWindows.js.map +0 -1
  142. package/cjs/util/path/getTempDataPath.js +0 -20
  143. package/cjs/util/path/getTempDataPath.js.map +0 -1
  144. package/cjs/util/regex/regexEscapeString.js +0 -18
  145. package/cjs/util/regex/regexEscapeString.js.map +0 -1
  146. package/cjs/util/string/strEnsureStartsWith.js +0 -19
  147. package/cjs/util/string/strEnsureStartsWith.js.map +0 -1
  148. package/cjs/util/string/strFirstCharToUpperCase.js +0 -16
  149. package/cjs/util/string/strFirstCharToUpperCase.js.map +0 -1
  150. package/cjs/util/string/strIsLowerCase.js +0 -18
  151. package/cjs/util/string/strIsLowerCase.js.map +0 -1
  152. package/cjs/util/string/strIsUpperCase.js +0 -18
  153. package/cjs/util/string/strIsUpperCase.js.map +0 -1
  154. package/cjs/util/string/strSplitCamelCase.js +0 -55
  155. package/cjs/util/string/strSplitCamelCase.js.map +0 -1
  156. package/cjs/util/string-parsers/createBooleanParser.js +0 -21
  157. package/cjs/util/string-parsers/createBooleanParser.js.map +0 -1
  158. package/cjs/util/string-parsers/createTypedListParser.js +0 -22
  159. package/cjs/util/string-parsers/createTypedListParser.js.map +0 -1
  160. package/cjs/util/string-parsers/parseBoolean.js +0 -15
  161. package/cjs/util/string-parsers/parseBoolean.js.map +0 -1
  162. package/cjs/util/string-parsers/parseInteger.js +0 -17
  163. package/cjs/util/string-parsers/parseInteger.js.map +0 -1
  164. package/cjs/util/string-parsers/parseNumber.js +0 -13
  165. package/cjs/util/string-parsers/parseNumber.js.map +0 -1
  166. package/cjs/util/string-parsers/parseString.js +0 -8
  167. package/cjs/util/string-parsers/parseString.js.map +0 -1
  168. package/cjs/util/types/Any.js +0 -3
  169. package/cjs/util/types/Any.js.map +0 -1
  170. package/cjs/util/types/DeepArray.js +0 -3
  171. package/cjs/util/types/DeepArray.js.map +0 -1
  172. package/cjs/util/types/DeepObject.js +0 -3
  173. package/cjs/util/types/DeepObject.js.map +0 -1
  174. package/cjs/util/types/JsonArray.js +0 -3
  175. package/cjs/util/types/JsonArray.js.map +0 -1
  176. package/cjs/util/types/JsonDefinedPrimitive.js +0 -6
  177. package/cjs/util/types/JsonDefinedPrimitive.js.map +0 -1
  178. package/cjs/util/types/JsonObject.js +0 -3
  179. package/cjs/util/types/JsonObject.js.map +0 -1
  180. package/cjs/util/types/JsonRawPrimitive.js +0 -3
  181. package/cjs/util/types/JsonRawPrimitive.js.map +0 -1
  182. package/cjs/util/types/JsonValue.js +0 -3
  183. package/cjs/util/types/JsonValue.js.map +0 -1
  184. package/cjs/util/types/ObjectKey.js +0 -3
  185. package/cjs/util/types/ObjectKey.js.map +0 -1
  186. package/cjs/util/types/TConstructor.js +0 -3
  187. package/cjs/util/types/TConstructor.js.map +0 -1
  188. package/cjs/util/types/TFunction.js +0 -3
  189. package/cjs/util/types/TFunction.js.map +0 -1
  190. package/cjs/util/types/TFunctionNoNew.js +0 -3
  191. package/cjs/util/types/TFunctionNoNew.js.map +0 -1
  192. package/cjs/util/types/TPlainObject.js +0 -3
  193. package/cjs/util/types/TPlainObject.js.map +0 -1
  194. package/cjs/util/types/TPrimitive.js +0 -3
  195. package/cjs/util/types/TPrimitive.js.map +0 -1
  196. package/cjs/util/types/TStringParser.js +0 -3
  197. package/cjs/util/types/TStringParser.js.map +0 -1
  198. package/cjs/util/types/TValidator.js +0 -3
  199. package/cjs/util/types/TValidator.js.map +0 -1
  200. package/cjs/util/validation/createTypedArrayValidator.js +0 -26
  201. package/cjs/util/validation/createTypedArrayValidator.js.map +0 -1
  202. package/cjs/util/validation/ensureThat.js +0 -12
  203. package/cjs/util/validation/ensureThat.js.map +0 -1
  204. package/cjs/util/validation/isArray.js +0 -5
  205. package/cjs/util/validation/isArray.js.map +0 -1
  206. package/cjs/util/validation/isBoolean.js +0 -8
  207. package/cjs/util/validation/isBoolean.js.map +0 -1
  208. package/cjs/util/validation/isFunction.js +0 -17
  209. package/cjs/util/validation/isFunction.js.map +0 -1
  210. package/cjs/util/validation/isNamedFunction.js +0 -11
  211. package/cjs/util/validation/isNamedFunction.js.map +0 -1
  212. package/cjs/util/validation/isNamedFunctionArray.js +0 -9
  213. package/cjs/util/validation/isNamedFunctionArray.js.map +0 -1
  214. package/cjs/util/validation/isObject.js +0 -22
  215. package/cjs/util/validation/isObject.js.map +0 -1
  216. package/cjs/util/validation/isPlainObject.js +0 -19
  217. package/cjs/util/validation/isPlainObject.js.map +0 -1
  218. package/cjs/util/validation/isPrimitive.js +0 -18
  219. package/cjs/util/validation/isPrimitive.js.map +0 -1
  220. package/cjs/util/validation/isString.js +0 -8
  221. package/cjs/util/validation/isString.js.map +0 -1
  222. package/cjs/util/validation/isStringArray.js +0 -12
  223. package/cjs/util/validation/isStringArray.js.map +0 -1
  224. package/cjs/util/validation/isStringWithNoSpacesOrDashes.js +0 -9
  225. package/cjs/util/validation/isStringWithNoSpacesOrDashes.js.map +0 -1
  226. package/cjs/util/validation/numbers/isInteger.js +0 -17
  227. package/cjs/util/validation/numbers/isInteger.js.map +0 -1
  228. package/cjs/util/validation/numbers/isValidNumber.js +0 -22
  229. package/cjs/util/validation/numbers/isValidNumber.js.map +0 -1
  230. package/esm/_example/bFindIn.js +0 -187
  231. package/esm/_example/bFindIn.js.map +0 -1
  232. package/esm/cmd/asdas.js +0 -25
  233. package/esm/cmd/asdas.js.map +0 -1
  234. package/esm/util/array/arrLast.js +0 -17
  235. package/esm/util/array/arrLast.js.map +0 -1
  236. package/esm/util/array/arrSome.js +0 -22
  237. package/esm/util/array/arrSome.js.map +0 -1
  238. package/esm/util/array/types/ArrayPredicate.js +0 -2
  239. package/esm/util/array/types/ArrayPredicate.js.map +0 -1
  240. package/esm/util/db/JsonDB.js +0 -141
  241. package/esm/util/db/JsonDB.js.map +0 -1
  242. package/esm/util/errors/ErrorParser.js +0 -154
  243. package/esm/util/errors/ErrorParser.js.map +0 -1
  244. package/esm/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js +0 -2
  245. package/esm/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.js.map +0 -1
  246. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js +0 -28
  247. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.js.map +0 -1
  248. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js +0 -21
  249. package/esm/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.js.map +0 -1
  250. package/esm/util/fs/readFile/readFileSafeSync.js +0 -21
  251. package/esm/util/fs/readFile/readFileSafeSync.js.map +0 -1
  252. package/esm/util/fs/readFile/readFileSync.js +0 -13
  253. package/esm/util/fs/readFile/readFileSync.js.map +0 -1
  254. package/esm/util/fs/readJsonFile/readJsonFileSafeSync.js +0 -17
  255. package/esm/util/fs/readJsonFile/readJsonFileSafeSync.js.map +0 -1
  256. package/esm/util/fs/removeFile/removeFile.js +0 -2
  257. package/esm/util/fs/removeFile/removeFile.js.map +0 -1
  258. package/esm/util/fs/tempFile/tempFileSync.js +0 -21
  259. package/esm/util/fs/tempFile/tempFileSync.js.map +0 -1
  260. package/esm/util/fs/types/IReadJsonFileOptions.js +0 -2
  261. package/esm/util/fs/types/IReadJsonFileOptions.js.map +0 -1
  262. package/esm/util/fs/writeFile/writeFileSafeSync.js +0 -2
  263. package/esm/util/fs/writeFile/writeFileSafeSync.js.map +0 -1
  264. package/esm/util/fs/writeFile/writeFileSync.js +0 -2
  265. package/esm/util/fs/writeFile/writeFileSync.js.map +0 -1
  266. package/esm/util/fs/writeJsonFile/writeJsonFileSafe.js +0 -2
  267. package/esm/util/fs/writeJsonFile/writeJsonFileSafe.js.map +0 -1
  268. package/esm/util/function/MethodDisabler.js +0 -90
  269. package/esm/util/function/MethodDisabler.js.map +0 -1
  270. package/esm/util/function/funSetName.js +0 -17
  271. package/esm/util/function/funSetName.js.map +0 -1
  272. package/esm/util/node/execInherit.js +0 -15
  273. package/esm/util/node/execInherit.js.map +0 -1
  274. package/esm/util/node/formatTableForTerminal.js +0 -14
  275. package/esm/util/node/formatTableForTerminal.js.map +0 -1
  276. package/esm/util/object/arrAssign.js +0 -3
  277. package/esm/util/object/arrAssign.js.map +0 -1
  278. package/esm/util/object/createArrayMerger.js +0 -16
  279. package/esm/util/object/createArrayMerger.js.map +0 -1
  280. package/esm/util/object/createObjectMerger.js +0 -16
  281. package/esm/util/object/createObjectMerger.js.map +0 -1
  282. package/esm/util/object/objAssign.js +0 -3
  283. package/esm/util/object/objAssign.js.map +0 -1
  284. package/esm/util/object/objUpdatePropertyDescriptors.js +0 -24
  285. package/esm/util/object/objUpdatePropertyDescriptors.js.map +0 -1
  286. package/esm/util/object/realizeLazyProperty.js +0 -10
  287. package/esm/util/object/realizeLazyProperty.js.map +0 -1
  288. package/esm/util/object/setNonEnumerable.js +0 -21
  289. package/esm/util/object/setNonEnumerable.js.map +0 -1
  290. package/esm/util/os/defaultOpenInEditorCommand.js +0 -14
  291. package/esm/util/os/defaultOpenInEditorCommand.js.map +0 -1
  292. package/esm/util/os/isOSX.js +0 -9
  293. package/esm/util/os/isOSX.js.map +0 -1
  294. package/esm/util/os/isVsCodeInstalled.js +0 -15
  295. package/esm/util/os/isVsCodeInstalled.js.map +0 -1
  296. package/esm/util/os/isWindows.js +0 -12
  297. package/esm/util/os/isWindows.js.map +0 -1
  298. package/esm/util/path/getTempDataPath.js +0 -13
  299. package/esm/util/path/getTempDataPath.js.map +0 -1
  300. package/esm/util/regex/regexEscapeString.js +0 -14
  301. package/esm/util/regex/regexEscapeString.js.map +0 -1
  302. package/esm/util/string/strEnsureStartsWith.js +0 -15
  303. package/esm/util/string/strEnsureStartsWith.js.map +0 -1
  304. package/esm/util/string/strFirstCharToUpperCase.js +0 -12
  305. package/esm/util/string/strFirstCharToUpperCase.js.map +0 -1
  306. package/esm/util/string/strIsLowerCase.js +0 -14
  307. package/esm/util/string/strIsLowerCase.js.map +0 -1
  308. package/esm/util/string/strIsUpperCase.js +0 -14
  309. package/esm/util/string/strIsUpperCase.js.map +0 -1
  310. package/esm/util/string/strSplitCamelCase.js +0 -51
  311. package/esm/util/string/strSplitCamelCase.js.map +0 -1
  312. package/esm/util/string-parsers/createBooleanParser.js +0 -17
  313. package/esm/util/string-parsers/createBooleanParser.js.map +0 -1
  314. package/esm/util/string-parsers/createTypedListParser.js +0 -18
  315. package/esm/util/string-parsers/createTypedListParser.js.map +0 -1
  316. package/esm/util/string-parsers/parseBoolean.js +0 -12
  317. package/esm/util/string-parsers/parseBoolean.js.map +0 -1
  318. package/esm/util/string-parsers/parseInteger.js +0 -13
  319. package/esm/util/string-parsers/parseInteger.js.map +0 -1
  320. package/esm/util/string-parsers/parseNumber.js +0 -9
  321. package/esm/util/string-parsers/parseNumber.js.map +0 -1
  322. package/esm/util/string-parsers/parseString.js +0 -4
  323. package/esm/util/string-parsers/parseString.js.map +0 -1
  324. package/esm/util/types/Any.js +0 -2
  325. package/esm/util/types/Any.js.map +0 -1
  326. package/esm/util/types/DeepArray.js +0 -2
  327. package/esm/util/types/DeepArray.js.map +0 -1
  328. package/esm/util/types/DeepObject.js +0 -2
  329. package/esm/util/types/DeepObject.js.map +0 -1
  330. package/esm/util/types/JsonArray.js +0 -2
  331. package/esm/util/types/JsonArray.js.map +0 -1
  332. package/esm/util/types/JsonDefinedPrimitive.js +0 -5
  333. package/esm/util/types/JsonDefinedPrimitive.js.map +0 -1
  334. package/esm/util/types/JsonObject.js +0 -2
  335. package/esm/util/types/JsonObject.js.map +0 -1
  336. package/esm/util/types/JsonRawPrimitive.js +0 -2
  337. package/esm/util/types/JsonRawPrimitive.js.map +0 -1
  338. package/esm/util/types/JsonValue.js +0 -2
  339. package/esm/util/types/JsonValue.js.map +0 -1
  340. package/esm/util/types/ObjectKey.js +0 -2
  341. package/esm/util/types/ObjectKey.js.map +0 -1
  342. package/esm/util/types/TConstructor.js +0 -2
  343. package/esm/util/types/TConstructor.js.map +0 -1
  344. package/esm/util/types/TFunction.js +0 -2
  345. package/esm/util/types/TFunction.js.map +0 -1
  346. package/esm/util/types/TFunctionNoNew.js +0 -2
  347. package/esm/util/types/TFunctionNoNew.js.map +0 -1
  348. package/esm/util/types/TPlainObject.js +0 -2
  349. package/esm/util/types/TPlainObject.js.map +0 -1
  350. package/esm/util/types/TPrimitive.js +0 -2
  351. package/esm/util/types/TPrimitive.js.map +0 -1
  352. package/esm/util/types/TStringParser.js +0 -2
  353. package/esm/util/types/TStringParser.js.map +0 -1
  354. package/esm/util/types/TValidator.js +0 -2
  355. package/esm/util/types/TValidator.js.map +0 -1
  356. package/esm/util/validation/createTypedArrayValidator.js +0 -22
  357. package/esm/util/validation/createTypedArrayValidator.js.map +0 -1
  358. package/esm/util/validation/ensureThat.js +0 -8
  359. package/esm/util/validation/ensureThat.js.map +0 -1
  360. package/esm/util/validation/isArray.js +0 -2
  361. package/esm/util/validation/isArray.js.map +0 -1
  362. package/esm/util/validation/isBoolean.js +0 -4
  363. package/esm/util/validation/isBoolean.js.map +0 -1
  364. package/esm/util/validation/isFunction.js +0 -13
  365. package/esm/util/validation/isFunction.js.map +0 -1
  366. package/esm/util/validation/isNamedFunction.js +0 -7
  367. package/esm/util/validation/isNamedFunction.js.map +0 -1
  368. package/esm/util/validation/isNamedFunctionArray.js +0 -5
  369. package/esm/util/validation/isNamedFunctionArray.js.map +0 -1
  370. package/esm/util/validation/isObject.js +0 -18
  371. package/esm/util/validation/isObject.js.map +0 -1
  372. package/esm/util/validation/isPlainObject.js +0 -15
  373. package/esm/util/validation/isPlainObject.js.map +0 -1
  374. package/esm/util/validation/isPrimitive.js +0 -14
  375. package/esm/util/validation/isPrimitive.js.map +0 -1
  376. package/esm/util/validation/isString.js +0 -4
  377. package/esm/util/validation/isString.js.map +0 -1
  378. package/esm/util/validation/isStringArray.js +0 -8
  379. package/esm/util/validation/isStringArray.js.map +0 -1
  380. package/esm/util/validation/isStringWithNoSpacesOrDashes.js +0 -5
  381. package/esm/util/validation/isStringWithNoSpacesOrDashes.js.map +0 -1
  382. package/esm/util/validation/numbers/isInteger.js +0 -14
  383. package/esm/util/validation/numbers/isInteger.js.map +0 -1
  384. package/esm/util/validation/numbers/isValidNumber.js +0 -18
  385. package/esm/util/validation/numbers/isValidNumber.js.map +0 -1
  386. package/types/_example/bFindIn.d.ts +0 -1
  387. package/types/cmd/asdas.d.ts +0 -6
  388. package/types/util/array/arrLast.d.ts +0 -12
  389. package/types/util/array/arrSome.d.ts +0 -15
  390. package/types/util/array/types/ArrayPredicate.d.ts +0 -10
  391. package/types/util/db/JsonDB.d.ts +0 -65
  392. package/types/util/errors/ErrorParser.d.ts +0 -15
  393. package/types/util/fs/promptUserEditInTextEditor/IGetUserInputFromEditorOptions.d.ts +0 -15
  394. package/types/util/fs/promptUserEditInTextEditor/promptUserEditInTextEditorSync.d.ts +0 -9
  395. package/types/util/fs/promptUserEditInTextEditor/promptUserEditJsonInTextEditorSync.d.ts +0 -13
  396. package/types/util/fs/readFile/readFileSafeSync.d.ts +0 -13
  397. package/types/util/fs/readFile/readFileSync.d.ts +0 -10
  398. package/types/util/fs/readJsonFile/readJsonFileSafeSync.d.ts +0 -9
  399. package/types/util/fs/removeFile/removeFile.d.ts +0 -1
  400. package/types/util/fs/tempFile/tempFileSync.d.ts +0 -7
  401. package/types/util/fs/types/IReadJsonFileOptions.d.ts +0 -1
  402. package/types/util/fs/writeFile/writeFileSafeSync.d.ts +0 -1
  403. package/types/util/fs/writeFile/writeFileSync.d.ts +0 -1
  404. package/types/util/fs/writeJsonFile/writeJsonFileSafe.d.ts +0 -1
  405. package/types/util/function/MethodDisabler.d.ts +0 -43
  406. package/types/util/function/funSetName.d.ts +0 -13
  407. package/types/util/node/execInherit.d.ts +0 -1
  408. package/types/util/node/formatTableForTerminal.d.ts +0 -1
  409. package/types/util/object/arrAssign.d.ts +0 -1
  410. package/types/util/object/createArrayMerger.d.ts +0 -4
  411. package/types/util/object/createObjectMerger.d.ts +0 -5
  412. package/types/util/object/objAssign.d.ts +0 -1
  413. package/types/util/object/objUpdatePropertyDescriptors.d.ts +0 -16
  414. package/types/util/object/realizeLazyProperty.d.ts +0 -1
  415. package/types/util/object/setNonEnumerable.d.ts +0 -15
  416. package/types/util/os/defaultOpenInEditorCommand.d.ts +0 -5
  417. package/types/util/os/isOSX.d.ts +0 -6
  418. package/types/util/os/isVsCodeInstalled.d.ts +0 -5
  419. package/types/util/os/isWindows.d.ts +0 -8
  420. package/types/util/path/getTempDataPath.d.ts +0 -6
  421. package/types/util/regex/regexEscapeString.d.ts +0 -11
  422. package/types/util/string/strEnsureStartsWith.d.ts +0 -12
  423. package/types/util/string/strFirstCharToUpperCase.d.ts +0 -9
  424. package/types/util/string/strIsLowerCase.d.ts +0 -11
  425. package/types/util/string/strIsUpperCase.d.ts +0 -11
  426. package/types/util/string/strSplitCamelCase.d.ts +0 -11
  427. package/types/util/string-parsers/createBooleanParser.d.ts +0 -7
  428. package/types/util/string-parsers/createTypedListParser.d.ts +0 -11
  429. package/types/util/string-parsers/parseBoolean.d.ts +0 -10
  430. package/types/util/string-parsers/parseInteger.d.ts +0 -1
  431. package/types/util/string-parsers/parseNumber.d.ts +0 -1
  432. package/types/util/string-parsers/parseString.d.ts +0 -1
  433. package/types/util/types/Any.d.ts +0 -1
  434. package/types/util/types/DeepArray.d.ts +0 -10
  435. package/types/util/types/DeepObject.d.ts +0 -14
  436. package/types/util/types/JsonArray.d.ts +0 -6
  437. package/types/util/types/JsonDefinedPrimitive.d.ts +0 -4
  438. package/types/util/types/JsonObject.d.ts +0 -6
  439. package/types/util/types/JsonRawPrimitive.d.ts +0 -5
  440. package/types/util/types/JsonValue.d.ts +0 -7
  441. package/types/util/types/ObjectKey.d.ts +0 -1
  442. package/types/util/types/TConstructor.d.ts +0 -5
  443. package/types/util/types/TFunction.d.ts +0 -4
  444. package/types/util/types/TFunctionNoNew.d.ts +0 -2
  445. package/types/util/types/TPlainObject.d.ts +0 -2
  446. package/types/util/types/TPrimitive.d.ts +0 -1
  447. package/types/util/types/TStringParser.d.ts +0 -1
  448. package/types/util/types/TValidator.d.ts +0 -2
  449. package/types/util/validation/createTypedArrayValidator.d.ts +0 -9
  450. package/types/util/validation/ensureThat.d.ts +0 -6
  451. package/types/util/validation/isArray.d.ts +0 -1
  452. package/types/util/validation/isBoolean.d.ts +0 -1
  453. package/types/util/validation/isFunction.d.ts +0 -11
  454. package/types/util/validation/isNamedFunction.d.ts +0 -5
  455. package/types/util/validation/isNamedFunctionArray.d.ts +0 -1
  456. package/types/util/validation/isObject.d.ts +0 -15
  457. package/types/util/validation/isPlainObject.d.ts +0 -6
  458. package/types/util/validation/isPrimitive.d.ts +0 -12
  459. package/types/util/validation/isString.d.ts +0 -1
  460. package/types/util/validation/isStringArray.d.ts +0 -4
  461. package/types/util/validation/isStringWithNoSpacesOrDashes.d.ts +0 -1
  462. package/types/util/validation/numbers/isInteger.d.ts +0 -13
  463. package/types/util/validation/numbers/isValidNumber.d.ts +0 -15
@@ -1 +0,0 @@
1
- {"version":3,"file":"strIsLowerCase.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string/strIsLowerCase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IAC1C,OAAO,KAAK,KAAK,KAAK,CAAC,WAAW,EAAE,CAAA;AACtC,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Checks if the given string is in upper case.
3
- * @param input The string to be checked.
4
- * @example ```ts
5
- * strIsUpperCase('HELLO');;
6
- * //=> true
7
- * strIsUpperCase('HEllo');;
8
- * //=> false
9
- * ```
10
- */
11
- export function strIsUpperCase(input) {
12
- return input === input.toUpperCase();
13
- }
14
- //# sourceMappingURL=strIsUpperCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strIsUpperCase.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string/strIsUpperCase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IAC1C,OAAO,KAAK,KAAK,KAAK,CAAC,WAAW,EAAE,CAAA;AACtC,CAAC"}
@@ -1,51 +0,0 @@
1
- import { strIsLowerCase } from './strIsLowerCase';
2
- import { strIsUpperCase } from './strIsUpperCase';
3
- /**
4
- * Returns an array of words in the string
5
- * @param word The camel case word to split.
6
- * @throws Throws an error if the input is not a string.
7
- * @param input input string
8
- * @example ```ts
9
- * strSplitCamelCase('someCamel10Case')
10
- * //=> ['some', 'Camel10', 'Case']
11
- * ```
12
- */
13
- export function strSplitCamelCase(word) {
14
- if (!word)
15
- return [];
16
- if (word.length <= 2)
17
- return [word];
18
- const result = [];
19
- const lastCharIndex = word.length - 1;
20
- let lastSplitIndex = 0;
21
- let foundCamelCase = false;
22
- for (let i = 1; i < word.length; i++) {
23
- if (isWordSplitIndex(word, i)) {
24
- const sub = word.substring(lastSplitIndex, i);
25
- if (sub) {
26
- result.push(sub);
27
- lastSplitIndex = i;
28
- foundCamelCase = true;
29
- }
30
- }
31
- if (foundCamelCase && i === lastCharIndex) {
32
- const sub = word.substring(lastSplitIndex);
33
- if (sub)
34
- result.push(sub);
35
- }
36
- }
37
- if (!foundCamelCase)
38
- result.push(word);
39
- return result;
40
- }
41
- const regInteger = /\d+/g;
42
- const regSpecial = /[^\w]+/g;
43
- function isWordSplitIndex(word, index) {
44
- return (strIsLowerCase(word[index - 1]) &&
45
- strIsUpperCase(word[index]) &&
46
- !regInteger.test(word[index - 1]) &&
47
- !regInteger.test(word[index]) &&
48
- !regSpecial.test(word[index - 1]) &&
49
- !regSpecial.test(word[index]));
50
- }
51
- //# sourceMappingURL=strSplitCamelCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strSplitCamelCase.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string/strSplitCamelCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD;;;;;;;;;GASG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAA;IACpB,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACnC,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;IACrC,IAAI,cAAc,GAAG,CAAC,CAAA;IACtB,IAAI,cAAc,GAAG,KAAK,CAAA;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;YAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;YAC7C,IAAI,GAAG,EAAE;gBACP,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBAChB,cAAc,GAAG,CAAC,CAAA;gBAClB,cAAc,GAAG,IAAI,CAAA;aACtB;SACF;QACD,IAAI,cAAc,IAAI,CAAC,KAAK,aAAa,EAAE;YACzC,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;YAC1C,IAAI,GAAG;gBAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SAC1B;KACF;IACD,IAAI,CAAC,cAAc;QAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACtC,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,GAAG,MAAM,CAAA;AACzB,MAAM,UAAU,GAAG,SAAS,CAAA;AAE5B,SAAS,gBAAgB,CAAC,IAAY,EAAE,KAAa;IACnD,OAAO,CACL,cAAc,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAC/B,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACjC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACjC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAC9B,CAAA;AACH,CAAC"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Creates a parser function that parses a string into a boolean.
3
- *
4
- * @param trueValues - An array of strings that are considered true. Defaults to ['TRUE', 'T', 'YES', 'Y', '1'].
5
- * @param falseValues - An array of strings that are considered false. Defaults to ['', 'FALSE', 'F', 'NO', 'N', '0'].
6
- */
7
- export function createBooleanParser(trueValues = ['TRUE', 'T', 'YES', 'Y', '1'], falseValues = ['', 'FALSE', 'F', 'NO', 'N', '0']) {
8
- return function parseBoolean(string) {
9
- string = string.toUpperCase();
10
- if (falseValues.includes(string))
11
- return false;
12
- if (trueValues.includes(string))
13
- return true;
14
- throw new TypeError(`The value ${string} is not a valid boolean value. Accepted values are: ${[...trueValues, ...falseValues].join(', ')}`);
15
- };
16
- }
17
- //# sourceMappingURL=createBooleanParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createBooleanParser.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/createBooleanParser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,aAAuB,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EACrD,cAAwB,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;IAE1D,OAAO,SAAS,YAAY,CAAC,MAAc;QACzC,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;QAC7B,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;YAAE,OAAO,KAAK,CAAA;QAC9C,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC;YAAE,OAAO,IAAI,CAAA;QAC5C,MAAM,IAAI,SAAS,CACjB,aAAa,MAAM,uDAAuD,CAAC,GAAG,UAAU,EAAE,GAAG,WAAW,CAAC,CAAC,IAAI,CAC5G,IAAI,CACL,EAAE,CACJ,CAAA;IACH,CAAC,CAAA;AACH,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Creates a parser function that parses a delimited string into a list of typed values.
3
- * The parser function takes a string and returns an array of typed values.
4
- *
5
- * @param delimiter - The delimiter used to split the string into individual values.
6
- * @param parser - The function used to parse each individual value in the string.
7
- * @returns A function that takes a delimited string and returns an array of typed values.
8
- * @template T - The type of the values in the list.
9
- */
10
- export function createTypedListParser(delimiter, parser) {
11
- return function parseList(string) {
12
- return string
13
- .split(delimiter)
14
- .map((str) => str.trim())
15
- .map(parser);
16
- };
17
- }
18
- //# sourceMappingURL=createTypedListParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createTypedListParser.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/createTypedListParser.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CAAI,SAAiB,EAAE,MAAwB;IAClF,OAAO,SAAS,SAAS,CAAC,MAAc;QACtC,OAAO,MAAM;aACV,KAAK,CAAC,SAAS,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACxB,GAAG,CAAC,MAAM,CAAC,CAAA;IAChB,CAAC,CAAA;AACH,CAAC"}
@@ -1,12 +0,0 @@
1
- import { createBooleanParser } from './createBooleanParser';
2
- /**
3
- * Parses a string into a boolean.
4
- *
5
- * Accepted values (case insensitive):
6
- * - true: 'TRUE', 'T', 'YES', 'Y', '1'
7
- * - false: 'FALSE', 'F', 'NO', 'N', '0'
8
- *
9
- * @throws Will throw an error if the input string is not a valid input.
10
- */
11
- export const parseBoolean = createBooleanParser(['TRUE', 'T', 'YES', 'Y', '1'], ['FALSE', 'F', 'NO', 'N', '0']);
12
- //# sourceMappingURL=parseBoolean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseBoolean.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/parseBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA"}
@@ -1,13 +0,0 @@
1
- export function parseInteger(string) {
2
- const errMsg = 'Not an integer. Got: ';
3
- if (string.includes('.'))
4
- throw new TypeError(errMsg + string);
5
- string = string.replace(/[^-0-9]/g, '');
6
- if (!string)
7
- throw new TypeError(errMsg + string);
8
- const int = parseInt(string);
9
- if (isNaN(int))
10
- throw new TypeError(errMsg + string);
11
- return int;
12
- }
13
- //# sourceMappingURL=parseInteger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseInteger.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/parseInteger.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,MAAM,MAAM,GAAG,uBAAuB,CAAA;IACtC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IAC9D,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAA;IACvC,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,IAAI,KAAK,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;IACpD,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -1,9 +0,0 @@
1
- export function parseNumber(string) {
2
- if (string.endsWith('Infinity'))
3
- return Number(string);
4
- string = string.replace(/[^-0-9.]/g, '');
5
- if (!string)
6
- return NaN;
7
- return Number(string);
8
- }
9
- //# sourceMappingURL=parseNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseNumber.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/parseNumber.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,MAAc;IACxC,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;IACtD,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;IACxC,IAAI,CAAC,MAAM;QAAE,OAAO,GAAG,CAAA;IACvB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA;AACvB,CAAC"}
@@ -1,4 +0,0 @@
1
- export function parseString(string) {
2
- return string;
3
- }
4
- //# sourceMappingURL=parseString.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseString.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/string-parsers/parseString.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAa,MAAc;IACpD,OAAO,MAAW,CAAA;AACpB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Any.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Any.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/Any.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DeepArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/DeepArray.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DeepObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/DeepObject.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=JsonArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/JsonArray.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /**
2
- * All supported defined (!= null) primitive types in JSON.
3
- */
4
- export {};
5
- //# sourceMappingURL=JsonDefinedPrimitive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonDefinedPrimitive.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/JsonDefinedPrimitive.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=JsonObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/JsonObject.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=JsonRawPrimitive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonRawPrimitive.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/JsonRawPrimitive.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=JsonValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonValue.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/JsonValue.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ObjectKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ObjectKey.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/ObjectKey.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TConstructor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TConstructor.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TConstructor.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TFunction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TFunction.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TFunction.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TFunctionNoNew.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TFunctionNoNew.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TFunctionNoNew.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TPlainObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TPlainObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TPlainObject.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TPrimitive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TPrimitive.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TPrimitive.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TStringParser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TStringParser.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TStringParser.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TValidator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TValidator.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/types/TValidator.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { ensureThat } from './ensureThat';
2
- import { funSetName } from '../function/funSetName';
3
- import { isNamedFunctionArray } from './isNamedFunctionArray';
4
- import { strFirstCharToUpperCase } from '../string/strFirstCharToUpperCase';
5
- /**
6
- * Creates a validator function that checks whether the input is an array where all elements are valid according to every validator provided.
7
- *
8
- * @param validators - An array of validator functions.
9
- * @param name - The name of the validator function. If not provided, the name will be derived from the validator functions.
10
- *
11
- * @throws TypeError - if no name is provided and not all validators are named functions.
12
- */
13
- export function createTypedArrayValidator(validators, name) {
14
- if (!name) {
15
- ensureThat(validators, isNamedFunctionArray);
16
- name = 'isArrayWhereEach' + validators.map((fun) => strFirstCharToUpperCase(fun.name)).join('And');
17
- }
18
- return funSetName(name, function (array) {
19
- return Array.isArray(array) && array.every((value) => validators.every((isValid) => isValid(value)));
20
- });
21
- }
22
- //# sourceMappingURL=createTypedArrayValidator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createTypedArrayValidator.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/createTypedArrayValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAE3E;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,UAAqC,EACrC,IAAa;IAEb,IAAI,CAAC,IAAI,EAAE;QACT,UAAU,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAA;QAC5C,IAAI,GAAG,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KACnG;IACD,OAAO,UAAU,CAAC,IAAI,EAAE,UAAU,KAAc;QAC9C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACtG,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,8 +0,0 @@
1
- export function ensureThat(value, validator, options = {}) {
2
- const result = validator(value, ...(options.args ?? []));
3
- if (result === true)
4
- return value;
5
- const message = typeof result === 'string' ? `${result}. Got: ${value}` : `Expected '${validator.name}'. Got: ${value}`;
6
- throw new (options.Err ?? Error)(message);
7
- }
8
- //# sourceMappingURL=ensureThat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensureThat.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/ensureThat.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,UAAU,CACxB,KAAQ,EACR,SAAqG,EACrG,UAAgD,EAAE;IAElD,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAA;IACxD,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,KAAK,CAAA;IACjC,MAAM,OAAO,GACX,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,MAAM,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,aAAa,SAAS,CAAC,IAAI,WAAW,KAAK,EAAE,CAAA;IACzG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAA;AAC3C,CAAC"}
@@ -1,2 +0,0 @@
1
- export const isArray = Array.isArray;
2
- //# sourceMappingURL=isArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isArray.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- export function isBoolean(value) {
2
- return typeof value === 'boolean';
3
- }
4
- //# sourceMappingURL=isBoolean.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBoolean.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isBoolean.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO,OAAO,KAAK,KAAK,SAAS,CAAA;AACnC,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Checks if the given value is a function.
3
- *
4
- * @example ```ts
5
- * isFunction(class {}); //=> true
6
- * isFunction(function () {}); //=> true
7
- * isFunction(() => {}); //=> true
8
- * ```
9
- */
10
- export function isFunction(value) {
11
- return typeof value === 'function' && value !== Function.prototype;
12
- }
13
- //# sourceMappingURL=isFunction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isFunction.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,OAAO,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,QAAQ,CAAC,SAAS,CAAA;AACpE,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Checks if the provided value is a named function.
3
- */
4
- export function isNamedFunction(func) {
5
- return typeof func === 'function' && !!func.name;
6
- }
7
- //# sourceMappingURL=isNamedFunction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNamedFunction.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isNamedFunction.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;AAClD,CAAC"}
@@ -1,5 +0,0 @@
1
- import { isNamedFunction } from './isNamedFunction';
2
- export function isNamedFunctionArray(array) {
3
- return Array.isArray(array) && array.every(isNamedFunction);
4
- }
5
- //# sourceMappingURL=isNamedFunctionArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isNamedFunctionArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isNamedFunctionArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;AAC7D,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Checks if the provided value is an object (null, arrays and functions not included).
3
- * @template T - The type of the value to check.
4
- * @param value The value to check.
5
- * @returns A boolean indicating whether the provided value is an object.
6
- * @example ```ts
7
- * isObject({});;
8
- * //=> true
9
- * isObject([1]);;
10
- * //=> false
11
- * isObject(123);;
12
- * //=> false
13
- * ```
14
- */
15
- export function isObject(value) {
16
- return value != null && typeof value === 'object' && !Array.isArray(value);
17
- }
18
- //# sourceMappingURL=isObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC5E,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Checks if the provided value is a plain object, i.e. an object created by the native base `Object` constructor.
3
- */
4
- export function isPlainObject(value) {
5
- if (Object.prototype.toString.call(value) !== '[object Object]')
6
- return false;
7
- if (!value?.constructor)
8
- return true;
9
- if (Object.prototype.toString.call(value.constructor.prototype) !== '[object Object]')
10
- return false;
11
- if (!Object.prototype.hasOwnProperty.call(value.constructor.prototype, 'isPrototypeOf'))
12
- return false;
13
- return true;
14
- }
15
- //# sourceMappingURL=isPlainObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPlainObject.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isPlainObject.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAc;IAEd,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,iBAAiB;QAAE,OAAO,KAAK,CAAA;IAC7E,IAAI,CAAC,KAAK,EAAE,WAAW;QAAE,OAAO,IAAI,CAAA;IACpC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,KAAK,iBAAiB;QAAE,OAAO,KAAK,CAAA;IACnG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,eAAe,CAAC;QAAE,OAAO,KAAK,CAAA;IACrG,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Checks if the provided value is a primitive type (null, undefined, bigint, boolean, number, string or symbol).
3
- * @param value The value to check.
4
- * @returns A boolean indicating whether the provided value is a primitive type.
5
- * @example
6
- * isPrimitive(123);
7
- * //=> true
8
- * isPrimitive({});
9
- * //=> false
10
- */
11
- export function isPrimitive(value) {
12
- return (typeof value !== 'object' && typeof value !== 'function') || value === null;
13
- }
14
- //# sourceMappingURL=isPrimitive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isPrimitive.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isPrimitive.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,IAAI,KAAK,KAAK,IAAI,CAAA;AACrF,CAAC"}
@@ -1,4 +0,0 @@
1
- export function isString(value) {
2
- return typeof value === 'string';
3
- }
4
- //# sourceMappingURL=isString.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isString.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isString.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAA;AAClC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { isString } from './isString';
2
- /**
3
- * Determine whether the input is a string array.
4
- */
5
- export function isStringArray(value) {
6
- return Array.isArray(value) && value.every((v) => isString(v));
7
- }
8
- //# sourceMappingURL=isStringArray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStringArray.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isStringArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;AAChE,CAAC"}
@@ -1,5 +0,0 @@
1
- import { isString } from './isString';
2
- export function isStringWithNoSpacesOrDashes(value) {
3
- return isString(value) && /^[^\s-]+$/i.test(value);
4
- }
5
- //# sourceMappingURL=isStringWithNoSpacesOrDashes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStringWithNoSpacesOrDashes.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/util/validation/isStringWithNoSpacesOrDashes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,UAAU,4BAA4B,CAAC,KAAc;IACzD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpD,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Checks if the provided number is an integer.
3
- * @remarks This function uses the built-in `Number.isInteger` method.
4
- * @param int The number to check.
5
- * @returns A boolean indicating whether the provided number is an integer.
6
- * @example ```ts
7
- * isInteger(5);
8
- * //=> true
9
- * isInteger(5.5);
10
- * //=> false
11
- * ```
12
- */
13
- export const isInteger = Number.isInteger;
14
- //# sourceMappingURL=isInteger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isInteger.js","sourceRoot":"","sources":["../../../../../../../packages/cli/src/util/validation/numbers/isInteger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Checks if the provided value is a valid number.
3
- * @remarks This function checks if the provided value is a finite number and not NaN.
4
- * @param number The value to check.
5
- * @returns A boolean indicating whether the provided value is a valid number.
6
- * @example ```ts
7
- * isValidNumber(123);
8
- * //=> true
9
- * isValidNumber(NaN);
10
- * //=> false
11
- * isValidNumber(Infinity);
12
- * //=> false
13
- * ```
14
- */
15
- export function isValidNumber(number) {
16
- return isFinite(number) && !isNaN(number);
17
- }
18
- //# sourceMappingURL=isValidNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValidNumber.js","sourceRoot":"","sources":["../../../../../../../packages/cli/src/util/validation/numbers/isValidNumber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAC3C,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export type ReturnTypesOfFunctionArray<Arr extends ((...args: any[]) => unknown)[]> = {
2
- [I in keyof Arr]: Arr[I] extends never | undefined ? string : ReturnType<Arr[I]>;
3
- };
4
- export type ReturnTypesOfFunctionMap<O extends Record<string, (...args: any[]) => unknown>> = {
5
- [K in keyof O]: O[K] extends never | undefined ? string : ReturnType<O[K]>;
6
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Returns the last element of an array.
3
- * Throws an error if the array is empty.
4
- * @template T The type of elements in the array.
5
- * @param array The array to get the last element from.
6
- * @returns The last element of the array.
7
- * @throws If the array is empty.
8
- * @example const numbers = [1, 2, 3, 4, 5];
9
- * const lastNumber = arrLast(numbers);
10
- * //=> 5
11
- */
12
- export declare function arrLast<T>(array: T[]): T;
@@ -1,15 +0,0 @@
1
- import type { ArrayPredicate } from './types/ArrayPredicate';
2
- /**
3
- * Checks if at least one element in the array satisfies the provided predicate.
4
- * @param predicate The predicate function to apply to each element.
5
- * @template T The type of elements in the input array.
6
- * @returns Returns `true` if at least one element in the array passes the test implemented by the provided function, otherwise `false`.
7
- * @param input The array to check.
8
- * @example ```ts
9
- * const numbers = [1, 2, 3, 4, 5];
10
- * const isEven = (num) => num % 2 === 0;
11
- * arrSome(numbers, isEven);
12
- * //=> true
13
- * ```
14
- */
15
- export declare function arrSome<T>(input: Array<T>, predicate: ArrayPredicate<T>): boolean;