@koine/utils 2.0.0-beta.75 → 2.0.0-beta.76

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 (510) hide show
  1. package/Defer.js +1 -11
  2. package/Emitter.js +1 -20
  3. package/accentSets.js +1 -30
  4. package/addOrReplaceAtIdx.js +1 -15
  5. package/areEqual.js +1 -46
  6. package/arrayFilterFalsy.js +1 -2
  7. package/arrayFindLastIndex.js +1 -9
  8. package/arrayOfAll.js +1 -2
  9. package/arraySum.js +1 -2
  10. package/arrayToLookup.js +1 -5
  11. package/arrayUniqueByProperties.js +1 -2
  12. package/buildUrlQueryString.js +1 -21
  13. package/capitalize.js +1 -3
  14. package/changeCaseCamel.js +1 -19
  15. package/changeCaseCapital.js +1 -12
  16. package/changeCaseConstant.js +1 -8
  17. package/changeCaseDot.js +1 -3
  18. package/changeCaseHelpers.js +1 -71
  19. package/changeCaseKebab.js +1 -3
  20. package/changeCaseNone.js +1 -8
  21. package/changeCasePascal.js +1 -11
  22. package/changeCasePascalSnake.js +1 -3
  23. package/changeCasePath.js +1 -3
  24. package/changeCaseSentence.js +1 -17
  25. package/changeCaseSnake.js +1 -3
  26. package/changeCaseTrain.js +1 -3
  27. package/chunkByChunks.js +1 -32
  28. package/chunkBySize.js +1 -8
  29. package/cjs/Defer.d.ts +6 -0
  30. package/cjs/Emitter.d.ts +7 -0
  31. package/cjs/accentSets.d.ts +3 -0
  32. package/cjs/addOrReplaceAtIdx.d.ts +2 -0
  33. package/cjs/areEqual.d.ts +4 -0
  34. package/cjs/arrayFilterFalsy.d.ts +2 -0
  35. package/cjs/arrayFindLastIndex.d.ts +2 -0
  36. package/cjs/arrayOfAll.d.ts +3 -0
  37. package/cjs/arraySum.d.ts +2 -0
  38. package/cjs/arrayToLookup.d.ts +2 -0
  39. package/cjs/arrayUniqueByProperties.d.ts +2 -0
  40. package/cjs/buildUrlQueryString.d.ts +3 -0
  41. package/cjs/capitalize.d.ts +2 -0
  42. package/cjs/changeCaseCamel.d.ts +3 -0
  43. package/cjs/changeCaseCapital.d.ts +3 -0
  44. package/cjs/changeCaseConstant.d.ts +3 -0
  45. package/cjs/changeCaseDot.d.ts +3 -0
  46. package/cjs/changeCaseHelpers.d.ts +14 -0
  47. package/cjs/changeCaseKebab.d.ts +3 -0
  48. package/cjs/changeCaseNone.d.ts +3 -0
  49. package/cjs/changeCasePascal.d.ts +3 -0
  50. package/cjs/changeCasePascalSnake.d.ts +3 -0
  51. package/cjs/changeCasePath.d.ts +3 -0
  52. package/cjs/changeCaseSentence.d.ts +3 -0
  53. package/cjs/changeCaseSnake.d.ts +3 -0
  54. package/cjs/changeCaseTrain.d.ts +3 -0
  55. package/cjs/chunkByChunks.d.ts +2 -0
  56. package/cjs/chunkBySize.d.ts +2 -0
  57. package/cjs/clamp.d.ts +2 -0
  58. package/cjs/clsx.d.ts +6 -0
  59. package/cjs/convertRange.d.ts +2 -0
  60. package/cjs/cookie.d.ts +15 -0
  61. package/cjs/createPalette.d.ts +10 -0
  62. package/cjs/debounce.d.ts +2 -0
  63. package/cjs/debouncePromise.d.ts +11 -0
  64. package/cjs/debounceRaf.d.ts +2 -0
  65. package/cjs/decode.d.ts +2 -0
  66. package/cjs/encode.d.ts +2 -0
  67. package/cjs/ensureInt.d.ts +2 -0
  68. package/cjs/env.d.ts +0 -0
  69. package/cjs/errorToString.d.ts +2 -0
  70. package/cjs/escapeRegExp.d.ts +2 -0
  71. package/cjs/findDuplicatedIndexes.d.ts +2 -0
  72. package/cjs/forin.d.ts +2 -0
  73. package/cjs/gbToBytes.d.ts +2 -0
  74. package/cjs/getEmptyArray.d.ts +2 -0
  75. package/cjs/getKeys.d.ts +2 -0
  76. package/cjs/getMediaQueryWidthResolvers.d.ts +10 -0
  77. package/cjs/getMediaQueryWidthTailwindScreens.d.ts +5 -0
  78. package/cjs/getNonce.d.ts +2 -0
  79. package/cjs/getParamAmong.d.ts +2 -0
  80. package/cjs/getParamAsInt.d.ts +2 -0
  81. package/cjs/getParamAsString.d.ts +2 -0
  82. package/cjs/getType.d.ts +10 -0
  83. package/cjs/getUrlHashParams.d.ts +2 -0
  84. package/cjs/getUrlHashPathname.d.ts +2 -0
  85. package/cjs/getUrlPathnameParts.d.ts +2 -0
  86. package/cjs/getUrlQueryParams.d.ts +2 -0
  87. package/cjs/imgEmptyPixel.d.ts +2 -0
  88. package/cjs/index.d.ts +158 -0
  89. package/cjs/invariant.d.ts +2 -0
  90. package/cjs/isAbsoluteUrl.d.ts +2 -0
  91. package/cjs/isAnyObject.d.ts +3 -0
  92. package/cjs/isArray.d.ts +2 -0
  93. package/cjs/isBlob.d.ts +2 -0
  94. package/cjs/isBoolean.d.ts +2 -0
  95. package/cjs/isBrowser.d.ts +2 -0
  96. package/cjs/isBrowserNow.d.ts +2 -0
  97. package/cjs/isDate.d.ts +2 -0
  98. package/cjs/isEmptyArray.d.ts +2 -0
  99. package/cjs/isEmptyObject.d.ts +6 -0
  100. package/cjs/isEmptyString.d.ts +2 -0
  101. package/cjs/isError.d.ts +2 -0
  102. package/cjs/isExternalUrl.d.ts +2 -0
  103. package/cjs/isFile.d.ts +2 -0
  104. package/cjs/isFloat.d.ts +2 -0
  105. package/cjs/isFormData.d.ts +2 -0
  106. package/cjs/isFullArray.d.ts +2 -0
  107. package/cjs/isFullObject.d.ts +3 -0
  108. package/cjs/isFullString.d.ts +2 -0
  109. package/cjs/isFunction.d.ts +3 -0
  110. package/cjs/isInt.d.ts +2 -0
  111. package/cjs/isMap.d.ts +2 -0
  112. package/cjs/isNaNValue.d.ts +2 -0
  113. package/cjs/isNegativeNumber.d.ts +2 -0
  114. package/cjs/isNull.d.ts +2 -0
  115. package/cjs/isNullOrUndefined.d.ts +2 -0
  116. package/cjs/isNumber.d.ts +2 -0
  117. package/cjs/isNumericLiteral.d.ts +2 -0
  118. package/cjs/isObject.d.ts +3 -0
  119. package/cjs/isObjectLike.d.ts +3 -0
  120. package/cjs/isObjectStringKeyed.d.ts +3 -0
  121. package/cjs/isOneOf.d.ts +6 -0
  122. package/cjs/isPlainObject.d.ts +3 -0
  123. package/cjs/isPositiveNumber.d.ts +2 -0
  124. package/cjs/isPrimitive.d.ts +2 -0
  125. package/cjs/isPromise.d.ts +2 -0
  126. package/cjs/isRegExp.d.ts +2 -0
  127. package/cjs/isServer.d.ts +2 -0
  128. package/cjs/isServerNow.d.ts +2 -0
  129. package/cjs/isSet.d.ts +2 -0
  130. package/cjs/isString.d.ts +2 -0
  131. package/cjs/isSymbol.d.ts +2 -0
  132. package/cjs/isType.d.ts +3 -0
  133. package/cjs/isUndefined.d.ts +2 -0
  134. package/cjs/isWeakMap.d.ts +2 -0
  135. package/cjs/isWeakSet.d.ts +2 -0
  136. package/cjs/kbToBytes.d.ts +2 -0
  137. package/cjs/location.d.ts +1 -0
  138. package/cjs/lowercase.d.ts +2 -0
  139. package/cjs/mapListBy.d.ts +2 -0
  140. package/cjs/matchSorter.d.ts +54 -0
  141. package/cjs/mbToBytes.d.ts +2 -0
  142. package/cjs/mergeObjects.d.ts +2 -0
  143. package/cjs/mergeUrlQueryParams.d.ts +3 -0
  144. package/cjs/moveSortableArrayItemByKey.d.ts +2 -0
  145. package/cjs/noop.d.ts +2 -0
  146. package/cjs/normaliseUrl.d.ts +2 -0
  147. package/cjs/normaliseUrlPathname.d.ts +2 -0
  148. package/cjs/objectFlat.d.ts +4 -0
  149. package/cjs/objectFlip.d.ts +2 -0
  150. package/cjs/objectMergeWithDefaults.d.ts +6 -0
  151. package/cjs/objectOmit.d.ts +2 -0
  152. package/cjs/objectPick.d.ts +2 -0
  153. package/cjs/objectSort.d.ts +4 -0
  154. package/cjs/objectSortByKeysMatching.d.ts +4 -0
  155. package/cjs/objectToArray.d.ts +2 -0
  156. package/cjs/package.json +10 -0
  157. package/cjs/parseCookie.d.ts +3 -0
  158. package/cjs/parseURL.d.ts +11 -0
  159. package/cjs/quaranteneProps.d.ts +7 -0
  160. package/cjs/randomInt.d.ts +2 -0
  161. package/cjs/randomKey.d.ts +2 -0
  162. package/cjs/readCookie.d.ts +3 -0
  163. package/cjs/removeAccents.d.ts +3 -0
  164. package/cjs/removeCookie.d.ts +3 -0
  165. package/cjs/removeDuplicates.d.ts +2 -0
  166. package/cjs/removeDuplicatesByKey.d.ts +2 -0
  167. package/cjs/removeDuplicatesComparing.d.ts +2 -0
  168. package/cjs/removeIndexesFromArray.d.ts +2 -0
  169. package/cjs/removeTrailingSlash.d.ts +2 -0
  170. package/cjs/removeUrlQueryParams.d.ts +2 -0
  171. package/cjs/render.d.ts +13 -0
  172. package/cjs/round.d.ts +3 -0
  173. package/cjs/roundTo.d.ts +2 -0
  174. package/cjs/serializeCookie.d.ts +3 -0
  175. package/cjs/setCookie.d.ts +3 -0
  176. package/cjs/shuffle.d.ts +2 -0
  177. package/cjs/slugify.d.ts +2 -0
  178. package/cjs/split.d.ts +3 -0
  179. package/cjs/splitReverse.d.ts +5 -0
  180. package/cjs/swapMap.d.ts +2 -0
  181. package/cjs/throttle.d.ts +3 -0
  182. package/cjs/titleCase.d.ts +2 -0
  183. package/cjs/toNumber.d.ts +2 -0
  184. package/cjs/toRgba.d.ts +2 -0
  185. package/cjs/transformToUrlPathname.d.ts +2 -0
  186. package/cjs/truncate.d.ts +2 -0
  187. package/cjs/tryUntil.d.ts +2 -0
  188. package/cjs/types.d.ts +11 -0
  189. package/cjs/uid.d.ts +2 -0
  190. package/cjs/updateLinkParams.d.ts +3 -0
  191. package/cjs/updateUrlQueryParams.d.ts +3 -0
  192. package/cjs/uppercase.d.ts +2 -0
  193. package/cjs/utils/Defer.js +1 -0
  194. package/cjs/utils/Emitter.js +1 -0
  195. package/cjs/utils/accentSets.js +1 -0
  196. package/cjs/utils/addOrReplaceAtIdx.js +1 -0
  197. package/cjs/utils/areEqual.js +1 -0
  198. package/cjs/utils/arrayFilterFalsy.js +1 -0
  199. package/cjs/utils/arrayFindLastIndex.js +1 -0
  200. package/cjs/utils/arrayOfAll.js +1 -0
  201. package/cjs/utils/arraySum.js +1 -0
  202. package/cjs/utils/arrayToLookup.js +1 -0
  203. package/cjs/utils/arrayUniqueByProperties.js +1 -0
  204. package/cjs/utils/buildUrlQueryString.js +1 -0
  205. package/cjs/utils/capitalize.js +1 -0
  206. package/cjs/utils/changeCaseCamel.js +1 -0
  207. package/cjs/utils/changeCaseCapital.js +1 -0
  208. package/cjs/utils/changeCaseConstant.js +1 -0
  209. package/cjs/utils/changeCaseDot.js +1 -0
  210. package/cjs/utils/changeCaseHelpers.js +1 -0
  211. package/cjs/utils/changeCaseKebab.js +1 -0
  212. package/cjs/utils/changeCaseNone.js +1 -0
  213. package/cjs/utils/changeCasePascal.js +1 -0
  214. package/cjs/utils/changeCasePascalSnake.js +1 -0
  215. package/cjs/utils/changeCasePath.js +1 -0
  216. package/cjs/utils/changeCaseSentence.js +1 -0
  217. package/cjs/utils/changeCaseSnake.js +1 -0
  218. package/cjs/utils/changeCaseTrain.js +1 -0
  219. package/cjs/utils/chunkByChunks.js +1 -0
  220. package/cjs/utils/chunkBySize.js +1 -0
  221. package/cjs/utils/clamp.js +1 -0
  222. package/cjs/utils/clsx.js +7 -0
  223. package/cjs/utils/convertRange.js +1 -0
  224. package/cjs/utils/cookie.js +1 -0
  225. package/cjs/utils/createPalette.js +1 -0
  226. package/cjs/utils/debounce.js +1 -0
  227. package/cjs/utils/debouncePromise.js +7 -0
  228. package/cjs/utils/debounceRaf.js +7 -0
  229. package/cjs/utils/decode.js +1 -0
  230. package/cjs/utils/encode.js +1 -0
  231. package/cjs/utils/ensureInt.js +1 -0
  232. package/cjs/utils/env.js +0 -0
  233. package/cjs/utils/errorToString.js +1 -0
  234. package/cjs/utils/escapeRegExp.js +1 -0
  235. package/cjs/utils/findDuplicatedIndexes.js +1 -0
  236. package/cjs/utils/forin.js +1 -0
  237. package/cjs/utils/gbToBytes.js +1 -0
  238. package/cjs/utils/getEmptyArray.js +1 -0
  239. package/cjs/utils/getKeys.js +1 -0
  240. package/cjs/utils/getMediaQueryWidthResolvers.js +1 -0
  241. package/cjs/utils/getMediaQueryWidthTailwindScreens.js +1 -0
  242. package/cjs/utils/getNonce.js +1 -0
  243. package/cjs/utils/getParamAmong.js +1 -0
  244. package/cjs/utils/getParamAsInt.js +1 -0
  245. package/cjs/utils/getParamAsString.js +1 -0
  246. package/cjs/utils/getType.js +1 -0
  247. package/cjs/utils/getUrlHashParams.js +1 -0
  248. package/cjs/utils/getUrlHashPathname.js +1 -0
  249. package/cjs/utils/getUrlPathnameParts.js +1 -0
  250. package/cjs/utils/getUrlQueryParams.js +1 -0
  251. package/cjs/utils/imgEmptyPixel.js +1 -0
  252. package/cjs/utils/index.js +1 -0
  253. package/cjs/utils/invariant.js +1 -0
  254. package/cjs/utils/isAbsoluteUrl.js +1 -0
  255. package/cjs/utils/isAnyObject.js +1 -0
  256. package/cjs/utils/isArray.js +1 -0
  257. package/cjs/utils/isBlob.js +1 -0
  258. package/cjs/utils/isBoolean.js +1 -0
  259. package/cjs/utils/isBrowser.js +1 -0
  260. package/cjs/utils/isBrowserNow.js +1 -0
  261. package/cjs/utils/isDate.js +1 -0
  262. package/cjs/utils/isEmptyArray.js +1 -0
  263. package/cjs/utils/isEmptyObject.js +1 -0
  264. package/cjs/utils/isEmptyString.js +1 -0
  265. package/cjs/utils/isError.js +1 -0
  266. package/cjs/utils/isExternalUrl.js +1 -0
  267. package/cjs/utils/isFile.js +1 -0
  268. package/cjs/utils/isFloat.js +1 -0
  269. package/cjs/utils/isFormData.js +1 -0
  270. package/cjs/utils/isFullArray.js +1 -0
  271. package/cjs/utils/isFullObject.js +1 -0
  272. package/cjs/utils/isFullString.js +1 -0
  273. package/cjs/utils/isFunction.js +1 -0
  274. package/cjs/utils/isInt.js +1 -0
  275. package/cjs/utils/isMap.js +1 -0
  276. package/cjs/utils/isNaNValue.js +1 -0
  277. package/cjs/utils/isNegativeNumber.js +1 -0
  278. package/cjs/utils/isNull.js +1 -0
  279. package/cjs/utils/isNullOrUndefined.js +1 -0
  280. package/cjs/utils/isNumber.js +1 -0
  281. package/cjs/utils/isNumericLiteral.js +1 -0
  282. package/cjs/utils/isObject.js +1 -0
  283. package/cjs/utils/isObjectLike.js +1 -0
  284. package/cjs/utils/isObjectStringKeyed.js +1 -0
  285. package/cjs/utils/isOneOf.js +1 -0
  286. package/cjs/utils/isPlainObject.js +1 -0
  287. package/cjs/utils/isPositiveNumber.js +1 -0
  288. package/cjs/utils/isPrimitive.js +1 -0
  289. package/cjs/utils/isPromise.js +1 -0
  290. package/cjs/utils/isRegExp.js +1 -0
  291. package/cjs/utils/isServer.js +1 -0
  292. package/cjs/utils/isServerNow.js +1 -0
  293. package/cjs/utils/isSet.js +1 -0
  294. package/cjs/utils/isString.js +1 -0
  295. package/cjs/utils/isSymbol.js +1 -0
  296. package/cjs/utils/isType.js +1 -0
  297. package/cjs/utils/isUndefined.js +1 -0
  298. package/cjs/utils/isWeakMap.js +1 -0
  299. package/cjs/utils/isWeakSet.js +1 -0
  300. package/cjs/utils/kbToBytes.js +1 -0
  301. package/cjs/utils/location.js +1 -0
  302. package/cjs/utils/lowercase.js +1 -0
  303. package/cjs/utils/mapListBy.js +1 -0
  304. package/cjs/utils/matchSorter.js +16 -0
  305. package/cjs/utils/mbToBytes.js +1 -0
  306. package/cjs/utils/mergeObjects.js +1 -0
  307. package/cjs/utils/mergeUrlQueryParams.js +1 -0
  308. package/cjs/utils/moveSortableArrayItemByKey.js +1 -0
  309. package/cjs/utils/noop.js +1 -0
  310. package/cjs/utils/normaliseUrl.js +1 -0
  311. package/cjs/utils/normaliseUrlPathname.js +1 -0
  312. package/cjs/utils/objectFlat.js +1 -0
  313. package/cjs/utils/objectFlip.js +1 -0
  314. package/cjs/utils/objectMergeWithDefaults.js +1 -0
  315. package/cjs/utils/objectOmit.js +1 -0
  316. package/cjs/utils/objectPick.js +1 -0
  317. package/cjs/utils/objectSort.js +1 -0
  318. package/cjs/utils/objectSortByKeysMatching.js +1 -0
  319. package/cjs/utils/objectToArray.js +1 -0
  320. package/cjs/utils/parseCookie.js +1 -0
  321. package/cjs/utils/parseURL.js +1 -0
  322. package/cjs/utils/quaranteneProps.js +1 -0
  323. package/cjs/utils/randomInt.js +1 -0
  324. package/cjs/utils/randomKey.js +1 -0
  325. package/cjs/utils/readCookie.js +1 -0
  326. package/cjs/utils/removeAccents.js +1 -0
  327. package/cjs/utils/removeCookie.js +1 -0
  328. package/cjs/utils/removeDuplicates.js +1 -0
  329. package/cjs/utils/removeDuplicatesByKey.js +1 -0
  330. package/cjs/utils/removeDuplicatesComparing.js +1 -0
  331. package/cjs/utils/removeIndexesFromArray.js +1 -0
  332. package/cjs/utils/removeTrailingSlash.js +1 -0
  333. package/cjs/utils/removeUrlQueryParams.js +1 -0
  334. package/cjs/utils/render.js +1 -0
  335. package/cjs/utils/round.js +1 -0
  336. package/cjs/utils/roundTo.js +1 -0
  337. package/cjs/utils/serializeCookie.js +1 -0
  338. package/cjs/utils/setCookie.js +1 -0
  339. package/cjs/utils/shuffle.js +1 -0
  340. package/cjs/utils/slugify.js +1 -0
  341. package/cjs/utils/split.js +1 -0
  342. package/cjs/utils/splitReverse.js +1 -0
  343. package/cjs/utils/swapMap.js +1 -0
  344. package/cjs/utils/throttle.js +1 -0
  345. package/cjs/utils/titleCase.js +6 -0
  346. package/cjs/utils/toNumber.js +1 -0
  347. package/cjs/utils/toRgba.js +1 -0
  348. package/cjs/utils/transformToUrlPathname.js +1 -0
  349. package/cjs/utils/truncate.js +1 -0
  350. package/cjs/utils/tryUntil.js +1 -0
  351. package/cjs/utils/types.js +1 -0
  352. package/cjs/utils/uid.js +1 -0
  353. package/cjs/utils/updateLinkParams.js +1 -0
  354. package/cjs/utils/updateUrlQueryParams.js +1 -0
  355. package/cjs/utils/uppercase.js +1 -0
  356. package/cjs/utils/uuid.js +1 -0
  357. package/cjs/utils/uuidNumeric.js +1 -0
  358. package/cjs/utils/wait.js +1 -0
  359. package/cjs/utils/without.js +0 -0
  360. package/cjs/uuid.d.ts +2 -0
  361. package/cjs/uuidNumeric.d.ts +2 -0
  362. package/cjs/wait.d.ts +2 -0
  363. package/cjs/without.d.ts +0 -0
  364. package/clamp.js +1 -2
  365. package/clsx.js +7 -40
  366. package/convertRange.js +1 -2
  367. package/cookie.js +1 -1
  368. package/createPalette.js +1 -12
  369. package/debounce.js +1 -18
  370. package/debouncePromise.js +7 -52
  371. package/debounceRaf.js +7 -13
  372. package/decode.js +1 -2
  373. package/encode.js +1 -2
  374. package/ensureInt.js +1 -2
  375. package/env.js +0 -1
  376. package/errorToString.js +1 -3
  377. package/escapeRegExp.js +1 -2
  378. package/findDuplicatedIndexes.js +1 -11
  379. package/forin.js +1 -6
  380. package/gbToBytes.js +1 -2
  381. package/getEmptyArray.js +1 -5
  382. package/getKeys.js +1 -2
  383. package/getMediaQueryWidthResolvers.js +1 -42
  384. package/getMediaQueryWidthTailwindScreens.js +1 -27
  385. package/getNonce.js +1 -3
  386. package/getParamAmong.js +1 -6
  387. package/getParamAsInt.js +1 -9
  388. package/getParamAsString.js +1 -3
  389. package/getType.js +1 -2
  390. package/getUrlHashParams.js +1 -9
  391. package/getUrlHashPathname.js +1 -2
  392. package/getUrlPathnameParts.js +1 -6
  393. package/getUrlQueryParams.js +1 -22
  394. package/imgEmptyPixel.js +1 -2
  395. package/index.js +1 -156
  396. package/invariant.js +1 -17
  397. package/isAbsoluteUrl.js +1 -3
  398. package/isAnyObject.js +1 -3
  399. package/isArray.js +1 -3
  400. package/isBlob.js +1 -3
  401. package/isBoolean.js +1 -3
  402. package/isBrowser.js +1 -2
  403. package/isBrowserNow.js +1 -3
  404. package/isDate.js +1 -3
  405. package/isEmptyArray.js +1 -3
  406. package/isEmptyObject.js +1 -3
  407. package/isEmptyString.js +1 -2
  408. package/isError.js +1 -3
  409. package/isExternalUrl.js +1 -11
  410. package/isFile.js +1 -3
  411. package/isFloat.js +1 -3
  412. package/isFormData.js +1 -3
  413. package/isFullArray.js +1 -3
  414. package/isFullObject.js +1 -3
  415. package/isFullString.js +1 -3
  416. package/isFunction.js +1 -2
  417. package/isInt.js +1 -3
  418. package/isMap.js +1 -3
  419. package/isNaNValue.js +1 -3
  420. package/isNegativeNumber.js +1 -3
  421. package/isNull.js +1 -3
  422. package/isNullOrUndefined.js +1 -5
  423. package/isNumber.js +1 -3
  424. package/isNumericLiteral.js +1 -2
  425. package/isObject.js +1 -3
  426. package/isObjectLike.js +1 -3
  427. package/isObjectStringKeyed.js +1 -3
  428. package/isOneOf.js +1 -8
  429. package/isPlainObject.js +1 -6
  430. package/isPositiveNumber.js +1 -3
  431. package/isPrimitive.js +1 -13
  432. package/isPromise.js +1 -3
  433. package/isRegExp.js +1 -3
  434. package/isServer.js +1 -3
  435. package/isServerNow.js +1 -3
  436. package/isSet.js +1 -3
  437. package/isString.js +1 -3
  438. package/isSymbol.js +1 -3
  439. package/isType.js +1 -13
  440. package/isUndefined.js +1 -3
  441. package/isWeakMap.js +1 -3
  442. package/isWeakSet.js +1 -3
  443. package/kbToBytes.js +1 -2
  444. package/location.js +1 -1
  445. package/lowercase.js +1 -2
  446. package/mapListBy.js +1 -5
  447. package/matchSorter.js +16 -239
  448. package/mbToBytes.js +1 -2
  449. package/mergeObjects.js +1 -29
  450. package/mergeUrlQueryParams.js +1 -14
  451. package/moveSortableArrayItemByKey.js +1 -9
  452. package/noop.js +1 -2
  453. package/normaliseUrl.js +1 -3
  454. package/normaliseUrlPathname.js +1 -3
  455. package/objectFlat.js +1 -17
  456. package/objectFlip.js +1 -5
  457. package/objectMergeWithDefaults.js +1 -21
  458. package/objectOmit.js +1 -8
  459. package/objectPick.js +1 -9
  460. package/objectSort.js +1 -2
  461. package/objectSortByKeysMatching.js +1 -3
  462. package/objectToArray.js +1 -2
  463. package/package.json +173 -17
  464. package/parseCookie.js +1 -33
  465. package/parseURL.js +1 -14
  466. package/quaranteneProps.js +1 -16
  467. package/randomInt.js +1 -2
  468. package/randomKey.js +1 -5
  469. package/readCookie.js +1 -34
  470. package/removeAccents.js +1 -10
  471. package/removeCookie.js +1 -10
  472. package/removeDuplicates.js +1 -2
  473. package/removeDuplicatesByKey.js +1 -13
  474. package/removeDuplicatesComparing.js +1 -7
  475. package/removeIndexesFromArray.js +1 -10
  476. package/removeTrailingSlash.js +1 -2
  477. package/removeUrlQueryParams.js +1 -14
  478. package/render.js +1 -113
  479. package/round.js +1 -4
  480. package/roundTo.js +1 -11
  481. package/serializeCookie.js +1 -69
  482. package/setCookie.js +1 -45
  483. package/shuffle.js +1 -17
  484. package/slugify.js +1 -11
  485. package/split.js +1 -2
  486. package/splitReverse.js +1 -2
  487. package/swapMap.js +1 -8
  488. package/throttle.js +1 -15
  489. package/titleCase.js +6 -4
  490. package/toNumber.js +1 -3
  491. package/toRgba.js +1 -8
  492. package/transformToUrlPathname.js +1 -5
  493. package/truncate.js +1 -6
  494. package/tryUntil.js +1 -15
  495. package/types.js +1 -1
  496. package/uid.js +1 -6
  497. package/updateLinkParams.js +1 -7
  498. package/updateUrlQueryParams.js +1 -11
  499. package/uppercase.js +1 -2
  500. package/uuid.js +1 -5
  501. package/uuidNumeric.js +1 -2
  502. package/wait.js +1 -2
  503. package/without.js +0 -1
  504. package/README.md +0 -48
  505. package/index.cjs.d.ts +0 -1
  506. package/index.cjs.default.js +0 -1
  507. package/index.cjs.js +0 -497
  508. package/index.cjs.mjs +0 -2
  509. package/index.esm.js +0 -340
  510. package/typings.d.ts +0 -37
