@stryke/type-checks 0.5.8 → 0.5.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 (651) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/get-object-tag.cjs +1 -1
  3. package/dist/get-object-tag.d.cts +11 -2
  4. package/dist/get-object-tag.d.cts.map +1 -0
  5. package/dist/get-object-tag.d.mts +11 -2
  6. package/dist/get-object-tag.d.mts.map +1 -0
  7. package/dist/get-object-tag.mjs +2 -1
  8. package/dist/get-object-tag.mjs.map +1 -0
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +43 -43
  11. package/dist/index.d.mts +43 -43
  12. package/dist/index.mjs +1 -1
  13. package/dist/is-array-like.cjs +1 -1
  14. package/dist/is-array-like.d.cts +11 -2
  15. package/dist/is-array-like.d.cts.map +1 -0
  16. package/dist/is-array-like.d.mts +11 -2
  17. package/dist/is-array-like.d.mts.map +1 -0
  18. package/dist/is-array-like.mjs +2 -1
  19. package/dist/is-array-like.mjs.map +1 -0
  20. package/dist/is-async-iterable.cjs +1 -1
  21. package/dist/is-async-iterable.d.cts +11 -2
  22. package/dist/is-async-iterable.d.cts.map +1 -0
  23. package/dist/is-async-iterable.d.mts +11 -2
  24. package/dist/is-async-iterable.d.mts.map +1 -0
  25. package/dist/is-async-iterable.mjs +2 -1
  26. package/dist/is-async-iterable.mjs.map +1 -0
  27. package/dist/is-bigint.cjs +1 -1
  28. package/dist/is-bigint.d.cts +20 -2
  29. package/dist/is-bigint.d.cts.map +1 -0
  30. package/dist/is-bigint.d.mts +20 -2
  31. package/dist/is-bigint.d.mts.map +1 -0
  32. package/dist/is-bigint.mjs +2 -1
  33. package/dist/is-bigint.mjs.map +1 -0
  34. package/dist/is-boolean.cjs +1 -1
  35. package/dist/is-boolean.d.cts +11 -2
  36. package/dist/is-boolean.d.cts.map +1 -0
  37. package/dist/is-boolean.d.mts +11 -2
  38. package/dist/is-boolean.d.mts.map +1 -0
  39. package/dist/is-boolean.mjs +2 -1
  40. package/dist/is-boolean.mjs.map +1 -0
  41. package/dist/is-buffer.cjs +1 -1
  42. package/dist/is-buffer.d.cts +9 -2
  43. package/dist/is-buffer.d.cts.map +1 -0
  44. package/dist/is-buffer.d.mts +9 -2
  45. package/dist/is-buffer.d.mts.map +1 -0
  46. package/dist/is-buffer.mjs +2 -1
  47. package/dist/is-buffer.mjs.map +1 -0
  48. package/dist/is-collection.cjs +1 -1
  49. package/dist/is-collection.d.cts +14 -2
  50. package/dist/is-collection.d.cts.map +1 -0
  51. package/dist/is-collection.d.mts +14 -2
  52. package/dist/is-collection.d.mts.map +1 -0
  53. package/dist/is-collection.mjs +2 -1
  54. package/dist/is-collection.mjs.map +1 -0
  55. package/dist/is-date.cjs +1 -1
  56. package/dist/is-date.d.cts +20 -2
  57. package/dist/is-date.d.cts.map +1 -0
  58. package/dist/is-date.d.mts +20 -2
  59. package/dist/is-date.d.mts.map +1 -0
  60. package/dist/is-date.mjs +2 -1
  61. package/dist/is-date.mjs.map +1 -0
  62. package/dist/is-deep-key.cjs +1 -1
  63. package/dist/is-deep-key.d.cts +41 -2
  64. package/dist/is-deep-key.d.cts.map +1 -0
  65. package/dist/is-deep-key.d.mts +41 -2
  66. package/dist/is-deep-key.d.mts.map +1 -0
  67. package/dist/is-deep-key.mjs +2 -1
  68. package/dist/is-deep-key.mjs.map +1 -0
  69. package/dist/is-empty-object.cjs +1 -1
  70. package/dist/is-empty-object.d.cts +18 -2
  71. package/dist/is-empty-object.d.cts.map +1 -0
  72. package/dist/is-empty-object.d.mts +18 -2
  73. package/dist/is-empty-object.d.mts.map +1 -0
  74. package/dist/is-empty-object.mjs +2 -1
  75. package/dist/is-empty-object.mjs.map +1 -0
  76. package/dist/is-empty-string.cjs +1 -1
  77. package/dist/is-empty-string.d.cts +11 -2
  78. package/dist/is-empty-string.d.cts.map +1 -0
  79. package/dist/is-empty-string.d.mts +11 -2
  80. package/dist/is-empty-string.d.mts.map +1 -0
  81. package/dist/is-empty-string.mjs +2 -1
  82. package/dist/is-empty-string.mjs.map +1 -0
  83. package/dist/is-empty.cjs +1 -1
  84. package/dist/is-empty.d.cts +12 -2
  85. package/dist/is-empty.d.cts.map +1 -0
  86. package/dist/is-empty.d.mts +12 -2
  87. package/dist/is-empty.d.mts.map +1 -0
  88. package/dist/is-empty.mjs +2 -1
  89. package/dist/is-empty.mjs.map +1 -0
  90. package/dist/is-equal.cjs +1 -1
  91. package/dist/is-equal.d.cts +5 -2
  92. package/dist/is-equal.d.cts.map +1 -0
  93. package/dist/is-equal.d.mts +5 -2
  94. package/dist/is-equal.d.mts.map +1 -0
  95. package/dist/is-equal.mjs +2 -1
  96. package/dist/is-equal.mjs.map +1 -0
  97. package/dist/is-error.cjs +1 -1
  98. package/dist/is-error.d.cts +21 -2
  99. package/dist/is-error.d.cts.map +1 -0
  100. package/dist/is-error.d.mts +21 -2
  101. package/dist/is-error.d.mts.map +1 -0
  102. package/dist/is-error.mjs +2 -1
  103. package/dist/is-error.mjs.map +1 -0
  104. package/dist/is-file-result.cjs +1 -1
  105. package/dist/is-file-result.d.cts +14 -2
  106. package/dist/is-file-result.d.cts.map +1 -0
  107. package/dist/is-file-result.d.mts +14 -2
  108. package/dist/is-file-result.d.mts.map +1 -0
  109. package/dist/is-file-result.mjs +2 -1
  110. package/dist/is-file-result.mjs.map +1 -0
  111. package/dist/is-float.cjs +1 -1
  112. package/dist/is-float.d.cts +14 -2
  113. package/dist/is-float.d.cts.map +1 -0
  114. package/dist/is-float.d.mts +14 -2
  115. package/dist/is-float.d.mts.map +1 -0
  116. package/dist/is-float.mjs +2 -1
  117. package/dist/is-float.mjs.map +1 -0
  118. package/dist/is-function.cjs +1 -1
  119. package/dist/is-function.d.cts +15 -2
  120. package/dist/is-function.d.cts.map +1 -0
  121. package/dist/is-function.d.mts +15 -2
  122. package/dist/is-function.d.mts.map +1 -0
  123. package/dist/is-function.mjs +2 -1
  124. package/dist/is-function.mjs.map +1 -0
  125. package/dist/is-integer.cjs +1 -1
  126. package/dist/is-integer.d.cts +11 -2
  127. package/dist/is-integer.d.cts.map +1 -0
  128. package/dist/is-integer.d.mts +11 -2
  129. package/dist/is-integer.d.mts.map +1 -0
  130. package/dist/is-integer.mjs +2 -1
  131. package/dist/is-integer.mjs.map +1 -0
  132. package/dist/is-mergeable-object.cjs +1 -1
  133. package/dist/is-mergeable-object.d.cts +5 -2
  134. package/dist/is-mergeable-object.d.cts.map +1 -0
  135. package/dist/is-mergeable-object.d.mts +5 -2
  136. package/dist/is-mergeable-object.d.mts.map +1 -0
  137. package/dist/is-mergeable-object.mjs +2 -1
  138. package/dist/is-mergeable-object.mjs.map +1 -0
  139. package/dist/is-non-null-object.cjs +1 -1
  140. package/dist/is-non-null-object.mjs +2 -1
  141. package/dist/is-non-null-object.mjs.map +1 -0
  142. package/dist/is-not-empty.cjs +1 -1
  143. package/dist/is-not-empty.d.cts +11 -2
  144. package/dist/is-not-empty.d.cts.map +1 -0
  145. package/dist/is-not-empty.d.mts +11 -2
  146. package/dist/is-not-empty.d.mts.map +1 -0
  147. package/dist/is-not-empty.mjs +2 -1
  148. package/dist/is-not-empty.mjs.map +1 -0
  149. package/dist/is-null.cjs +1 -1
  150. package/dist/is-null.d.cts +5 -2
  151. package/dist/is-null.d.cts.map +1 -0
  152. package/dist/is-null.d.mts +5 -2
  153. package/dist/is-null.d.mts.map +1 -0
  154. package/dist/is-null.mjs +2 -1
  155. package/dist/is-null.mjs.map +1 -0
  156. package/dist/is-number.cjs +1 -1
  157. package/dist/is-number.d.cts +21 -2
  158. package/dist/is-number.d.cts.map +1 -0
  159. package/dist/is-number.d.mts +21 -2
  160. package/dist/is-number.d.mts.map +1 -0
  161. package/dist/is-number.mjs +2 -1
  162. package/dist/is-number.mjs.map +1 -0
  163. package/dist/is-object-index.cjs +1 -1
  164. package/dist/is-object-index.d.cts +11 -2
  165. package/dist/is-object-index.d.cts.map +1 -0
  166. package/dist/is-object-index.d.mts +11 -2
  167. package/dist/is-object-index.d.mts.map +1 -0
  168. package/dist/is-object-index.mjs +2 -1
  169. package/dist/is-object-index.mjs.map +1 -0
  170. package/dist/is-object.cjs +1 -1
  171. package/dist/is-object.d.cts +35 -2
  172. package/dist/is-object.d.cts.map +1 -0
  173. package/dist/is-object.d.mts +35 -2
  174. package/dist/is-object.d.mts.map +1 -0
  175. package/dist/is-object.mjs +2 -1
  176. package/dist/is-object.mjs.map +1 -0
  177. package/dist/is-plain-object.cjs +1 -1
  178. package/dist/is-plain-object.d.cts +56 -2
  179. package/dist/is-plain-object.d.cts.map +1 -0
  180. package/dist/is-plain-object.d.mts +56 -2
  181. package/dist/is-plain-object.d.mts.map +1 -0
  182. package/dist/is-plain-object.mjs +2 -1
  183. package/dist/is-plain-object.mjs.map +1 -0
  184. package/dist/is-primitive.cjs +1 -1
  185. package/dist/is-primitive.d.cts +5 -2
  186. package/dist/is-primitive.d.cts.map +1 -0
  187. package/dist/is-primitive.d.mts +5 -2
  188. package/dist/is-primitive.d.mts.map +1 -0
  189. package/dist/is-primitive.mjs +2 -1
  190. package/dist/is-primitive.mjs.map +1 -0
  191. package/dist/is-promise.cjs +1 -1
  192. package/dist/is-promise.d.cts +21 -2
  193. package/dist/is-promise.d.cts.map +1 -0
  194. package/dist/is-promise.d.mts +21 -2
  195. package/dist/is-promise.d.mts.map +1 -0
  196. package/dist/is-promise.mjs +2 -1
  197. package/dist/is-promise.mjs.map +1 -0
  198. package/dist/is-react-element.cjs +1 -1
  199. package/dist/is-react-element.d.cts +5 -2
  200. package/dist/is-react-element.d.cts.map +1 -0
  201. package/dist/is-react-element.d.mts +5 -2
  202. package/dist/is-react-element.d.mts.map +1 -0
  203. package/dist/is-react-element.mjs +2 -1
  204. package/dist/is-react-element.mjs.map +1 -0
  205. package/dist/is-ref.cjs +1 -1
  206. package/dist/is-ref.d.cts +14 -2
  207. package/dist/is-ref.d.cts.map +1 -0
  208. package/dist/is-ref.d.mts +14 -2
  209. package/dist/is-ref.d.mts.map +1 -0
  210. package/dist/is-ref.mjs +2 -1
  211. package/dist/is-ref.mjs.map +1 -0
  212. package/dist/is-regexp.cjs +1 -1
  213. package/dist/is-regexp.d.cts +20 -2
  214. package/dist/is-regexp.d.cts.map +1 -0
  215. package/dist/is-regexp.d.mts +20 -2
  216. package/dist/is-regexp.d.mts.map +1 -0
  217. package/dist/is-regexp.mjs +2 -1
  218. package/dist/is-regexp.mjs.map +1 -0
  219. package/dist/is-select-option.cjs +1 -1
  220. package/dist/is-select-option.d.cts +14 -2
  221. package/dist/is-select-option.d.cts.map +1 -0
  222. package/dist/is-select-option.d.mts +14 -2
  223. package/dist/is-select-option.d.mts.map +1 -0
  224. package/dist/is-select-option.mjs +2 -1
  225. package/dist/is-select-option.mjs.map +1 -0
  226. package/dist/is-set-array.cjs +1 -1
  227. package/dist/is-set-array.d.cts +11 -2
  228. package/dist/is-set-array.d.cts.map +1 -0
  229. package/dist/is-set-array.d.mts +11 -2
  230. package/dist/is-set-array.d.mts.map +1 -0
  231. package/dist/is-set-array.mjs +2 -1
  232. package/dist/is-set-array.mjs.map +1 -0
  233. package/dist/is-set-object.cjs +1 -1
  234. package/dist/is-set-object.d.cts +11 -2
  235. package/dist/is-set-object.d.cts.map +1 -0
  236. package/dist/is-set-object.d.mts +11 -2
  237. package/dist/is-set-object.d.mts.map +1 -0
  238. package/dist/is-set-object.mjs +2 -1
  239. package/dist/is-set-object.mjs.map +1 -0
  240. package/dist/is-set-string.cjs +1 -1
  241. package/dist/is-set-string.d.cts +11 -2
  242. package/dist/is-set-string.d.cts.map +1 -0
  243. package/dist/is-set-string.d.mts +11 -2
  244. package/dist/is-set-string.d.mts.map +1 -0
  245. package/dist/is-set-string.mjs +2 -1
  246. package/dist/is-set-string.mjs.map +1 -0
  247. package/dist/is-set.cjs +1 -1
  248. package/dist/is-set.d.cts +11 -2
  249. package/dist/is-set.d.cts.map +1 -0
  250. package/dist/is-set.d.mts +11 -2
  251. package/dist/is-set.d.mts.map +1 -0
  252. package/dist/is-set.mjs +2 -1
  253. package/dist/is-set.mjs.map +1 -0
  254. package/dist/is-string.cjs +1 -1
  255. package/dist/is-string.d.cts +5 -2
  256. package/dist/is-string.d.cts.map +1 -0
  257. package/dist/is-string.d.mts +5 -2
  258. package/dist/is-string.d.mts.map +1 -0
  259. package/dist/is-string.mjs +2 -1
  260. package/dist/is-string.mjs.map +1 -0
  261. package/dist/is-symbol.cjs +1 -1
  262. package/dist/is-symbol.d.cts +5 -2
  263. package/dist/is-symbol.d.cts.map +1 -0
  264. package/dist/is-symbol.d.mts +5 -2
  265. package/dist/is-symbol.d.mts.map +1 -0
  266. package/dist/is-symbol.mjs +2 -1
  267. package/dist/is-symbol.mjs.map +1 -0
  268. package/dist/is-typed-array.cjs +1 -1
  269. package/dist/is-typed-array.d.cts +5 -2
  270. package/dist/is-typed-array.d.cts.map +1 -0
  271. package/dist/is-typed-array.d.mts +5 -2
  272. package/dist/is-typed-array.d.mts.map +1 -0
  273. package/dist/is-typed-array.mjs +2 -1
  274. package/dist/is-typed-array.mjs.map +1 -0
  275. package/dist/is-typed.cjs +1 -1
  276. package/dist/is-typed.d.cts +14 -2
  277. package/dist/is-typed.d.cts.map +1 -0
  278. package/dist/is-typed.d.mts +14 -2
  279. package/dist/is-typed.d.mts.map +1 -0
  280. package/dist/is-typed.mjs +2 -1
  281. package/dist/is-typed.mjs.map +1 -0
  282. package/dist/is-undefined.cjs +1 -1
  283. package/dist/is-undefined.d.cts +5 -2
  284. package/dist/is-undefined.d.cts.map +1 -0
  285. package/dist/is-undefined.d.mts +5 -2
  286. package/dist/is-undefined.d.mts.map +1 -0
  287. package/dist/is-undefined.mjs +2 -1
  288. package/dist/is-undefined.mjs.map +1 -0
  289. package/dist/is-url.cjs +1 -1
  290. package/dist/is-url.d.cts +11 -2
  291. package/dist/is-url.d.cts.map +1 -0
  292. package/dist/is-url.d.mts +11 -2
  293. package/dist/is-url.d.mts.map +1 -0
  294. package/dist/is-url.mjs +2 -1
  295. package/dist/is-url.mjs.map +1 -0
  296. package/dist/property-exists.cjs +1 -1
  297. package/dist/property-exists.d.cts +20 -2
  298. package/dist/property-exists.d.cts.map +1 -0
  299. package/dist/property-exists.d.mts +20 -2
  300. package/dist/property-exists.d.mts.map +1 -0
  301. package/dist/property-exists.mjs +2 -1
  302. package/dist/property-exists.mjs.map +1 -0
  303. package/dist/type-detect.cjs +1 -1
  304. package/dist/type-detect.d.cts +5 -2
  305. package/dist/type-detect.d.cts.map +1 -0
  306. package/dist/type-detect.d.mts +5 -2
  307. package/dist/type-detect.d.mts.map +1 -0
  308. package/dist/type-detect.mjs +2 -1
  309. package/dist/type-detect.mjs.map +1 -0
  310. package/dist/types/src/base.cjs +1 -0
  311. package/dist/{base-BghPfa26.d.mts → types/src/base.d.cts} +2 -2
  312. package/dist/types/src/base.d.cts.map +1 -0
  313. package/dist/{base-DsupRZHl.d.cts → types/src/base.d.mts} +2 -2
  314. package/dist/types/src/base.d.mts.map +1 -0
  315. package/dist/types/src/base.mjs +2 -0
  316. package/dist/types/src/base.mjs.map +1 -0
  317. package/dist/types/src/file.d.cts +24 -0
  318. package/dist/types/src/file.d.cts.map +1 -0
  319. package/dist/types/src/file.d.mts +24 -0
  320. package/dist/types/src/file.d.mts.map +1 -0
  321. package/dist/{is-select-option-B5qnA3jc.d.cts → types/src/form.d.cts} +3 -12
  322. package/dist/types/src/form.d.cts.map +1 -0
  323. package/dist/{is-select-option-DokUPHZT.d.mts → types/src/form.d.mts} +3 -12
  324. package/dist/types/src/form.d.mts.map +1 -0
  325. package/dist/types/src/messages.d.cts +16 -0
  326. package/dist/types/src/messages.d.cts.map +1 -0
  327. package/dist/types/src/messages.d.mts +16 -0
  328. package/dist/types/src/messages.d.mts.map +1 -0
  329. package/dist/{number-HSvmYyl0.d.mts → types/src/number.d.cts} +2 -2
  330. package/dist/types/src/number.d.cts.map +1 -0
  331. package/dist/{number-lymv4bwC.d.cts → types/src/number.d.mts} +2 -2
  332. package/dist/types/src/number.d.mts.map +1 -0
  333. package/dist/{is-deep-key-CDPjONep.d.cts → types/src/object.d.cts} +3 -39
  334. package/dist/types/src/object.d.cts.map +1 -0
  335. package/dist/{is-deep-key-R3slkUpl.d.mts → types/src/object.d.mts} +3 -39
  336. package/dist/types/src/object.d.mts.map +1 -0
  337. package/dist/{utilities-BcSwta4F.d.cts → types/src/utilities.d.cts} +2 -2
  338. package/dist/types/src/utilities.d.cts.map +1 -0
  339. package/dist/{utilities-Dj_-Bvo1.d.mts → types/src/utilities.d.mts} +2 -2
  340. package/dist/types/src/utilities.d.mts.map +1 -0
  341. package/dist/types/src/validations.d.cts +15 -0
  342. package/dist/types/src/validations.d.cts.map +1 -0
  343. package/dist/types/src/validations.d.mts +15 -0
  344. package/dist/types/src/validations.d.mts.map +1 -0
  345. package/package.json +3 -3
  346. package/dist/base-BghPfa26.d.mts.map +0 -1
  347. package/dist/base-DsupRZHl.d.cts.map +0 -1
  348. package/dist/get-object-tag-BHnhgixj.cjs +0 -1
  349. package/dist/get-object-tag-D0q0p9ux.d.mts +0 -11
  350. package/dist/get-object-tag-D0q0p9ux.d.mts.map +0 -1
  351. package/dist/get-object-tag-DF2FAXqH.mjs +0 -2
  352. package/dist/get-object-tag-DF2FAXqH.mjs.map +0 -1
  353. package/dist/get-object-tag-Tv3TsAc5.d.cts +0 -11
  354. package/dist/get-object-tag-Tv3TsAc5.d.cts.map +0 -1
  355. package/dist/is-array-like-BlG3BXac.mjs +0 -2
  356. package/dist/is-array-like-BlG3BXac.mjs.map +0 -1
  357. package/dist/is-array-like-CWfL33X9.d.mts +0 -11
  358. package/dist/is-array-like-CWfL33X9.d.mts.map +0 -1
  359. package/dist/is-array-like-DbVeBoEe.cjs +0 -1
  360. package/dist/is-array-like-WgfvtfKC.d.cts +0 -11
  361. package/dist/is-array-like-WgfvtfKC.d.cts.map +0 -1
  362. package/dist/is-async-iterable-Ba5xZQE9.cjs +0 -1
  363. package/dist/is-async-iterable-C7_r2vwP.d.cts +0 -11
  364. package/dist/is-async-iterable-C7_r2vwP.d.cts.map +0 -1
  365. package/dist/is-async-iterable-CI6-qnZ-.mjs +0 -2
  366. package/dist/is-async-iterable-CI6-qnZ-.mjs.map +0 -1
  367. package/dist/is-async-iterable-hrJii_4u.d.mts +0 -11
  368. package/dist/is-async-iterable-hrJii_4u.d.mts.map +0 -1
  369. package/dist/is-bigint-B0CqvS9s.cjs +0 -1
  370. package/dist/is-bigint-BlaQe4zL.d.cts +0 -20
  371. package/dist/is-bigint-BlaQe4zL.d.cts.map +0 -1
  372. package/dist/is-bigint-C87sK5hA.mjs +0 -2
  373. package/dist/is-bigint-C87sK5hA.mjs.map +0 -1
  374. package/dist/is-bigint-VHcMqIR3.d.mts +0 -20
  375. package/dist/is-bigint-VHcMqIR3.d.mts.map +0 -1
  376. package/dist/is-boolean-DAXt0s9b.mjs +0 -2
  377. package/dist/is-boolean-DAXt0s9b.mjs.map +0 -1
  378. package/dist/is-boolean-DRzqWnBl.cjs +0 -1
  379. package/dist/is-boolean-Doo5mVEJ.d.mts +0 -11
  380. package/dist/is-boolean-Doo5mVEJ.d.mts.map +0 -1
  381. package/dist/is-boolean-rsYcElxd.d.cts +0 -11
  382. package/dist/is-boolean-rsYcElxd.d.cts.map +0 -1
  383. package/dist/is-buffer-B3W8nBrK.d.cts +0 -9
  384. package/dist/is-buffer-B3W8nBrK.d.cts.map +0 -1
  385. package/dist/is-buffer-BhNtqu5n.mjs +0 -2
  386. package/dist/is-buffer-BhNtqu5n.mjs.map +0 -1
  387. package/dist/is-buffer-CSI0AMZS.d.mts +0 -9
  388. package/dist/is-buffer-CSI0AMZS.d.mts.map +0 -1
  389. package/dist/is-buffer-D9p_5l0d.cjs +0 -1
  390. package/dist/is-collection-Ceu4_dCf.d.mts +0 -14
  391. package/dist/is-collection-Ceu4_dCf.d.mts.map +0 -1
  392. package/dist/is-collection-DidPvByC.mjs +0 -2
  393. package/dist/is-collection-DidPvByC.mjs.map +0 -1
  394. package/dist/is-collection-IKoUfFa7.cjs +0 -1
  395. package/dist/is-collection-e7yAmi3F.d.cts +0 -14
  396. package/dist/is-collection-e7yAmi3F.d.cts.map +0 -1
  397. package/dist/is-date-BecRMVku.d.mts +0 -20
  398. package/dist/is-date-BecRMVku.d.mts.map +0 -1
  399. package/dist/is-date-CWjcEKXA.cjs +0 -1
  400. package/dist/is-date-CcOOgtny.mjs +0 -2
  401. package/dist/is-date-CcOOgtny.mjs.map +0 -1
  402. package/dist/is-date-Dmz-M0ET.d.cts +0 -20
  403. package/dist/is-date-Dmz-M0ET.d.cts.map +0 -1
  404. package/dist/is-deep-key-CDPjONep.d.cts.map +0 -1
  405. package/dist/is-deep-key-Ck2Hz7YJ.cjs +0 -1
  406. package/dist/is-deep-key-DShi6eYB.mjs +0 -2
  407. package/dist/is-deep-key-DShi6eYB.mjs.map +0 -1
  408. package/dist/is-deep-key-R3slkUpl.d.mts.map +0 -1
  409. package/dist/is-empty-CcxcCbO0.d.cts +0 -12
  410. package/dist/is-empty-CcxcCbO0.d.cts.map +0 -1
  411. package/dist/is-empty-DQObAY-0.mjs +0 -2
  412. package/dist/is-empty-DQObAY-0.mjs.map +0 -1
  413. package/dist/is-empty-DVetNKe9.cjs +0 -1
  414. package/dist/is-empty-bCaTRGIB.d.mts +0 -12
  415. package/dist/is-empty-bCaTRGIB.d.mts.map +0 -1
  416. package/dist/is-empty-object-C4Awcmki.d.mts +0 -18
  417. package/dist/is-empty-object-C4Awcmki.d.mts.map +0 -1
  418. package/dist/is-empty-object-DrM4h0oW.cjs +0 -1
  419. package/dist/is-empty-object-N0ex-Rjl.mjs +0 -2
  420. package/dist/is-empty-object-N0ex-Rjl.mjs.map +0 -1
  421. package/dist/is-empty-object-SnajGsQ2.d.cts +0 -18
  422. package/dist/is-empty-object-SnajGsQ2.d.cts.map +0 -1
  423. package/dist/is-empty-string-01PpHo0h.mjs +0 -2
  424. package/dist/is-empty-string-01PpHo0h.mjs.map +0 -1
  425. package/dist/is-empty-string-8Huv7y1z.cjs +0 -1
  426. package/dist/is-empty-string-BlLKjNEc.d.mts +0 -11
  427. package/dist/is-empty-string-BlLKjNEc.d.mts.map +0 -1
  428. package/dist/is-empty-string-CGf43g5Z.d.cts +0 -11
  429. package/dist/is-empty-string-CGf43g5Z.d.cts.map +0 -1
  430. package/dist/is-equal-BzPzI-pB.cjs +0 -1
  431. package/dist/is-equal-CYwTrE3V.d.cts +0 -5
  432. package/dist/is-equal-CYwTrE3V.d.cts.map +0 -1
  433. package/dist/is-equal-D4RPxWam.d.mts +0 -5
  434. package/dist/is-equal-D4RPxWam.d.mts.map +0 -1
  435. package/dist/is-equal-I836HuAx.mjs +0 -2
  436. package/dist/is-equal-I836HuAx.mjs.map +0 -1
  437. package/dist/is-error-CCOglM_7.d.mts +0 -21
  438. package/dist/is-error-CCOglM_7.d.mts.map +0 -1
  439. package/dist/is-error-D1FKoV2p.cjs +0 -1
  440. package/dist/is-error-DR_jKXbr.d.cts +0 -21
  441. package/dist/is-error-DR_jKXbr.d.cts.map +0 -1
  442. package/dist/is-error-nekb2Eit.mjs +0 -2
  443. package/dist/is-error-nekb2Eit.mjs.map +0 -1
  444. package/dist/is-file-result-5vpaq4NL.mjs +0 -2
  445. package/dist/is-file-result-5vpaq4NL.mjs.map +0 -1
  446. package/dist/is-file-result-B-ALEhm0.d.mts +0 -56
  447. package/dist/is-file-result-B-ALEhm0.d.mts.map +0 -1
  448. package/dist/is-file-result-Bl1xTRmY.cjs +0 -1
  449. package/dist/is-file-result-DW5cnH95.d.cts +0 -56
  450. package/dist/is-file-result-DW5cnH95.d.cts.map +0 -1
  451. package/dist/is-float-C6J1LRqg.cjs +0 -1
  452. package/dist/is-float-CfmYc3k6.d.mts +0 -14
  453. package/dist/is-float-CfmYc3k6.d.mts.map +0 -1
  454. package/dist/is-float-DulF06Fh.mjs +0 -2
  455. package/dist/is-float-DulF06Fh.mjs.map +0 -1
  456. package/dist/is-float-DvyATqOQ.d.cts +0 -14
  457. package/dist/is-float-DvyATqOQ.d.cts.map +0 -1
  458. package/dist/is-function-CR97Wcb4.d.mts +0 -15
  459. package/dist/is-function-CR97Wcb4.d.mts.map +0 -1
  460. package/dist/is-function-CZGGR0qT.mjs +0 -2
  461. package/dist/is-function-CZGGR0qT.mjs.map +0 -1
  462. package/dist/is-function-Ge8gcRnx.cjs +0 -1
  463. package/dist/is-function-IbkaFS4R.d.cts +0 -15
  464. package/dist/is-function-IbkaFS4R.d.cts.map +0 -1
  465. package/dist/is-integer-BhXT9fEE.mjs +0 -2
  466. package/dist/is-integer-BhXT9fEE.mjs.map +0 -1
  467. package/dist/is-integer-DBgHgbTb.cjs +0 -1
  468. package/dist/is-integer-kq1ee5T_.d.mts +0 -11
  469. package/dist/is-integer-kq1ee5T_.d.mts.map +0 -1
  470. package/dist/is-integer-t2K_aeI-.d.cts +0 -11
  471. package/dist/is-integer-t2K_aeI-.d.cts.map +0 -1
  472. package/dist/is-mergeable-object-BKccPMFM.mjs +0 -2
  473. package/dist/is-mergeable-object-BKccPMFM.mjs.map +0 -1
  474. package/dist/is-mergeable-object-BdooAUkk.d.cts +0 -5
  475. package/dist/is-mergeable-object-BdooAUkk.d.cts.map +0 -1
  476. package/dist/is-mergeable-object-Ch4GsBfV.d.mts +0 -5
  477. package/dist/is-mergeable-object-Ch4GsBfV.d.mts.map +0 -1
  478. package/dist/is-mergeable-object-D0KYh_gn.cjs +0 -1
  479. package/dist/is-non-null-object-Ctm4-rn6.cjs +0 -1
  480. package/dist/is-non-null-object-DESgjZyf.mjs +0 -2
  481. package/dist/is-non-null-object-DESgjZyf.mjs.map +0 -1
  482. package/dist/is-not-empty-DU-gI96j.d.cts +0 -11
  483. package/dist/is-not-empty-DU-gI96j.d.cts.map +0 -1
  484. package/dist/is-not-empty-QCNAwO70.cjs +0 -1
  485. package/dist/is-not-empty-VPPuIxfe.d.mts +0 -11
  486. package/dist/is-not-empty-VPPuIxfe.d.mts.map +0 -1
  487. package/dist/is-not-empty-_qzX24LT.mjs +0 -2
  488. package/dist/is-not-empty-_qzX24LT.mjs.map +0 -1
  489. package/dist/is-null-CZh6OomR.cjs +0 -1
  490. package/dist/is-null-DBoMXXAf.mjs +0 -2
  491. package/dist/is-null-DBoMXXAf.mjs.map +0 -1
  492. package/dist/is-null-envBEnO5.d.mts +0 -5
  493. package/dist/is-null-envBEnO5.d.mts.map +0 -1
  494. package/dist/is-null-mdbQqgkD.d.cts +0 -5
  495. package/dist/is-null-mdbQqgkD.d.cts.map +0 -1
  496. package/dist/is-number-B9zBD5P5.d.mts +0 -21
  497. package/dist/is-number-B9zBD5P5.d.mts.map +0 -1
  498. package/dist/is-number-BN-mcUXr.d.cts +0 -21
  499. package/dist/is-number-BN-mcUXr.d.cts.map +0 -1
  500. package/dist/is-number-ChPAVili.mjs +0 -2
  501. package/dist/is-number-ChPAVili.mjs.map +0 -1
  502. package/dist/is-number-ijCVauur.cjs +0 -1
  503. package/dist/is-object-ANQi7JgS.mjs +0 -2
  504. package/dist/is-object-ANQi7JgS.mjs.map +0 -1
  505. package/dist/is-object-CqEZ2nHi.d.mts +0 -35
  506. package/dist/is-object-CqEZ2nHi.d.mts.map +0 -1
  507. package/dist/is-object-Dm1523kn.cjs +0 -1
  508. package/dist/is-object-index-CaLUkJ03.d.mts +0 -11
  509. package/dist/is-object-index-CaLUkJ03.d.mts.map +0 -1
  510. package/dist/is-object-index-ClUQyslC.cjs +0 -1
  511. package/dist/is-object-index-CwTThA-X.mjs +0 -2
  512. package/dist/is-object-index-CwTThA-X.mjs.map +0 -1
  513. package/dist/is-object-index-OiD7O1-t.d.cts +0 -11
  514. package/dist/is-object-index-OiD7O1-t.d.cts.map +0 -1
  515. package/dist/is-object-vHTx3owB.d.cts +0 -35
  516. package/dist/is-object-vHTx3owB.d.cts.map +0 -1
  517. package/dist/is-plain-object-C_RxAc-k.d.cts +0 -56
  518. package/dist/is-plain-object-C_RxAc-k.d.cts.map +0 -1
  519. package/dist/is-plain-object-Cqr8u4ef.mjs +0 -2
  520. package/dist/is-plain-object-Cqr8u4ef.mjs.map +0 -1
  521. package/dist/is-plain-object-D0i2qmvk.d.mts +0 -56
  522. package/dist/is-plain-object-D0i2qmvk.d.mts.map +0 -1
  523. package/dist/is-plain-object-DuvbtXws.cjs +0 -1
  524. package/dist/is-primitive-BsdQZkNT.mjs +0 -2
  525. package/dist/is-primitive-BsdQZkNT.mjs.map +0 -1
  526. package/dist/is-primitive-C390YHii.d.cts +0 -5
  527. package/dist/is-primitive-C390YHii.d.cts.map +0 -1
  528. package/dist/is-primitive-CofpOCbi.d.mts +0 -5
  529. package/dist/is-primitive-CofpOCbi.d.mts.map +0 -1
  530. package/dist/is-primitive-DTb1k22w.cjs +0 -1
  531. package/dist/is-promise-5PXY2aAR.d.mts +0 -21
  532. package/dist/is-promise-5PXY2aAR.d.mts.map +0 -1
  533. package/dist/is-promise-BaPgf52D.d.cts +0 -21
  534. package/dist/is-promise-BaPgf52D.d.cts.map +0 -1
  535. package/dist/is-promise-D8fY4qSb.mjs +0 -2
  536. package/dist/is-promise-D8fY4qSb.mjs.map +0 -1
  537. package/dist/is-promise-DE9AP6eb.cjs +0 -1
  538. package/dist/is-react-element-BBgqI-yD.d.cts +0 -5
  539. package/dist/is-react-element-BBgqI-yD.d.cts.map +0 -1
  540. package/dist/is-react-element-CyrQE5Qy.d.mts +0 -5
  541. package/dist/is-react-element-CyrQE5Qy.d.mts.map +0 -1
  542. package/dist/is-react-element-GwN-78Xk.cjs +0 -1
  543. package/dist/is-react-element-s285_TUk.mjs +0 -2
  544. package/dist/is-react-element-s285_TUk.mjs.map +0 -1
  545. package/dist/is-ref-BiTQudvt.d.mts +0 -14
  546. package/dist/is-ref-BiTQudvt.d.mts.map +0 -1
  547. package/dist/is-ref-BqQN-H_W.cjs +0 -1
  548. package/dist/is-ref-C7Ce1mFX.d.cts +0 -14
  549. package/dist/is-ref-C7Ce1mFX.d.cts.map +0 -1
  550. package/dist/is-ref-DrnjEWuV.mjs +0 -2
  551. package/dist/is-ref-DrnjEWuV.mjs.map +0 -1
  552. package/dist/is-regexp-BRY1zuVr.d.mts +0 -20
  553. package/dist/is-regexp-BRY1zuVr.d.mts.map +0 -1
  554. package/dist/is-regexp-BWzNkf_C.d.cts +0 -20
  555. package/dist/is-regexp-BWzNkf_C.d.cts.map +0 -1
  556. package/dist/is-regexp-Beh3UwFi.mjs +0 -2
  557. package/dist/is-regexp-Beh3UwFi.mjs.map +0 -1
  558. package/dist/is-regexp-CLE6yUfd.cjs +0 -1
  559. package/dist/is-select-option-B5qnA3jc.d.cts.map +0 -1
  560. package/dist/is-select-option-DlTYFdDD.cjs +0 -1
  561. package/dist/is-select-option-DokUPHZT.d.mts.map +0 -1
  562. package/dist/is-select-option-U8pDtgdu.mjs +0 -2
  563. package/dist/is-select-option-U8pDtgdu.mjs.map +0 -1
  564. package/dist/is-set-BKGJRvlT.cjs +0 -1
  565. package/dist/is-set-DHpYu7nt.d.cts +0 -11
  566. package/dist/is-set-DHpYu7nt.d.cts.map +0 -1
  567. package/dist/is-set-Tym9nZwJ.d.mts +0 -11
  568. package/dist/is-set-Tym9nZwJ.d.mts.map +0 -1
  569. package/dist/is-set-XlU8yblR.mjs +0 -2
  570. package/dist/is-set-XlU8yblR.mjs.map +0 -1
  571. package/dist/is-set-array-BuFd2cLT.d.cts +0 -11
  572. package/dist/is-set-array-BuFd2cLT.d.cts.map +0 -1
  573. package/dist/is-set-array-C8erkOGG.cjs +0 -1
  574. package/dist/is-set-array-D6GXc5K_.mjs +0 -2
  575. package/dist/is-set-array-D6GXc5K_.mjs.map +0 -1
  576. package/dist/is-set-array-jWb--6v8.d.mts +0 -11
  577. package/dist/is-set-array-jWb--6v8.d.mts.map +0 -1
  578. package/dist/is-set-object-BC019q7K.d.mts +0 -11
  579. package/dist/is-set-object-BC019q7K.d.mts.map +0 -1
  580. package/dist/is-set-object-Cz1QFuwH.cjs +0 -1
  581. package/dist/is-set-object-DExQ3zYh.d.cts +0 -11
  582. package/dist/is-set-object-DExQ3zYh.d.cts.map +0 -1
  583. package/dist/is-set-object-m4I3zBXN.mjs +0 -2
  584. package/dist/is-set-object-m4I3zBXN.mjs.map +0 -1
  585. package/dist/is-set-string-B4g6w3Ao.mjs +0 -2
  586. package/dist/is-set-string-B4g6w3Ao.mjs.map +0 -1
  587. package/dist/is-set-string-BR3f8OLj.cjs +0 -1
  588. package/dist/is-set-string-D3GGXdVc.d.mts +0 -11
  589. package/dist/is-set-string-D3GGXdVc.d.mts.map +0 -1
  590. package/dist/is-set-string-DvPRqQ7I.d.cts +0 -11
  591. package/dist/is-set-string-DvPRqQ7I.d.cts.map +0 -1
  592. package/dist/is-string-25AuUYxV.mjs +0 -2
  593. package/dist/is-string-25AuUYxV.mjs.map +0 -1
  594. package/dist/is-string-BmMYO2ay.d.cts +0 -5
  595. package/dist/is-string-BmMYO2ay.d.cts.map +0 -1
  596. package/dist/is-string-C8M6iZP3.cjs +0 -1
  597. package/dist/is-string-CHChgess.d.mts +0 -5
  598. package/dist/is-string-CHChgess.d.mts.map +0 -1
  599. package/dist/is-symbol-B3bYbkXB.d.cts +0 -5
  600. package/dist/is-symbol-B3bYbkXB.d.cts.map +0 -1
  601. package/dist/is-symbol-Bv9PzCUy.cjs +0 -1
  602. package/dist/is-symbol-D_u8UXTL.mjs +0 -2
  603. package/dist/is-symbol-D_u8UXTL.mjs.map +0 -1
  604. package/dist/is-symbol-Da3X6_5Z.d.mts +0 -5
  605. package/dist/is-symbol-Da3X6_5Z.d.mts.map +0 -1
  606. package/dist/is-typed-BqNSbnTJ.d.mts +0 -14
  607. package/dist/is-typed-BqNSbnTJ.d.mts.map +0 -1
  608. package/dist/is-typed-C4R6VJn5.mjs +0 -2
  609. package/dist/is-typed-C4R6VJn5.mjs.map +0 -1
  610. package/dist/is-typed-CxfGWrLF.d.cts +0 -14
  611. package/dist/is-typed-CxfGWrLF.d.cts.map +0 -1
  612. package/dist/is-typed-array--rJ89kK-.cjs +0 -1
  613. package/dist/is-typed-array-BElfTaKt.mjs +0 -2
  614. package/dist/is-typed-array-BElfTaKt.mjs.map +0 -1
  615. package/dist/is-typed-array-BhzKADmY.d.mts +0 -5
  616. package/dist/is-typed-array-BhzKADmY.d.mts.map +0 -1
  617. package/dist/is-typed-array-D42U77hG.d.cts +0 -5
  618. package/dist/is-typed-array-D42U77hG.d.cts.map +0 -1
  619. package/dist/is-typed-nhM341AY.cjs +0 -1
  620. package/dist/is-undefined-8YL_WG1_.d.mts +0 -5
  621. package/dist/is-undefined-8YL_WG1_.d.mts.map +0 -1
  622. package/dist/is-undefined-CocoROYF.cjs +0 -1
  623. package/dist/is-undefined-DbcFVo7P.d.cts +0 -5
  624. package/dist/is-undefined-DbcFVo7P.d.cts.map +0 -1
  625. package/dist/is-undefined-zJ4jMmsc.mjs +0 -2
  626. package/dist/is-undefined-zJ4jMmsc.mjs.map +0 -1
  627. package/dist/is-url-B232i4b5.d.mts +0 -11
  628. package/dist/is-url-B232i4b5.d.mts.map +0 -1
  629. package/dist/is-url-BExxFY5T.cjs +0 -1
  630. package/dist/is-url-Bg2vBFiD.mjs +0 -2
  631. package/dist/is-url-Bg2vBFiD.mjs.map +0 -1
  632. package/dist/is-url-ClJ_Hmae.d.cts +0 -11
  633. package/dist/is-url-ClJ_Hmae.d.cts.map +0 -1
  634. package/dist/number-HSvmYyl0.d.mts.map +0 -1
  635. package/dist/number-lymv4bwC.d.cts.map +0 -1
  636. package/dist/property-exists-B4QTYKG6.d.mts +0 -20
  637. package/dist/property-exists-B4QTYKG6.d.mts.map +0 -1
  638. package/dist/property-exists-BUPlKKW9.d.cts +0 -20
  639. package/dist/property-exists-BUPlKKW9.d.cts.map +0 -1
  640. package/dist/property-exists-YUMbdTfN.cjs +0 -1
  641. package/dist/property-exists-clG9W4n9.mjs +0 -2
  642. package/dist/property-exists-clG9W4n9.mjs.map +0 -1
  643. package/dist/type-detect-D9u_obxe.mjs +0 -2
  644. package/dist/type-detect-D9u_obxe.mjs.map +0 -1
  645. package/dist/type-detect-Ddd2473y.cjs +0 -1
  646. package/dist/type-detect-DkhvTvm2.d.cts +0 -5
  647. package/dist/type-detect-DkhvTvm2.d.cts.map +0 -1
  648. package/dist/type-detect-lSIXsSvX.d.mts +0 -5
  649. package/dist/type-detect-lSIXsSvX.d.mts.map +0 -1
  650. package/dist/utilities-BcSwta4F.d.cts.map +0 -1
  651. package/dist/utilities-Dj_-Bvo1.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.mjs","names":[],"sources":["../../../../types/src/base.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { TypedArray } from \"./array\";\n\nexport type SerializablePrimitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | bigint;\nexport type Primitive = SerializablePrimitive | symbol;\n\n/**\n * Matches any primitive, `void`, `Date`, or `RegExp` value.\n */\nexport type BuiltIns = Primitive | void | Date | RegExp;\n\n/**\n * Matches any non-primitive object\n */\n// eslint-disable-next-line ts/no-unsafe-function-type\nexport type AtomicObject = Function | Promise<any> | Date | RegExp;\n\n/** Determines if the passed value is of a specific type */\nexport type TypeTester = (value: any) => boolean;\n\n/**\n * The interface for a type mapping (key =\\> function) to use for {@link getType}.\n * export * The key represents the name of the type. The function represents the {@link TypeTester | test method}.\n * The map should be ordered by testing preference, with more specific tests first.\n * If a test returns true, it is selected, and the key is returned as the type.\n */\nexport type TypeMap = Record<string, TypeTester>;\n\ndeclare const emptyObjectSymbol: unique symbol;\n\nexport type FunctionOrValue<Value> = Value extends () => infer X ? X : Value;\n\n/**\n * A [[List]]\n *\n * @example\n * ```ts\n * type list0 = [1, 2, 3]\n * type list1 = number[]\n * ```\n *\n * @param A - its type\n * @returns [[List]]\n */\nexport type List<A = any> = ReadonlyArray<A>;\n\n/**\n * Alias to create a [[Function]]\n *\n * @example\n * ```ts\n * import { FunctionLike } from '@stryke/types'\n *\n * type test0 = FunctionLike<[string, number], boolean>\n * /// (args_0: string, args_1: number) => boolean\n * ```\n *\n * @param P - parameters\n * @param R - return type\n * @returns [[Function]]\n */\nexport type FunctionLike<P extends List = any, R = any> = (...args: P) => R;\n\nexport type AnyFunction = FunctionLike<any, any>;\nexport type Nullish = undefined | null;\nexport type Nullishable<T> = T | Nullish;\nexport type NonNullishObject = object; // not null/undefined which are Object\nexport type NativeClass = abstract new (...args: any) => any;\nexport type AnyNumber = number | number;\nexport type AnyString = string | string;\nexport type AnyBoolean = boolean | boolean;\nexport type AnyArray = any[];\nexport type PlainObject = Record<any, object>; // https://stackoverflow.com/a/75052315/130638\nexport type AnyMap = Map<any, any>;\nexport type AnyWeakMap = WeakMap<WeakKey, any>;\nexport type EmptyArray = [];\nexport interface EmptyObject {\n [emptyObjectSymbol]?: never;\n}\n\nexport type Any =\n | boolean\n | number\n | bigint\n | string\n | null\n | undefined\n | void\n | symbol\n | object\n | PlainObject\n | AnyArray\n | AnyMap\n | AnyWeakMap;\n\n/**\n * The valid types of the index for an `Indexable` type object\n */\nexport type IndexType = string | number | symbol;\n\n/**\n * The declaration of a ***dictionary-type*** object with a specific type\n *\n * @see {@link Indexable}\n * @see {@link IndexType}\n * @see {@link Dictionary}\n */\nexport type TypedIndexable<T> = Record<IndexType, T>;\n\n/**\n * The declaration of a ***dictionary-type*** object\n *\n * @see {@link TypedIndexable}\n * @see {@link IndexType}\n * @see {@link Dictionary}\n */\nexport type Indexable = TypedIndexable<any>;\n\n/**\n * The declaration of a ***dictionary-type*** object with a specific type\n *\n * @see {@link Indexable}\n * @see {@link IndexType}\n * @see {@link TypedIndexable}\n */\nexport type Dictionary<T> = Record<string, T>;\n\nexport const EMPTY_STRING = \"\";\nexport const NEWLINE_STRING = \"\\r\\n\";\nexport const EMPTY_OBJECT = {};\n\nexport type AnyCase<T extends IndexType> = string extends T\n ? string\n : T extends `${infer F1}${infer F2}${infer R}`\n ? `${Uppercase<F1> | Lowercase<F1>}${Uppercase<F2> | Lowercase<F2>}${AnyCase<R>}`\n : T extends `${infer F}${infer R}`\n ? `${Uppercase<F> | Lowercase<F>}${AnyCase<R>}`\n : typeof EMPTY_STRING;\n\nexport type Newable<T> = new (..._args: never[]) => T;\n\nexport interface Abstract<T> {\n prototype: T;\n}\n\nexport interface Clonable<T> {\n clone: () => T;\n}\n\nexport type MaybePromise<T> = T | Promise<T>;\n\nexport type ReducerFunction<TState, TAction> = (\n state: TState,\n action: TAction\n) => TState;\n\n// NOTE: for the file size optimization\nexport const TYPE_ARGUMENTS = \"Arguments\";\nexport const TYPE_ARRAY = \"Array\";\nexport const TYPE_OBJECT = \"Object\";\nexport const TYPE_MAP = \"Map\";\nexport const TYPE_SET = \"Set\";\n\nexport type Collection =\n | IArguments\n | unknown[]\n | Map<unknown, unknown>\n | Record<string | number | symbol, unknown>\n | Set<unknown>;\n\nexport type NonUndefined<T> = T extends undefined ? never : T;\n\nexport type BrowserNativeObject = Date | File;\n\nexport type DeepPartial<T> = T extends BrowserNativeObject | NestedValue\n ? T\n : {\n [K in keyof T]?: DeepPartial<T[K]>;\n };\n\nexport type Rollback = Record<\n string,\n (initialValue: any, currentValue: any) => any\n>;\n\n/**\n * Extract all required keys from the given type.\n *\n * @remarks\n * This is useful when you want to create a new type that contains different type values for the required keys only or use the list of keys for validation purposes, etc...\n */\nexport type RequiredKeysOf<BaseType extends object> = Exclude<\n {\n [Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]>\n ? Key\n : never;\n }[keyof BaseType],\n undefined\n>;\n\n/**\n * Returns a boolean for whether the two given types are equal.\n *\n * @remarks\n * Use-cases: If you want to make a conditional branch based on the result of a comparison of two types.\n *\n * @see https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650\n * @see https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796\n */\nexport type IsEqual<A, B> =\n (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B ? 1 : 2\n ? true\n : false;\n\nexport type Filter<KeyType, ExcludeType> =\n IsEqual<KeyType, ExcludeType> extends true\n ? never\n : KeyType extends ExcludeType\n ? never\n : KeyType;\n\ninterface ExceptOptions {\n /**\n Disallow assigning non-specified properties.\n\n Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.\n\n @defaultValue false\n */\n requireExactProps?: boolean;\n}\n\n/**\n * Create a type from an object type without certain keys.\n *\n * @remarks\n * We recommend setting the `requireExactProps` option to `true`.\n *\n * This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.\n *\n * This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).\n */\nexport type Except<\n ObjectType,\n KeysType extends keyof ObjectType,\n Options extends ExceptOptions = { requireExactProps: false }\n> = {\n [KeyType in keyof ObjectType as Filter<\n KeyType,\n KeysType\n >]: ObjectType[KeyType];\n} & (Options[\"requireExactProps\"] extends true\n ? Partial<Record<KeysType, never>>\n : Record<string, never>);\n\n/**\n * Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.\n *\n * @remarks\n * Sometimes it is desired to pass a value as a function argument that has a different type. At first inspection it may seem assignable, and then you discover it is not because the `value`'s type definition was defined as an interface. In the following example, `fn` requires an argument of type `Record<string, unknown>`. If the value is defined as a literal, then it is assignable. And if the `value` is defined as type using the `Simplify` utility the value is assignable. But if the `value` is defined as an interface, it is not assignable because the interface is not sealed and elsewhere a non-string property could be added to the interface.\n *\n * If the type definition must be an interface (perhaps it was defined in a third-party npm package), then the `value` can be defined as `const value: Simplify<SomeInterface> = ...`. Then `value` will be assignable to the `fn` argument. Or the `value` can be cast as `Simplify<SomeInterface>` if you can't re-declare the `value`.\n *\n * @see https://github.com/microsoft/TypeScript/issues/15300\n */\nexport type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};\n\n/**\n * Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the `SetOptional` type.\n *\n * @remarks\n * Use-case: You want to define a single model where the only thing that changes is whether or not some of the keys are required.\n */\nexport type SetRequired<\n BaseType,\n Keys extends keyof BaseType\n> = BaseType extends unknown // type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types). // union into a [distributive conditional // `extends unknown` is always going to be the case and is used to convert any\n ? Simplify<\n // Pick just the keys that are optional from the base type.\n Except<BaseType, Keys> &\n // Pick the keys that should be required from the base type and make them required.\n Required<Pick<BaseType, Keys>>\n >\n : never;\n\nexport const $NestedValue: unique symbol = Symbol(\"NestedValue\");\n\nexport type NestedValue<TValue extends object = object> = {\n [$NestedValue]: never;\n} & TValue;\n\nexport interface RefObject<T> {\n current: T;\n}\n\nexport interface Identity<T = string> {\n id: T;\n}\n\nexport interface Versioned {\n version: number;\n}\n\nexport interface Sequenced {\n /**\n * The sequence number (version, or event counter, etc.) of the record\n */\n sequence: number;\n}\n\nexport interface Typed {\n /**\n * The type of the record\n */\n __type: string;\n}\n\nexport interface ClassTypeCheckable<T> extends Typed {\n /**\n * Run type check on the given value\n * @param value - The value to check\n * @returns True if the value is of the type of the class\n */\n isTypeOf: (value: unknown) => value is T;\n}\n\n/**\n * Matches non-recursive types.\n */\nexport type NonRecursiveType =\n | BuiltIns\n // eslint-disable-next-line ts/no-unsafe-function-type\n | Function\n | (new (...arguments_: any[]) => unknown);\n\nexport type IsPrimitive<T> = [T] extends [Primitive] ? true : false;\nexport type IsNever<T> = [T] extends [never] ? true : false;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type IsNull<T> = [T] extends [null] ? true : false;\nexport type IsUndefined<T> = T extends undefined ? true : false;\nexport type IsUnknown<T> = unknown extends T // `T` can be `unknown` or `any`\n ? IsNull<T> extends false // `any` can be `null`, but `unknown` can't be\n ? true\n : false\n : false;\nexport type IsNullish<T> = IsNull<T> & IsUndefined<T>;\nexport type IsFunction<T> = T extends AnyFunction ? true : false;\n\n/**\n * Declare locally scoped properties on `globalThis`.\n *\n * When defining a global variable in a declaration file is inappropriate, it can be helpful to define a `type` or `interface` (say `ExtraGlobals`) with the global variable and then cast `globalThis` via code like `globalThis as unknown as ExtraGlobals`.\n *\n * Instead of casting through `unknown`, you can update your `type` or `interface` to extend `GlobalThis` and then directly cast `globalThis`.\n *\n * @example\n * ```\n * import type { GlobalThis } from '@stryke/types';\n *\n * type ExtraGlobals = GlobalThis & {\n * readonly GLOBAL_TOKEN: string;\n * };\n *\n * (globalThis as ExtraGlobals).GLOBAL_TOKEN;\n * ```\n */\nexport type GlobalThis = typeof globalThis;\n\n/**\n * Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).\n */\nexport interface Class<T, Arguments extends unknown[] = any[]> {\n prototype: Pick<T, keyof T>;\n new (...arguments_: Arguments): T;\n}\n\n/**\n * Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).\n */\nexport type Constructor<T, Arguments extends unknown[] = any[]> = new (\n ...arguments_: Arguments\n) => T;\n\n/**\n * Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/classes.html#abstract-classes).\n *\n * @privateRemarks\n * We cannot use a `type` here because TypeScript throws: 'abstract' modifier cannot appear on a type member. (1070)\n */\n\nexport interface AbstractClass<\n T,\n Arguments extends unknown[] = any[]\n> extends AbstractConstructor<T, Arguments> {\n prototype: Pick<T, keyof T>;\n}\n\n/**\n * Matches an [`abstract class`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures) constructor.\n */\nexport type AbstractConstructor<\n T,\n Arguments extends unknown[] = any[]\n> = abstract new (...arguments_: Arguments) => T;\n\n/**\n * Create a tuple type of the given length `<L>` and fill it with the given type `<Fill>`.\n *\n * If `<Fill>` is not provided, it will default to `unknown`.\n *\n * @see https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f\n */\nexport type BuildTuple<\n L extends number,\n Fill = unknown,\n T extends readonly unknown[] = []\n> = T[\"length\"] extends L ? T : BuildTuple<L, Fill, [...T, Fill]>;\n\n/**\n * Test if the given function has multiple call signatures.\n *\n * Needed to handle the case of a single call signature with properties.\n *\n * Multiple call signatures cannot currently be supported due to a TypeScript limitation.\n * @see https://github.com/microsoft/TypeScript/issues/29732\n */\nexport type HasMultipleCallSignatures<\n T extends (...arguments_: any[]) => unknown\n> = T extends {\n (...arguments_: infer A): unknown;\n (...arguments_: infer B): unknown;\n}\n ? B extends A\n ? A extends B\n ? false\n : true\n : true\n : false;\n\ntype StructuredCloneablePrimitive =\n | string\n | number\n | bigint\n | boolean\n | null\n | undefined\n | boolean\n | number\n | string;\n\ntype StructuredCloneableData =\n | ArrayBuffer\n | DataView\n | Date\n | Error\n | RegExp\n | TypedArray\n | Blob\n | File;\n\n// DOM exclusive types\n// | AudioData\n// | CropTarget\n// | CryptoKey\n// | DOMException\n// | DOMMatrix\n// | DOMMatrixReadOnly\n// | DOMPoint\n// | DOMPointReadOnly\n// | DOMQuad\n// | DOMRect\n// | DOMRectReadOnly\n// | FileList\n// | FileSystemDirectoryHandle\n// | FileSystemFileHandle\n// | FileSystemHandle\n// | GPUCompilationInfo\n// | GPUCompilationMessage\n// | ImageBitmap\n// | ImageData\n// | RTCCertificate\n// | VideoFrame\n\ntype StructuredCloneableCollection =\n | readonly StructuredCloneable[]\n | {\n readonly [key: string]: StructuredCloneable;\n readonly [key: number]: StructuredCloneable;\n }\n | ReadonlyMap<StructuredCloneable, StructuredCloneable>\n | ReadonlySet<StructuredCloneable>;\n\n/**\n * Matches a value that can be losslessly cloned using `structuredClone`.\n *\n * Note:\n * - Custom error types will be cloned as the base `Error` type\n * - This type doesn't include types exclusive to the TypeScript DOM library (e.g. `DOMRect` and `VideoFrame`)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm\n *\n * @example\n * ```\n * import type { StructuredCloneable } from '@stryke/types';\n *\n * class CustomClass {}\n *\n * // @ts-expect-error\n * const error: StructuredCloneable = {\n * custom: new CustomClass(),\n * };\n *\n * structuredClone(error);\n * //=> {custom: {}}\n *\n * const good: StructuredCloneable = {\n * number: 3,\n * date: new Date(),\n * map: new Map<string, number>(),\n * }\n *\n * good.map.set('key', 1);\n *\n * structuredClone(good);\n * //=> {number: 3, date: Date(2022-10-17 22:22:35.920), map: Map {'key' -> 1}}\n * ```\n */\nexport type StructuredCloneable =\n | StructuredCloneablePrimitive\n | StructuredCloneableData\n | StructuredCloneableCollection;\n"],"mappings":"AAsJA,MAAa,EAAe"}
@@ -0,0 +1,24 @@
1
+ import { ValidationDetail } from "./validations.cjs";
2
+
3
+ //#region ../types/src/file.d.ts
4
+ type FileStatus = "initialized" | "validated" | "uploaded" | "failed";
5
+ /**
6
+ * A type that representing a file object.
7
+ */
8
+ type FileResult = {
9
+ name: string;
10
+ status: FileStatus;
11
+ issues?: ValidationDetail[];
12
+ size?: number;
13
+ mimeType?: string;
14
+ lastModified?: number;
15
+ } & ({
16
+ uri: string;
17
+ file?: File;
18
+ } | {
19
+ uri?: string;
20
+ file: File;
21
+ });
22
+ //#endregion
23
+ export { FileResult };
24
+ //# sourceMappingURL=file.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.cts","names":[],"sources":["../../../../types/src/file.ts"],"sourcesContent":[],"mappings":";;;KAoBY,UAAA;;AAAZ;AAKA;AAEU,KAFE,UAAA,GAEF;EACC,IAAA,EAAA,MAAA;EAOE,MAAA,EARH,UAQG;EAID,MAAA,CAAA,EAXD,gBAWC,EAAA;EAAI,IAAA,CAAA,EAAA,MAAA;;;;;SAJH;;;QAID"}
@@ -0,0 +1,24 @@
1
+ import { ValidationDetail } from "./validations.mjs";
2
+
3
+ //#region ../types/src/file.d.ts
4
+ type FileStatus = "initialized" | "validated" | "uploaded" | "failed";
5
+ /**
6
+ * A type that representing a file object.
7
+ */
8
+ type FileResult = {
9
+ name: string;
10
+ status: FileStatus;
11
+ issues?: ValidationDetail[];
12
+ size?: number;
13
+ mimeType?: string;
14
+ lastModified?: number;
15
+ } & ({
16
+ uri: string;
17
+ file?: File;
18
+ } | {
19
+ uri?: string;
20
+ file: File;
21
+ });
22
+ //#endregion
23
+ export { FileResult };
24
+ //# sourceMappingURL=file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.mts","names":[],"sources":["../../../../types/src/file.ts"],"sourcesContent":[],"mappings":";;;KAoBY,UAAA;;AAAZ;AAKA;AAEU,KAFE,UAAA,GAEF;EACC,IAAA,EAAA,MAAA;EAOE,MAAA,EARH,UAQG;EAID,MAAA,CAAA,EAXD,gBAWC,EAAA;EAAI,IAAA,CAAA,EAAA,MAAA;;;;;SAJH;;;QAID"}
@@ -1,4 +1,4 @@
1
- import { n as NameValuePair } from "./utilities-BcSwta4F.cjs";
1
+ import { NameValuePair } from "./utilities.cjs";
2
2
 