package/cjs/clsx.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
2
+ type ClassDictionary = Record<string, any>;
3
+ type ClassArray = ClassValue[];
4
+ export type ClsxClassValue = ClassValue;
5
+ export declare let clsx: (...args: ClassValue[]) => string;
6
+ export default clsx;
@@ -0,0 +1,2 @@
1
+ export declare let convertRange: (num: number, r1: number[], r2: number[]) => number;
2
+ export default convertRange;
@@ -0,0 +1,15 @@
1
+ type CookieAttributes = {
2
+ expires?: number | Date | undefined;
3
+ path?: string | undefined;
4
+ domain?: string | undefined;
5
+ secure?: boolean | undefined;
6
+ sameSite?: "strict" | "Strict" | "lax" | "Lax" | "none" | "None" | undefined;
7
+ };
8
+ export type CookieAttributesServer = CookieAttributes & {
9
+ maxAge?: number;
10
+ httpOnly?: boolean;
11
+ encode?: (input: string) => string;
12
+ decode?: (input: string) => string;
13
+ };
14
+ export type CookieAttributesClient = CookieAttributes;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ type PaletteShade = readonly [number, string];
2
+ type PaletteShades = readonly PaletteShade[];
3
+ type PaletteMapPair<T extends PaletteShade> = {
4
+ [Pair in T as `${Pair[0]}`]: Pair[1];
5
+ };
6
+ type PaletteMap<T extends PaletteShades> = {
7
+ [PS in T[number] as keyof PaletteMapPair<PS>]: PaletteMapPair<PS>[keyof PaletteMapPair<PS>];
8
+ };
9
+ export declare let createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
10
+ export default createPalette;
@@ -0,0 +1,2 @@
1
+ export declare let debounce: <T extends (...args: any[]) => any>(fn: T, wait?: number, immediate?: boolean) => (this: unknown, ...args: Parameters<T>) => void;
2
+ export default debounce;
@@ -0,0 +1,11 @@
1
+ export type DebounceOptions<Result> = {
2
+ isImmediate?: boolean;
3
+ maxWait?: number;
4
+ callback?: (data: Result) => void;
5
+ };
6
+ export interface DebouncedFunction<Args extends any[], F extends (...args: Args) => any> {
7
+ (this: ThisParameterType<F>, ...args: Args & Parameters<F>): Promise<ReturnType<F>>;
8
+ cancel: (reason?: any) => void;
9
+ }
10
+ export declare let debouncePromise: <Args extends any[], F extends (...args: Args) => any>(func: F, waitMilliseconds?: number, options?: DebounceOptions<ReturnType<F>>) => DebouncedFunction<Args, F>;
11
+ export default debouncePromise;
@@ -0,0 +1,2 @@
1
+ export declare function debounceRaf<T extends (...args: any[]) => any>(this: unknown, fn: T): (this: unknown, ...args: Parameters<T>) => void;
2
+ export default debounceRaf;
@@ -0,0 +1,2 @@
1
+ export declare let decode: <TReturn extends string>(str: string) => TReturn;
2
+ export default decode;
@@ -0,0 +1,2 @@
1
+ export declare let encode: <TReturn extends string>(str: string) => TReturn;
2
+ export default encode;
@@ -0,0 +1,2 @@
1
+ export declare let ensureInt: (input: string | number) => number;
2
+ export default ensureInt;
package/cjs/env.d.ts ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ export declare let errorToString: (e: unknown) => string;
2
+ export default errorToString;
@@ -0,0 +1,2 @@
1
+ export declare let escapeRegExp: (text: string) => string;
2
+ export default escapeRegExp;
@@ -0,0 +1,2 @@
1
+ export declare let findDuplicatedIndexes: (arr: any[]) => Record<number, true>;
2
+ export default findDuplicatedIndexes;
package/cjs/forin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare let forin: <T>(object: T, cb: <K extends keyof T>(key: K, value: T[K]) => void) => void;
2
+ export default forin;
@@ -0,0 +1,2 @@
1
+ export declare let gbToBytes: (bytes: number) => number;
2
+ export default gbToBytes;
@@ -0,0 +1,2 @@
1
+ export declare let getEmptyArray: (length: number | string) => undefined[];
2
+ export default getEmptyArray;
@@ -0,0 +1,2 @@
1
+ export declare let getKeys: <T extends object>(obj: T) => (keyof T)[];
2
+ export default getKeys;
@@ -0,0 +1,10 @@
1
+ export type GetMediaQueryWidthResolversBreakpoints = Record<string, number>;
2
+ export declare let getMediaQueryWidthResolvers: <TBreakpointsConfig extends GetMediaQueryWidthResolversBreakpoints>(customBreakpoints: TBreakpointsConfig) => {
3
+ max: (br: Extract<keyof TBreakpointsConfig, string>) => string;
4
+ min: (br: Extract<keyof TBreakpointsConfig, string>) => string;
5
+ down: (br: Extract<keyof TBreakpointsConfig, string>) => string;
6
+ up: (br: Extract<keyof TBreakpointsConfig, string>) => string;
7
+ between: (br1: Extract<keyof TBreakpointsConfig, string>, br2?: Extract<keyof TBreakpointsConfig, string> | undefined) => string;
8
+ only: (br: Extract<keyof TBreakpointsConfig, string>) => string;
9
+ };
10
+ export default getMediaQueryWidthResolvers;
@@ -0,0 +1,5 @@
1
+ import { type GetMediaQueryWidthResolversBreakpoints } from "./getMediaQueryWidthResolvers";
2
+ export declare let getMediaQueryWidthTailwindScreens: (breakpoints: GetMediaQueryWidthResolversBreakpoints) => Record<string, {
3
+ raw: string;
4
+ }>;
5
+ export default getMediaQueryWidthTailwindScreens;
@@ -0,0 +1,2 @@
1
+ export declare let getNonce: () => string | null;
2
+ export default getNonce;
@@ -0,0 +1,2 @@
1
+ export declare let getParamAmong: <T extends string[]>(raw?: string | string[], allowedValues?: T) => T[number] | null;
2
+ export default getParamAmong;
@@ -0,0 +1,2 @@
1
+ export declare let getParamAsInt: <TFallback extends number | null | undefined>(raw?: string | string[], fallback?: TFallback) => number | TFallback;
2
+ export default getParamAsInt;
@@ -0,0 +1,2 @@
1
+ export declare let getParamAsString: (raw?: string | string[]) => string;
2
+ export default getParamAsString;
@@ -0,0 +1,10 @@
1
+ export type AnyFunction = (...args: any[]) => any;
2
+ export type AnyAsyncFunction = (...args: any[]) => Promise<any>;
3
+ export type AnyClass = new (...args: any[]) => any;
4
+ export type PlainObject = Record<string | number | symbol, any>;
5
+ export type PlainObjectStringKeyed = {
6
+ [key: string]: any;
7
+ };
8
+ export type TypeGuard<A, B extends A> = (payload: A) => payload is B;
9
+ export declare let getType: (payload: any) => string;
10
+ export default getType;
@@ -0,0 +1,2 @@
1
+ export declare let getUrlHashParams: <T extends Record<string | number, unknown>>(hash?: string) => T;
2
+ export default getUrlHashParams;
@@ -0,0 +1,2 @@
1
+ export declare let getUrlHashPathname: (hash?: string) => string;
2
+ export default getUrlHashPathname;
@@ -0,0 +1,2 @@
1
+ export declare let getUrlPathnameParts: (pathname?: string) => string[];
2
+ export default getUrlPathnameParts;
@@ -0,0 +1,2 @@
1
+ export declare let getUrlQueryParams: <T extends Record<string | number, unknown>>(url?: string) => T;
2
+ export default getUrlQueryParams;
@@ -0,0 +1,2 @@
1
+ export declare let imgEmptyPixel: string;
2
+ export default imgEmptyPixel;
package/cjs/index.d.ts ADDED
@@ -0,0 +1,158 @@
1
+ export { accentsSets, type AccentsSet } from "./accentSets";
2
+ export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx";
3
+ export { areEqual } from "./areEqual";
4
+ export { arrayFilterFalsy } from "./arrayFilterFalsy";
5
+ export { arrayFindLastIndex } from "./arrayFindLastIndex";
6
+ export { arrayOfAll, type ArrayOfAll } from "./arrayOfAll";
7
+ export { arraySum } from "./arraySum";
8
+ export { arrayToLookup } from "./arrayToLookup";
9
+ export { arrayUniqueByProperties } from "./arrayUniqueByProperties";
10
+ export { buildUrlQueryString } from "./buildUrlQueryString";
11
+ export { capitalize } from "./capitalize";
12
+ export { changeCaseCamel } from "./changeCaseCamel";
13
+ export { changeCaseConstant } from "./changeCaseConstant";
14
+ export { changeCaseDot } from "./changeCaseDot";
15
+ export { changeCaseKebab } from "./changeCaseKebab";
16
+ export { changeCasePascal } from "./changeCasePascal";
17
+ export { changeCasePath } from "./changeCasePath";
18
+ export { changeCaseSentence } from "./changeCaseSentence";
19
+ export { changeCaseSnake } from "./changeCaseSnake";
20
+ export { changeCaseTrain } from "./changeCaseTrain";
21
+ export { chunkByChunks } from "./chunkByChunks";
22
+ export { chunkBySize } from "./chunkBySize";
23
+ export { clamp } from "./clamp";
24
+ export { clsx, type ClsxClassValue } from "./clsx";
25
+ export { convertRange } from "./convertRange";
26
+ export { type CookieAttributesClient, type CookieAttributesServer, } from "./cookie";
27
+ export { createPalette } from "./createPalette";
28
+ export { debounce } from "./debounce";
29
+ export { debounceRaf } from "./debounceRaf";
30
+ export { debouncePromise, type DebounceOptions, type DebouncedFunction, } from "./debouncePromise";
31
+ export { decode } from "./decode";
32
+ export { Defer, type Deferred } from "./Defer";
33
+ export { Emitter } from "./Emitter";
34
+ export { encode } from "./encode";
35
+ export { ensureInt } from "./ensureInt";
36
+ export { errorToString } from "./errorToString";
37
+ export { escapeRegExp } from "./escapeRegExp";
38
+ export { findDuplicatedIndexes } from "./findDuplicatedIndexes";
39
+ export { forin } from "./forin";
40
+ export { gbToBytes } from "./gbToBytes";
41
+ export { getEmptyArray } from "./getEmptyArray";
42
+ export { getKeys } from "./getKeys";
43
+ export { type GetMediaQueryWidthResolversBreakpoints, getMediaQueryWidthResolvers, } from "./getMediaQueryWidthResolvers";
44
+ export { getMediaQueryWidthTailwindScreens } from "./getMediaQueryWidthTailwindScreens";
45
+ export { getNonce } from "./getNonce";
46
+ export { getParamAmong } from "./getParamAmong";
47
+ export { getParamAsInt } from "./getParamAsInt";
48
+ export { getParamAsString } from "./getParamAsString";
49
+ export { type AnyClass, type AnyAsyncFunction, type AnyFunction, type PlainObject, type TypeGuard, getType, } from "./getType";
50
+ export { getUrlHashParams } from "./getUrlHashParams";
51
+ export { getUrlHashPathname } from "./getUrlHashPathname";
52
+ export { getUrlPathnameParts } from "./getUrlPathnameParts";
53
+ export { getUrlQueryParams } from "./getUrlQueryParams";
54
+ export { imgEmptyPixel } from "./imgEmptyPixel";
55
+ export { isAbsoluteUrl } from "./isAbsoluteUrl";
56
+ export { isAnyObject } from "./isAnyObject";
57
+ export { isArray } from "./isArray";
58
+ export { isBlob } from "./isBlob";
59
+ export { isBoolean } from "./isBoolean";
60
+ export { isBrowser } from "./isBrowser";
61
+ export { isBrowserNow } from "./isBrowserNow";
62
+ export { isDate } from "./isDate";
63
+ export { isEmptyArray } from "./isEmptyArray";
64
+ export { isEmptyObject } from "./isEmptyObject";
65
+ export { isEmptyString } from "./isEmptyString";
66
+ export { isError } from "./isError";
67
+ export { isExternalUrl } from "./isExternalUrl";
68
+ export { isFile } from "./isFile";
69
+ export { isFloat } from "./isFloat";
70
+ export { isFormData } from "./isFormData";
71
+ export { isFullArray } from "./isFullArray";
72
+ export { isFullObject } from "./isFullObject";
73
+ export { isFullString } from "./isFullString";
74
+ export { isFunction } from "./isFunction";
75
+ export { isInt } from "./isInt";
76
+ export { isMap } from "./isMap";
77
+ export { isNaNValue } from "./isNaNValue";
78
+ export { isNegativeNumber } from "./isNegativeNumber";
79
+ export { isNullOrUndefined } from "./isNullOrUndefined";
80
+ export { isNull } from "./isNull";
81
+ export { isNumber } from "./isNumber";
82
+ export { isNumericLiteral } from "./isNumericLiteral";
83
+ export { isObject } from "./isObject";
84
+ export { isObjectLike } from "./isObjectLike";
85
+ export { isObjectStringKeyed } from "./isObjectStringKeyed";
86
+ export { isOneOf } from "./isOneOf";
87
+ export { isPlainObject } from "./isPlainObject";
88
+ export { isPositiveNumber } from "./isPositiveNumber";
89
+ export { isPrimitive } from "./isPrimitive";
90
+ export { isPromise } from "./isPromise";
91
+ export { isRegExp } from "./isRegExp";
92
+ export { isServer } from "./isServer";
93
+ export { isServerNow } from "./isServerNow";
94
+ export { isSet } from "./isSet";
95
+ export { isString } from "./isString";
96
+ export { isSymbol } from "./isSymbol";
97
+ export { isType } from "./isType";
98
+ export { isUndefined } from "./isUndefined";
99
+ export { isWeakMap } from "./isWeakMap";
100
+ export { isWeakSet } from "./isWeakSet";
101
+ export { kbToBytes } from "./kbToBytes";
102
+ export { type AnyQueryParams } from "./location";
103
+ export { lowercase } from "./lowercase";
104
+ export { mapListBy } from "./mapListBy";
105
+ export { matchSorter } from "./matchSorter";
106
+ export { mbToBytes } from "./mbToBytes";
107
+ export { mergeObjects } from "./mergeObjects";
108
+ export { mergeUrlQueryParams } from "./mergeUrlQueryParams";
109
+ export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey";
110
+ export { noop } from "./noop";
111
+ export { normaliseUrlPathname } from "./normaliseUrlPathname";
112
+ export { normaliseUrl } from "./normaliseUrl";
113
+ export { objectFlat } from "./objectFlat";
114
+ export { objectFlip } from "./objectFlip";
115
+ export { objectPick } from "./objectPick";
116
+ export { objectMergeWithDefaults, type ObjectMergeWithDefaults, } from "./objectMergeWithDefaults";
117
+ export { objectOmit } from "./objectOmit";
118
+ export { objectSort } from "./objectSort";
119
+ export { objectSortByKeysMatching } from "./objectSortByKeysMatching";
120
+ export { objectToArray } from "./objectToArray";
121
+ export { parseCookie } from "./parseCookie";
122
+ export { parseURL } from "./parseURL";
123
+ export { quaranteneProps } from "./quaranteneProps";
124
+ export { randomInt } from "./randomInt";
125
+ export { randomKey } from "./randomKey";
126
+ export { readCookie } from "./readCookie";
127
+ export { removeAccents } from "./removeAccents";
128
+ export { removeCookie } from "./removeCookie";
129
+ export { removeDuplicatesByKey } from "./removeDuplicatesByKey";
130
+ export { removeDuplicatesComparing } from "./removeDuplicatesComparing";
131
+ export { removeIndexesFromArray } from "./removeIndexesFromArray";
132
+ export { removeTrailingSlash } from "./removeTrailingSlash";
133
+ export { removeUrlQueryParams } from "./removeUrlQueryParams";
134
+ export { round } from "./round";
135
+ export { roundTo } from "./roundTo";
136
+ export { serializeCookie } from "./serializeCookie";
137
+ export { setCookie } from "./setCookie";
138
+ export { shuffle } from "./shuffle";
139
+ export { slugify } from "./slugify";
140
+ export { split } from "./split";
141
+ export { splitReverse } from "./splitReverse";
142
+ export { swapMap } from "./swapMap";
143
+ export { throttle } from "./throttle";
144
+ export { titleCase } from "./titleCase";
145
+ export { toNumber } from "./toNumber";
146
+ export { toRgba } from "./toRgba";
147
+ export { transformToUrlPathname } from "./transformToUrlPathname";
148
+ export { truncate } from "./truncate";
149
+ export { tryUntil } from "./tryUntil";
150
+ export { uid } from "./uid";
151
+ export { updateLinkParams } from "./updateLinkParams";
152
+ export { updateUrlQueryParams } from "./updateUrlQueryParams";
153
+ export { uppercase } from "./uppercase";
154
+ export { uuid } from "./uuid";
155
+ export { uuidNumeric } from "./uuidNumeric";
156
+ export { wait } from "./wait";
157
+ export type { AnythingFalsy, KeysStartsWith, KeysTailsStartsWith, PickStartsWith, PickStartsWithTails, } from "./types";
158
+ export type { KeysOfUnion, EmptyObject, IsEmptyObject, NonEmptyObject, UnknownRecord, UnknownArray, Except, TaggedUnion, Writable, WritableDeep, Merge, MergeDeep, MergeDeepOptions, MergeExclusive, RequireAtLeastOne, RequireExactlyOne, RequireAllOrNone, RequireOneOrNone, OmitIndexSignature, PickIndexSignature, PartialDeep, PartialDeepOptions, RequiredDeep, PickDeep, PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions, UndefinedOnPartialDeep, ReadonlyDeep, LiteralUnion, Promisable, Opaque, UnwrapOpaque, Tagged, UnwrapTagged, InvariantOf, SetOptional, SetReadonly, SetRequired, SetNonNullable, ValueOf, AsyncReturnType, ConditionalExcept, ConditionalKeys, ConditionalPick, ConditionalPickDeep, ConditionalPickDeepOptions, UnionToIntersection, Stringified, FixedLengthArray, MultidimensionalArray, MultidimensionalReadonlyArray, IterableElement, Entry, Entries, SetReturnType, SetParameterType, Asyncify, Simplify, Jsonify, Jsonifiable, JsonObject, Schema, LiteralToPrimitive, LiteralToPrimitiveDeep, PositiveInfinity, NegativeInfinity, Finite, Integer, Float, NegativeFloat, Negative, NonNegative, NegativeInteger, NonNegativeInteger, StringKeyOf, Exact, ReadonlyTuple, OptionalKeysOf, OverrideProperties, HasOptionalKeys, RequiredKeysOf, HasRequiredKeys, ReadonlyKeysOf, HasReadonlyKeys, WritableKeysOf, HasWritableKeys, Spread, TupleToUnion, IntRange, IsEqual, IsLiteral, IsStringLiteral, IsNumericLiteral, IsBooleanLiteral, IsSymbolLiteral, IsAny, IfAny, IsNever, IfNever, IsUnknown, IfUnknown, ArrayIndices, ArrayValues, SetFieldType, Paths, SharedUnionFieldsDeep, CamelCase, CamelCasedProperties, CamelCasedPropertiesDeep, KebabCase, KebabCasedProperties, KebabCasedPropertiesDeep, PascalCase, PascalCasedProperties, PascalCasedPropertiesDeep, SnakeCase, SnakeCasedProperties, SnakeCasedPropertiesDeep, ScreamingSnakeCase, DelimiterCase, DelimiterCasedProperties, DelimiterCasedPropertiesDeep, Join, Split, Trim, Replace, Includes, Get, LastArrayElement, GlobalThis, PackageJson, TsConfigJson, } from "type-fest";
@@ -0,0 +1,2 @@
1
+ export declare let invariant: (condition: any, message?: string | (() => string), lib?: string, prefix?: string) => asserts condition;
2
+ export default invariant;
@@ -0,0 +1,2 @@
1
+ export declare let isAbsoluteUrl: (url: string) => boolean;
2
+ export default isAbsoluteUrl;
@@ -0,0 +1,3 @@
1
+ import type { PlainObject } from "./getType";
2
+ export declare let isAnyObject: (payload: any) => payload is PlainObject;
3
+ export default isAnyObject;
@@ -0,0 +1,2 @@
1
+ export declare let isArray: (payload: any) => payload is any[];
2
+ export default isArray;
@@ -0,0 +1,2 @@
1
+ export declare let isBlob: (payload: any) => payload is Blob;
2
+ export default isBlob;
@@ -0,0 +1,2 @@
1
+ export declare let isBoolean: (payload: any) => payload is boolean;
2
+ export default isBoolean;
@@ -0,0 +1,2 @@
1
+ export declare let isBrowser: boolean;
2
+ export default isBrowser;
@@ -0,0 +1,2 @@
1
+ export declare let isBrowserNow: () => boolean;
2
+ export default isBrowserNow;
@@ -0,0 +1,2 @@
1
+ export declare let isDate: (payload: any) => payload is Date;
2
+ export default isDate;
@@ -0,0 +1,2 @@
1
+ export declare let isEmptyArray: (payload: any) => payload is [];
2
+ export default isEmptyArray;
@@ -0,0 +1,6 @@
1
+ export declare let isEmptyObject: (payload: any) => payload is {
2
+ [x: string]: never;
3
+ [x: number]: never;
4
+ [x: symbol]: never;
5
+ };
6
+ export default isEmptyObject;
@@ -0,0 +1,2 @@
1
+ export declare let isEmptyString: (payload: any) => payload is string;
2
+ export default isEmptyString;
@@ -0,0 +1,2 @@
1
+ export declare let isError: (payload: any) => payload is Error;
2
+ export default isError;
@@ -0,0 +1,2 @@
1
+ export declare let isExternalUrl: (url: string, currentUrl?: string) => boolean;
2
+ export default isExternalUrl;
@@ -0,0 +1,2 @@
1
+ export declare let isFile: (payload: any) => payload is File;
2
+ export default isFile;
@@ -0,0 +1,2 @@
1
+ export declare let isFloat: (payload: any) => payload is number;
2
+ export default isFloat;
@@ -0,0 +1,2 @@
1
+ export declare let isFormData: (payload: any) => payload is FormData;
2
+ export default isFormData;
@@ -0,0 +1,2 @@
1
+ export declare let isFullArray: (payload: any) => payload is any[];
2
+ export default isFullArray;
@@ -0,0 +1,3 @@
1
+ import type { PlainObject } from "./getType";
2
+ export declare let isFullObject: (payload: any) => payload is PlainObject;
3
+ export default isFullObject;
@@ -0,0 +1,2 @@
1
+ export declare let isFullString: (payload: any) => payload is string;
2
+ export default isFullString;
@@ -0,0 +1,3 @@
1
+ import type { AnyFunction } from "./getType";
2
+ export declare let isFunction: (payload: any) => payload is AnyFunction;
3
+ export default isFunction;
package/cjs/isInt.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare let isInt: (payload: any) => payload is number;
2
+ export default isInt;
package/cjs/isMap.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare let isMap: (payload: any) => payload is Map<any, any>;
2
+ export default isMap;
@@ -0,0 +1,2 @@
1
+ export declare let isNaNValue: (payload: any) => payload is number;
2
+ export default isNaNValue;
@@ -0,0 +1,2 @@
1
+ export declare let isNegativeNumber: (payload: any) => payload is number;
2
+ export default isNegativeNumber;
@@ -0,0 +1,2 @@
1
+ export declare let isNull: (payload: any) => payload is null;
2
+ export default isNull;
@@ -0,0 +1,2 @@
1
+ export declare let isNullOrUndefined: import("./getType").TypeGuard<any, null | undefined>;
2
+ export default isNullOrUndefined;
@@ -0,0 +1,2 @@
1
+ export declare let isNumber: (payload: any) => payload is number;
2
+ export default isNumber;
@@ -0,0 +1,2 @@
1
+ export declare let isNumericLiteral: (payload: string) => payload is `${number}`;
2
+ export default isNumericLiteral;
@@ -0,0 +1,3 @@
1
+ import type { PlainObject } from "./getType";
2
+ export declare let isObject: (payload: any) => payload is PlainObject;
3
+ export default isObject;
@@ -0,0 +1,3 @@
1
+ import type { PlainObject } from "./getType";
2
+ export declare let isObjectLike: <T extends PlainObject>(payload: any) => payload is T;
3
+ export default isObjectLike;
@@ -0,0 +1,3 @@
1
+ import type { PlainObjectStringKeyed } from "./getType";
2
+ export declare let isObjectStringKeyed: (payload: any) => payload is PlainObjectStringKeyed;
3
+ export default isObjectStringKeyed;
@@ -0,0 +1,6 @@
1
+ import type { TypeGuard } from "./getType";
2
+ export declare function isOneOf<A, B extends A, C extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>): TypeGuard<A, B | C>;
3
+ export declare function isOneOf<A, B extends A, C extends A, D extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>): TypeGuard<A, B | C | D>;
4
+ export declare function isOneOf<A, B extends A, C extends A, D extends A, E extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>, d: TypeGuard<A, E>): TypeGuard<A, B | C | D | E>;
5
+ export declare function isOneOf<A, B extends A, C extends A, D extends A, E extends A, F extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>, d: TypeGuard<A, E>, e: TypeGuard<A, F>): TypeGuard<A, B | C | D | E | F>;
6
+ export default isOneOf;
@@ -0,0 +1,3 @@
1
+ import type { PlainObject } from "./getType";
2
+ export declare let isPlainObject: <TReturn = PlainObject>(payload: any) => payload is TReturn;
3
+ export default isPlainObject;
@@ -0,0 +1,2 @@
1
+ export declare let isPositiveNumber: (payload: any) => payload is number;
2
+ export default isPositiveNumber;
@@ -0,0 +1,2 @@
1
+ export declare let isPrimitive: (payload: any) => payload is string | number | boolean | symbol | null | undefined;
2
+ export default isPrimitive;
@@ -0,0 +1,2 @@
1
+ export declare let isPromise: (payload: any) => payload is Promise<any>;
2
+ export default isPromise;
@@ -0,0 +1,2 @@
1
+ export declare let isRegExp: (payload: any) => payload is RegExp;
2
+ export default isRegExp;
@@ -0,0 +1,2 @@
1
+ export declare let isServer: boolean;
2
+ export default isServer;
@@ -0,0 +1,2 @@
1
+ export declare let isServerNow: () => boolean;
2
+ export default isServerNow;
package/cjs/isSet.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare let isSet: (payload: any) => payload is Set<any>;
2
+ export default isSet;
@@ -0,0 +1,2 @@
1
+ export declare let isString: (payload: any) => payload is string;
2
+ export default isString;
@@ -0,0 +1,2 @@
1
+ export declare let isSymbol: (payload: any) => payload is symbol;
2
+ export default isSymbol;
@@ -0,0 +1,3 @@
1
+ import type { AnyClass, AnyFunction } from "./getType";
2
+ export declare let isType: <T extends AnyFunction | AnyClass>(payload: any, type: T) => payload is T;
3
+ export default isType;
@@ -0,0 +1,2 @@
1
+ export declare let isUndefined: (payload: any) => payload is undefined;
2
+ export default isUndefined;
@@ -0,0 +1,2 @@
1
+ export declare let isWeakMap: (payload: any) => payload is WeakMap<any, any>;
2
+ export default isWeakMap;
@@ -0,0 +1,2 @@
1
+ export declare let isWeakSet: (payload: any) => payload is WeakSet<any>;
2
+ export default isWeakSet;
@@ -0,0 +1,2 @@
1
+ export declare let kbToBytes: (bytes: number) => number;
2
+ export default kbToBytes;
@@ -0,0 +1 @@
1
+ export type AnyQueryParams = undefined | null | Record<string | number, unknown>;
@@ -0,0 +1,2 @@
1
+ export declare let lowercase: <T extends string>(str?: T | null | undefined) => Lowercase<T>;
2
+ export default lowercase;
@@ -0,0 +1,2 @@
1
+ export declare let mapListBy: <T extends Record<string | number | symbol, any>>(array?: T[], key?: keyof T) => Record<T[keyof T], T>;
2
+ export default mapListBy;