3
3
  //#region ../types/src/form.d.ts
4
4
  type SelectOptionValue = string | number | boolean | null;
@@ -36,14 +36,5 @@ interface SelectOption<TValue extends SelectOptionValue = SelectOptionValue, TNa
36
36
  selected: boolean;
37
37
  }
38
38
  //#endregion
39
- //#region src/is-select-option.d.ts
40
- /**
41
- * Check if the provided value's type is SelectOption
42
- *
43
- * @param value - The value to type check
44
- * @returns An indicator specifying if the object provided is of type SelectOption
45
- */
46
- declare const isSelectOption: (value: unknown) => value is SelectOption;
47
- //#endregion
48
- export { isSelectOption as t };
49
- //# sourceMappingURL=is-select-option-B5qnA3jc.d.cts.map
39
+ export { SelectOption };
40
+ //# sourceMappingURL=form.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.cts","names":[],"sources":["../../../../types/src/form.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA;;AAAZ;AAKA;AACiB,UADA,YACA,CAAA,eAAA,iBAAA,GAAoB,iBAApB,EAAA,QAAA,MAAA,CAAA,SAEP,aAFO,CAEO,MAFP,EAEe,KAFf,CAAA,CAAA;EAAoB;;;EAE3B,KAAA,EAAA,MAAA;EAAa"}
@@ -1,4 +1,4 @@
1
- import { n as NameValuePair } from "./utilities-Dj_-Bvo1.mjs";
1
+ import { NameValuePair } from "./utilities.mjs";
2
2
 
3
3
  //#region ../types/src/form.d.ts
4
4
  type SelectOptionValue = string | number | boolean | null;
@@ -36,14 +36,5 @@ interface SelectOption<TValue extends SelectOptionValue = SelectOptionValue, TNa
36
36
  selected: boolean;
37
37
  }
38
38
  //#endregion
39
- //#region src/is-select-option.d.ts
40
- /**
41
- * Check if the provided value's type is SelectOption
42
- *
43
- * @param value - The value to type check
44
- * @returns An indicator specifying if the object provided is of type SelectOption
45
- */
46
- declare const isSelectOption: (value: unknown) => value is SelectOption;
47
- //#endregion
48
- export { isSelectOption as t };
49
- //# sourceMappingURL=is-select-option-DokUPHZT.d.mts.map
39
+ export { SelectOption };
40
+ //# sourceMappingURL=form.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.mts","names":[],"sources":["../../../../types/src/form.ts"],"sourcesContent":[],"mappings":";;;KAoBY,iBAAA;;AAAZ;AAKA;AACiB,UADA,YACA,CAAA,eAAA,iBAAA,GAAoB,iBAApB,EAAA,QAAA,MAAA,CAAA,SAEP,aAFO,CAEO,MAFP,EAEe,KAFf,CAAA,CAAA;EAAoB;;;EAE3B,KAAA,EAAA,MAAA;EAAa"}
@@ -0,0 +1,16 @@
1
+ //#region ../types/src/messages.d.ts
2
+ type MessageType = "help" | "error" | "warning" | "info" | "success";
3
+ type MessageDetails<TMessageType extends MessageType = MessageType> = {
4
+ code: string;
5
+ message?: string;
6
+ type: TMessageType;
7
+ params?: Record<string, any>;
8
+ } | {
9
+ code?: string;
10
+ message: string;
11
+ type: TMessageType;
12
+ params?: Record<string, any>;
13
+ };
14
+ //#endregion
15
+ export { MessageDetails, MessageType };
16
+ //# sourceMappingURL=messages.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.cts","names":[],"sources":["../../../../types/src/messages.ts"],"sourcesContent":[],"mappings":";KAkBY,WAAA;AAAA,KAEA,cAFW,CAAA,qBAEyB,WAFzB,GAEuC,WAFvC,CAAA,GAAA;EAEX,IAAA,EAAA,MAAA;EAAoC,OAAA,CAAA,EAAA,MAAA;EAAc,IAAA,EAIlD,YAJkD;EAIlD,MAAA,CAAA,EACG,MADH,CAAA,MAAA,EAAA,GAAA,CAAA;CACG,GAAA;EAKH,IAAA,CAAA,EAAA,MAAA;EACG,OAAA,EAAA,MAAA;EAAM,IAAA,EADT,YACS;WAAN"}
@@ -0,0 +1,16 @@
1
+ //#region ../types/src/messages.d.ts
2
+ type MessageType = "help" | "error" | "warning" | "info" | "success";
3
+ type MessageDetails<TMessageType extends MessageType = MessageType> = {
4
+ code: string;
5
+ message?: string;
6
+ type: TMessageType;
7
+ params?: Record<string, any>;
8
+ } | {
9
+ code?: string;
10
+ message: string;
11
+ type: TMessageType;
12
+ params?: Record<string, any>;
13
+ };
14
+ //#endregion
15
+ export { MessageDetails, MessageType };
16
+ //# sourceMappingURL=messages.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.mts","names":[],"sources":["../../../../types/src/messages.ts"],"sourcesContent":[],"mappings":";KAkBY,WAAA;AAAA,KAEA,cAFW,CAAA,qBAEyB,WAFzB,GAEuC,WAFvC,CAAA,GAAA;EAEX,IAAA,EAAA,MAAA;EAAoC,OAAA,CAAA,EAAA,MAAA;EAAc,IAAA,EAIlD,YAJkD;EAIlD,MAAA,CAAA,EACG,MADH,CAAA,MAAA,EAAA,GAAA,CAAA;CACG,GAAA;EAKH,IAAA,CAAA,EAAA,MAAA;EACG,OAAA,EAAA,MAAA;EAAM,IAAA,EADT,YACS;WAAN"}
@@ -20,5 +20,5 @@ type IsFloat<T> = T extends number ? `${T}` extends `${string | number | bigint
20
20
  */
21
21
  type Float<T> = T extends unknown ? IsFloat<T> extends true ? T : never : never;
22
22
  //#endregion
23
- export { Float as t };
24
- //# sourceMappingURL=number-HSvmYyl0.d.mts.map
23
+ export { Float };
24
+ //# sourceMappingURL=number.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.cts","names":[],"sources":["../../../../types/src/number.ts"],"sourcesContent":[],"mappings":";;AA8HY,KAxGA,IAAA,GAwGO,CAAA,GAAA,EAAA;KAAP,aAAa,sBAClB,kIACe;;;;;;;;;;;;;;;;;KAsBV,WAAW,oBACnB,QAAQ,kBACN"}
@@ -20,5 +20,5 @@ type IsFloat<T> = T extends number ? `${T}` extends `${string | number | bigint
20
20
  */
21
21
  type Float<T> = T extends unknown ? IsFloat<T> extends true ? T : never : never;
22
22
  //#endregion
23
- export { Float as t };
24
- //# sourceMappingURL=number-lymv4bwC.d.cts.map
23
+ export { Float };
24
+ //# sourceMappingURL=number.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.mts","names":[],"sources":["../../../../types/src/number.ts"],"sourcesContent":[],"mappings":";;AA8HY,KAxGA,IAAA,GAwGO,CAAA,GAAA,EAAA;KAAP,aAAa,sBAClB,kIACe;;;;;;;;;;;;;;;;;KAsBV,WAAW,oBACnB,QAAQ,kBACN"}
@@ -1,4 +1,4 @@
1
- import { t as Index40 } from "./utilities-BcSwta4F.cjs";
1
+ import { Index40 } from "./utilities.cjs";
2
2
 
3
3
  //#region ../types/src/object.d.ts
4
4
 
@@ -12,41 +12,5 @@ type PrefixObjectAccessor<T extends object, TDepth extends any[]> = { [K in keyo
12
12
  type PrefixFromDepth<T extends number | string, TDepth extends any[]> = TDepth["length"] extends 0 ? T : `.${T}`;
13
13
  type DeepKey<T, TDepth extends any[] = []> = TDepth["length"] extends 5 ? never : unknown extends T ? PrefixFromDepth<string, TDepth> : T extends IsTuple<T> & any[] ? PrefixTupleAccessor<T, AllowedIndexes<T>, TDepth> : T extends any[] ? PrefixArrayAccessor<T, [...TDepth, any]> : T extends Date ? never : T extends object ? PrefixObjectAccessor<T, TDepth> : T extends bigint | boolean | number | string ? "" : never;
14
14
  //#endregion
15
- //#region src/is-deep-key.d.ts
16
- /**
17
- * Checks if a given key is a deep key.
18
- *
19
- * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
20
- *
21
- * @example
22
- * isDeepKey('a.b') // true
23
- * isDeepKey('a[b]') // true
24
- * isDeepKey('a') // false
25
- * isDeepKey(123) // false
26
- * isDeepKey('a.b.c') // true
27
- * isDeepKey('a[b][c]') // true
28
- *
29
- * @param key - The key to check.
30
- * @returns Returns true if the key is a deep key, otherwise false.
31
- */
32
- declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
33
- /**
34
- * Checks if a given key is a deep key or normal (shallow key).
35
- *
36
- * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
37
- *
38
- * @example
39
- * isDeepKey('a.b') // true
40
- * isDeepKey('a[b]') // true
41
- * isDeepKey('a') // true
42
- * isDeepKey(123) // false
43
- * isDeepKey('a.b.c') // true
44
- * isDeepKey('a[b][c]') // true
45
- *
46
- * @param key - The key to check.
47
- * @returns Returns true if the key is a deep key, otherwise false.
48
- */
49
- declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
50
- //#endregion
51
- export { isKeyOrDeepKey as n, isDeepKey as t };
52
- //# sourceMappingURL=is-deep-key-CDPjONep.d.cts.map
15
+ export { DeepKey };
16
+ //# sourceMappingURL=object.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.cts","names":[],"sources":["../../../../types/src/object.ts"],"sourcesContent":[],"mappings":";;;;KAwrBK,aAAa;;oCACC,UACb;KAKD,4EAGD,4BACA,OACA,uDACE,eAAe,MAAM,OAAO,kBAC5B;KAED,2EACS,kBAAkB,QAAQ,EAAE,IAAI;KAGzC,4FAKG,aAAa,KAAK,QAAQ,EAAE,IAAI,gBAAgB,OACtD;KAEG,6EACS,MAAM,+BAEP,gBAAgB,GAAG,UAAU,QAAQ,EAAE,KAAK,aAC/C,gBAAgB,GAAG,wBAErB;KAEH,mEAGD,6BAA6B,QAAQ;KAE7B,wCAAwC,qDAEhC,IACd,wBAAwB,UACxB,UAAU,QAAQ,aAChB,oBAAoB,GAAG,eAAe,IAAI,UAC1C,kBACE,oBAAoB,OAAO,gBAC3B,UAAU,eAER,mBACE,qBAAqB,GAAG,UACxB"}
@@ -1,4 +1,4 @@
1
- import { t as Index40 } from "./utilities-Dj_-Bvo1.mjs";
1
+ import { Index40 } from "./utilities.mjs";
2
2
 
3
3
  //#region ../types/src/object.d.ts
4
4
 
@@ -12,41 +12,5 @@ type PrefixObjectAccessor<T extends object, TDepth extends any[]> = { [K in keyo
12
12
  type PrefixFromDepth<T extends number | string, TDepth extends any[]> = TDepth["length"] extends 0 ? T : `.${T}`;
13
13
  type DeepKey<T, TDepth extends any[] = []> = TDepth["length"] extends 5 ? never : unknown extends T ? PrefixFromDepth<string, TDepth> : T extends IsTuple<T> & any[] ? PrefixTupleAccessor<T, AllowedIndexes<T>, TDepth> : T extends any[] ? PrefixArrayAccessor<T, [...TDepth, any]> : T extends Date ? never : T extends object ? PrefixObjectAccessor<T, TDepth> : T extends bigint | boolean | number | string ? "" : never;
14
14
  //#endregion
15
- //#region src/is-deep-key.d.ts
16
- /**
17
- * Checks if a given key is a deep key.
18
- *
19
- * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
20
- *
21
- * @example
22
- * isDeepKey('a.b') // true
23
- * isDeepKey('a[b]') // true
24
- * isDeepKey('a') // false
25
- * isDeepKey(123) // false
26
- * isDeepKey('a.b.c') // true
27
- * isDeepKey('a[b][c]') // true
28
- *
29
- * @param key - The key to check.
30
- * @returns Returns true if the key is a deep key, otherwise false.
31
- */
32
- declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
33
- /**
34
- * Checks if a given key is a deep key or normal (shallow key).
35
- *
36
- * A deep key is a string that contains a dot (.) or square brackets with a property accessor.
37
- *
38
- * @example
39
- * isDeepKey('a.b') // true
40
- * isDeepKey('a[b]') // true
41
- * isDeepKey('a') // true
42
- * isDeepKey(123) // false
43
- * isDeepKey('a.b.c') // true
44
- * isDeepKey('a[b][c]') // true
45
- *
46
- * @param key - The key to check.
47
- * @returns Returns true if the key is a deep key, otherwise false.
48
- */
49
- declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
50
- //#endregion
51
- export { isKeyOrDeepKey as n, isDeepKey as t };
52
- //# sourceMappingURL=is-deep-key-R3slkUpl.d.mts.map
15
+ export { DeepKey };
16
+ //# sourceMappingURL=object.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.d.mts","names":[],"sources":["../../../../types/src/object.ts"],"sourcesContent":[],"mappings":";;;;KAwrBK,aAAa;;oCACC,UACb;KAKD,4EAGD,4BACA,OACA,uDACE,eAAe,MAAM,OAAO,kBAC5B;KAED,2EACS,kBAAkB,QAAQ,EAAE,IAAI;KAGzC,4FAKG,aAAa,KAAK,QAAQ,EAAE,IAAI,gBAAgB,OACtD;KAEG,6EACS,MAAM,+BAEP,gBAAgB,GAAG,UAAU,QAAQ,EAAE,KAAK,aAC/C,gBAAgB,GAAG,wBAErB;KAEH,mEAGD,6BAA6B,QAAQ;KAE7B,wCAAwC,qDAEhC,IACd,wBAAwB,UACxB,UAAU,QAAQ,aAChB,oBAAoB,GAAG,eAAe,IAAI,UAC1C,kBACE,oBAAoB,OAAO,gBAC3B,UAAU,eAER,mBACE,qBAAqB,GAAG,UACxB"}
@@ -16,5 +16,5 @@ interface NameValuePair<TValue, TName = string> {
16
16
  value: TValue;
17
17
  }
18
18
  //#endregion
19
- export { NameValuePair as n, Index40 as t };
20
- //# sourceMappingURL=utilities-BcSwta4F.d.cts.map
19
+ export { Index40, NameValuePair };
20
+ //# sourceMappingURL=utilities.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.cts","names":[],"sources":["../../../../types/src/utilities.ts"],"sourcesContent":[],"mappings":";;KA6CY,gEAGR,yBAAyB,IACzB,SACA,aAAa,OAAO,QAAQ;KAEpB,OAAA,GAAU;;;;UAKL;;;;QAIT;;;;SAKC"}
@@ -16,5 +16,5 @@ interface NameValuePair<TValue, TName = string> {
16
16
  value: TValue;
17
17
  }
18
18
  //#endregion
19
- export { NameValuePair as n, Index40 as t };
20
- //# sourceMappingURL=utilities-Dj_-Bvo1.d.mts.map
19
+ export { Index40, NameValuePair };
20
+ //# sourceMappingURL=utilities.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.mts","names":[],"sources":["../../../../types/src/utilities.ts"],"sourcesContent":[],"mappings":";;KA6CY,gEAGR,yBAAyB,IACzB,SACA,aAAa,OAAO,QAAQ;KAEpB,OAAA,GAAU;;;;UAKL;;;;QAIT;;;;SAKC"}
@@ -0,0 +1,15 @@
1
+ import { MessageDetails, MessageType } from "./messages.cjs";
2
+
3
+ //#region ../types/src/validations.d.ts
4
+ type ValidationDetail<TMessageType extends MessageType = MessageType> = MessageDetails<TMessageType> & {
5
+ /**
6
+ * The field path that the message is related to.
7
+ *
8
+ * @remarks
9
+ * If `undefined` or `null`, the message is not related to a specific field - in this case it is likely a global/form message.
10
+ */
11
+ path?: string | null;
12
+ };
13
+ //#endregion
14
+ export { ValidationDetail };
15
+ //# sourceMappingURL=validations.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validations.d.cts","names":[],"sources":["../../../../types/src/validations.ts"],"sourcesContent":[],"mappings":";;;KAoBY,sCAAsC,cAAc,eAC9D,eAAe;;AADjB;;;;;EACgB,IAAA,CAAA,EAAA,MAAA,GAAA,IAAA"}
@@ -0,0 +1,15 @@
1
+ import { MessageDetails, MessageType } from "./messages.mjs";
2
+
3
+ //#region ../types/src/validations.d.ts
4
+ type ValidationDetail<TMessageType extends MessageType = MessageType> = MessageDetails<TMessageType> & {
5
+ /**
6
+ * The field path that the message is related to.
7
+ *
8
+ * @remarks
9
+ * If `undefined` or `null`, the message is not related to a specific field - in this case it is likely a global/form message.
10
+ */
11
+ path?: string | null;
12
+ };
13
+ //#endregion
14
+ export { ValidationDetail };
15
+ //# sourceMappingURL=validations.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validations.d.mts","names":[],"sources":["../../../../types/src/validations.ts"],"sourcesContent":[],"mappings":";;;KAoBY,sCAAsC,cAAc,eAC9D,eAAe;;AADjB;;;;;EACgB,IAAA,CAAA,EAAA,MAAA,GAAA,IAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/type-checks",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "type": "module",
5
5
  "description": "A package containing various type-check functions to validate TypeScript values.",
6
6
  "repository": {
@@ -192,7 +192,7 @@
192
192
  "./*": "./*"
193
193
  },
194
194
  "types": "./dist/index.d.cts",
195
- "devDependencies": { "tsdown": "^0.17.1" },
195
+ "devDependencies": { "tsdown": "^0.17.2" },
196
196
  "publishConfig": { "access": "public" },
197
- "gitHead": "4fbdaeaa2b52b9665280e6c7cd5fee37031b9564"
197
+ "gitHead": "8f2e484743eb3ce54929e99096ca2ea188b4730e"
198
198
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-BghPfa26.d.mts","names":[],"sources":["../../types/src/base.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;KAmEY,gBAAgB,cAAc;;;;;;;;;;;;;;;;KAiB9B,uBAAuB,mCAAiC,MAAM;KAE9D,WAAA,GAAc;KAId,WAAA;KACA,SAAA;KAIA,WAAA,GAAc;KA2Fd,UAAA,GACR,yBAEA,wBACA,4CACA;UA2Ha;WACN;;UAkBM,KAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-DsupRZHl.d.cts","names":[],"sources":["../../types/src/base.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;KAmEY,gBAAgB,cAAc;;;;;;;;;;;;;;;;KAiB9B,uBAAuB,mCAAiC,MAAM;KAE9D,WAAA,GAAc;KAId,WAAA;KACA,SAAA;KAIA,WAAA,GAAc;KA2Fd,UAAA,GACR,yBAEA,wBACA,4CACA;UA2Ha;WACN;;UAkBM,KAAA"}
@@ -1 +0,0 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,11 +0,0 @@
1
- //#region src/get-object-tag.d.ts
2
- /**
3
- * Gets the `toStringTag` of `obj`.
4
- *
5
- * @param value - The obj to query.
6
- * @returns Returns the `toStringTag`.
7
- */
8
- declare const getObjectTag: (value: unknown) => string;
9
- //#endregion
10
- export { getObjectTag as t };
11
- //# sourceMappingURL=get-object-tag-D0q0p9ux.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-object-tag-D0q0p9ux.d.mts","names":[],"sources":["../src/get-object-tag.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;cAAa"}
@@ -1,2 +0,0 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);export{e as t};
2
- //# sourceMappingURL=get-object-tag-DF2FAXqH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-object-tag-DF2FAXqH.mjs","names":[],"sources":["../src/get-object-tag.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n"],"mappings":"AAwBA,MAAa,EAAgB,GACvB,GAAS,KACJ,IAAU,IAAA,GAAY,qBAAuB,gBAE/C,OAAO,UAAU,SAAS,KAAK,EAAM"}
@@ -1,11 +0,0 @@
1
- //#region src/get-object-tag.d.ts
2
- /**
3
- * Gets the `toStringTag` of `obj`.
4
- *
5
- * @param value - The obj to query.
6
- * @returns Returns the `toStringTag`.
7
- */
8
- declare const getObjectTag: (value: unknown) => string;
9
- //#endregion
10
- export { getObjectTag as t };
11
- //# sourceMappingURL=get-object-tag-Tv3TsAc5.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-object-tag-Tv3TsAc5.d.cts","names":[],"sources":["../src/get-object-tag.ts"],"sourcesContent":[],"mappings":";;AAwBA;;;;;cAAa"}
@@ -1,2 +0,0 @@
1
- import{n as e}from"./is-number-ChPAVili.mjs";import{t}from"./is-empty-DQObAY-0.mjs";import{i as n}from"./is-object-ANQi7JgS.mjs";const r=r=>n(r)&&!t(r)&&`length`in r&&e(r.length)&&(r.length===0||r.length>0&&Object.prototype.hasOwnProperty.call(r,r.length-1));export{r as t};
2
- //# sourceMappingURL=is-array-like-BlG3BXac.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-array-like-BlG3BXac.mjs","names":[],"sources":["../src/is-array-like.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isEmpty } from \"./is-empty\";\nimport { isNumber } from \"./is-number\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is \"array-like\"\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is \"array-like\"\n */\nexport const isArrayLike = (value: any): boolean => {\n return (\n isObject(value) &&\n !isEmpty(value) &&\n \"length\" in value &&\n isNumber(value.length) &&\n (value.length === 0 ||\n (value.length > 0 &&\n Object.prototype.hasOwnProperty.call(value, value.length - 1)))\n );\n};\n"],"mappings":"iIA4BA,MAAa,EAAe,GAExB,EAAS,EAAM,EACf,CAAC,EAAQ,EAAM,EACf,WAAY,GACZ,EAAS,EAAM,OAAO,GACrB,EAAM,SAAW,GACf,EAAM,OAAS,GACd,OAAO,UAAU,eAAe,KAAK,EAAO,EAAM,OAAS,EAAE"}
@@ -1,11 +0,0 @@
1
- //#region src/is-array-like.d.ts
2
- /**
3
- * Check if the provided value's type is "array-like"
4
- *
5
- * @param value - The value to type check
6
- * @returns An indicator specifying if the object provided is "array-like"
7
- */
8
- declare const isArrayLike: (value: any) => boolean;
9
- //#endregion
10
- export { isArrayLike as t };
11
- //# sourceMappingURL=is-array-like-CWfL33X9.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-array-like-CWfL33X9.d.mts","names":[],"sources":["../src/is-array-like.ts"],"sourcesContent":[],"mappings":";;AA4BA;;;;;cAAa"}
@@ -1 +0,0 @@
1
- const e=require(`./is-number-ijCVauur.cjs`),t=require(`./is-empty-DVetNKe9.cjs`),n=require(`./is-object-Dm1523kn.cjs`),r=r=>n.i(r)&&!t.t(r)&&`length`in r&&e.n(r.length)&&(r.length===0||r.length>0&&Object.prototype.hasOwnProperty.call(r,r.length-1));Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -1,11 +0,0 @@
1
- //#region src/is-array-like.d.ts
2
- /**
3
- * Check if the provided value's type is "array-like"
4
- *
5
- * @param value - The value to type check
6
- * @returns An indicator specifying if the object provided is "array-like"
7
- */
8
- declare const isArrayLike: (value: any) => boolean;
9
- //#endregion
10
- export { isArrayLike as t };
11
- //# sourceMappingURL=is-array-like-WgfvtfKC.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-array-like-WgfvtfKC.d.cts","names":[],"sources":["../src/is-array-like.ts"],"sourcesContent":[],"mappings":";;AA4BA;;;;;cAAa"}
@@ -1 +0,0 @@
1
- const e=require(`./is-null-CZh6OomR.cjs`),t=require(`./is-object-Dm1523kn.cjs`),n=n=>t.i(n)&&!e.t(n)&&Symbol.asyncIterator in n;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,11 +0,0 @@
1
- //#region src/is-async-iterable.d.ts
2
- /**
3
- * Check if the provided value's type is `AsyncIterable`
4
- *
5
- * @param value - The value to type check
6
- * @returns An indicator specifying if the object provided is `AsyncIterable`
7
- */
8
- declare const isAsyncIterable: (value: unknown) => value is AsyncIterable<unknown>;
9
- //#endregion
10
- export { isAsyncIterable as t };
11
- //# sourceMappingURL=is-async-iterable-C7_r2vwP.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-async-iterable-C7_r2vwP.d.cts","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa,8CAED"}
@@ -1,2 +0,0 @@
1
- import{t as e}from"./is-null-DBoMXXAf.mjs";import{i as t}from"./is-object-ANQi7JgS.mjs";const n=n=>t(n)&&!e(n)&&Symbol.asyncIterator in n;export{n as t};
2
- //# sourceMappingURL=is-async-iterable-CI6-qnZ-.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-async-iterable-CI6-qnZ-.mjs","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isNull } from \"./is-null\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is `AsyncIterable`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is `AsyncIterable`\n */\nexport const isAsyncIterable = (\n value: unknown\n): value is AsyncIterable<unknown> => {\n return isObject(value) && !isNull(value) && Symbol.asyncIterator in value;\n};\n"],"mappings":"wFA2BA,MAAa,EACX,GAEO,EAAS,EAAM,EAAI,CAAC,EAAO,EAAM,EAAI,OAAO,iBAAiB"}
@@ -1,11 +0,0 @@
1
- //#region src/is-async-iterable.d.ts
2
- /**
3
- * Check if the provided value's type is `AsyncIterable`
4
- *
5
- * @param value - The value to type check
6
- * @returns An indicator specifying if the object provided is `AsyncIterable`
7
- */
8
- declare const isAsyncIterable: (value: unknown) => value is AsyncIterable<unknown>;
9
- //#endregion
10
- export { isAsyncIterable as t };
11
- //# sourceMappingURL=is-async-iterable-hrJii_4u.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-async-iterable-hrJii_4u.d.mts","names":[],"sources":["../src/is-async-iterable.ts"],"sourcesContent":[],"mappings":";;AA2BA;;;;;cAAa,8CAED"}
@@ -1 +0,0 @@
1
- const e=require(`./get-object-tag-BHnhgixj.cjs`),t=t=>typeof t==`bigint`||e.t(t)==`[object BigInt]`;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,20 +0,0 @@
1
- //#region src/is-bigint.d.ts
2
- /**
3
- * Checks if `value` is classified as a `bigint` object.
4
- *
5
- * @example
6
- * ```typescript
7
- * isDate(37n)
8
- * // => true
9
- *
10
- * isBigInt(37)
11
- * // => false
12
- * ```
13
- *
14
- * @param value - The obj to check.
15
- * @returns Returns `true` if `value` is a bigint object, else `false`.
16
- */
17
- declare const isBigInt: (value: unknown) => value is bigint;
18
- //#endregion
19
- export { isBigInt as t };
20
- //# sourceMappingURL=is-bigint-BlaQe4zL.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-bigint-BlaQe4zL.d.cts","names":[],"sources":["../src/is-bigint.ts"],"sourcesContent":[],"mappings":";;AAmCA;;;;;;;;;;;;;;cAAa"}
@@ -1,2 +0,0 @@
1
- import{t as e}from"./get-object-tag-DF2FAXqH.mjs";const t=t=>typeof t==`bigint`||e(t)==`[object BigInt]`;export{t};
2
- //# sourceMappingURL=is-bigint-C87sK5hA.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-bigint-C87sK5hA.mjs","names":[],"sources":["../src/is-bigint.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is classified as a `bigint` object.\n *\n * @example\n * ```typescript\n * isDate(37n)\n * // => true\n *\n * isBigInt(37)\n * // => false\n * ```\n *\n * @param value - The obj to check.\n * @returns Returns `true` if `value` is a bigint object, else `false`.\n */\nexport const isBigInt = (value: unknown): value is bigint =>\n typeof value === \"bigint\" || getObjectTag(value) == \"[object BigInt]\";\n"],"mappings":"kDAmCA,MAAa,EAAY,GACvB,OAAO,GAAU,UAAY,EAAa,EAAM,EAAI"}