inferred-types 0.51.1 → 0.51.2

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 (1006) hide show
  1. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  2. package/dist/index.cjs +28 -9
  3. package/dist/index.js +28 -9
  4. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  5. package/dist/runtime/errors/KindError.d.ts +10 -7
  6. package/dist/runtime/errors/KindError.d.ts.map +1 -1
  7. package/dist/runtime/errors/KindError.js +40 -14
  8. package/dist/runtime/errors/index.d.ts +1 -1
  9. package/dist/runtime/errors/index.d.ts.map +1 -1
  10. package/dist/runtime/errors/index.js +1 -1
  11. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  12. package/dist/types/dictionary/CombinedKeys.d.ts.map +1 -1
  13. package/dist/types/errors/KindError.d.ts +11 -6
  14. package/dist/types/errors/KindError.d.ts.map +1 -1
  15. package/dist/types/tsconfig.tsbuildinfo +1 -1
  16. package/dist/types/type-conversion/MergeObjects.d.ts +3 -3
  17. package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
  18. package/package.json +21 -19
  19. package/dist/runtime/errors/kindedError.d.ts +0 -27
  20. package/dist/runtime/errors/kindedError.d.ts.map +0 -1
  21. package/dist/runtime/errors/kindedError.js +0 -33
  22. package/src/constants/Alpha.ts +0 -21
  23. package/src/constants/Books.ts +0 -9
  24. package/src/constants/Characters.ts +0 -6
  25. package/src/constants/Comma.ts +0 -18
  26. package/src/constants/CommonObjProps.ts +0 -7
  27. package/src/constants/Consonants.ts +0 -25
  28. package/src/constants/Constant.ts +0 -11
  29. package/src/constants/DateTime.ts +0 -40
  30. package/src/constants/FalsyValues.ts +0 -9
  31. package/src/constants/Functional.ts +0 -20
  32. package/src/constants/Geo.ts +0 -99
  33. package/src/constants/HashTable.ts +0 -131
  34. package/src/constants/ISO3166.ts +0 -147
  35. package/src/constants/Images.ts +0 -22
  36. package/src/constants/Marked.ts +0 -11
  37. package/src/constants/Markers.ts +0 -23
  38. package/src/constants/Metrics.ts +0 -171
  39. package/src/constants/NetworkConstants.ts +0 -91
  40. package/src/constants/Never.ts +0 -11
  41. package/src/constants/News.ts +0 -441
  42. package/src/constants/NoDefaultValue.ts +0 -13
  43. package/src/constants/NotApplicable.ts +0 -11
  44. package/src/constants/NotDefined.ts +0 -10
  45. package/src/constants/NumericChar.ts +0 -14
  46. package/src/constants/NumericDigit.ts +0 -11
  47. package/src/constants/Phone.ts +0 -263
  48. package/src/constants/PluralExceptions.ts +0 -113
  49. package/src/constants/ProxmoxConstants.ts +0 -6
  50. package/src/constants/RepoConstants.ts +0 -56
  51. package/src/constants/Retail.ts +0 -113
  52. package/src/constants/Shape.ts +0 -16
  53. package/src/constants/SingularNounEnding.ts +0 -15
  54. package/src/constants/Social.ts +0 -131
  55. package/src/constants/Tailwind.ts +0 -92
  56. package/src/constants/TypeComparisons.ts +0 -63
  57. package/src/constants/TypeOf.ts +0 -6
  58. package/src/constants/TypeTokens.ts +0 -291
  59. package/src/constants/TypeTransforms.ts +0 -47
  60. package/src/constants/Types.ts +0 -32
  61. package/src/constants/Wide.ts +0 -36
  62. package/src/constants/createConstant.ts +0 -13
  63. package/src/constants/index.ts +0 -41
  64. package/src/constants/tsconfig.json +0 -21
  65. package/src/inferred-types/README.md +0 -3
  66. package/src/inferred-types/index.ts +0 -3
  67. package/src/inferred-types/tsconfig.json +0 -49
  68. package/src/runtime/README.md +0 -3
  69. package/src/runtime/api/defineApi.ts +0 -153
  70. package/src/runtime/api/handleDoneFn.ts +0 -31
  71. package/src/runtime/api/index.ts +0 -3
  72. package/src/runtime/boolean-logic/ifArray.ts +0 -22
  73. package/src/runtime/boolean-logic/ifArrayPartial.ts +0 -13
  74. package/src/runtime/boolean-logic/ifBoolean.ts +0 -30
  75. package/src/runtime/boolean-logic/ifChar.ts +0 -23
  76. package/src/runtime/boolean-logic/ifContainer.ts +0 -20
  77. package/src/runtime/boolean-logic/ifFalse.ts +0 -26
  78. package/src/runtime/boolean-logic/ifFunction.ts +0 -31
  79. package/src/runtime/boolean-logic/ifHasKey.ts +0 -27
  80. package/src/runtime/boolean-logic/ifLength.ts +0 -39
  81. package/src/runtime/boolean-logic/ifNotNull.ts +0 -30
  82. package/src/runtime/boolean-logic/ifNull.ts +0 -31
  83. package/src/runtime/boolean-logic/ifNumber.ts +0 -30
  84. package/src/runtime/boolean-logic/ifObject.ts +0 -15
  85. package/src/runtime/boolean-logic/ifSameType.ts +0 -29
  86. package/src/runtime/boolean-logic/ifScalar.ts +0 -42
  87. package/src/runtime/boolean-logic/ifString.ts +0 -37
  88. package/src/runtime/boolean-logic/ifTrue.ts +0 -33
  89. package/src/runtime/boolean-logic/ifUndefined.ts +0 -39
  90. package/src/runtime/boolean-logic/index.ts +0 -19
  91. package/src/runtime/combinators/and.ts +0 -11
  92. package/src/runtime/combinators/f2.ts.HOLD +0 -241
  93. package/src/runtime/combinators/index.ts +0 -2
  94. package/src/runtime/combinators/or.ts +0 -13
  95. package/src/runtime/dictionary/defineOptions.ts +0 -82
  96. package/src/runtime/dictionary/entries.ts +0 -34
  97. package/src/runtime/dictionary/get.ts +0 -168
  98. package/src/runtime/dictionary/index.ts +0 -23
  99. package/src/runtime/dictionary/keysOf.ts +0 -28
  100. package/src/runtime/dictionary/omit.ts +0 -40
  101. package/src/runtime/dictionary/retain.ts +0 -35
  102. package/src/runtime/dictionary/sharedKeys.ts +0 -16
  103. package/src/runtime/dictionary/takeProp.ts +0 -28
  104. package/src/runtime/dictionary/valuesOf.ts +0 -21
  105. package/src/runtime/dictionary/withDefaults.ts +0 -27
  106. package/src/runtime/dictionary/withKeys.ts +0 -22
  107. package/src/runtime/dictionary/withoutKeys.ts +0 -23
  108. package/src/runtime/dictionary/withoutValue.ts +0 -26
  109. package/src/runtime/errors/KindError.ts +0 -59
  110. package/src/runtime/errors/TypedError.ts +0 -69
  111. package/src/runtime/errors/createErrorCondition.ts +0 -35
  112. package/src/runtime/errors/index.ts +0 -2
  113. package/src/runtime/errors/kindedError.ts +0 -59
  114. package/src/runtime/functional/index.ts +0 -1
  115. package/src/runtime/functional/result.ts +0 -309
  116. package/src/runtime/functions/fnMeta.ts +0 -27
  117. package/src/runtime/functions/index.ts +0 -3
  118. package/src/runtime/functions/wrapFn.ts +0 -32
  119. package/src/runtime/index.ts +0 -18
  120. package/src/runtime/initializers/addFnToProps.ts +0 -35
  121. package/src/runtime/initializers/addPropsToFn.ts +0 -42
  122. package/src/runtime/initializers/createCssSelector.ts +0 -78
  123. package/src/runtime/initializers/createFnWithProps.ts +0 -40
  124. package/src/runtime/initializers/defineObj.ts +0 -55
  125. package/src/runtime/initializers/defineTuple.ts +0 -28
  126. package/src/runtime/initializers/index.ts +0 -6
  127. package/src/runtime/lists/asArray.ts +0 -29
  128. package/src/runtime/lists/createComparison.ts +0 -15
  129. package/src/runtime/lists/createConverter.ts +0 -104
  130. package/src/runtime/lists/filter.ts +0 -62
  131. package/src/runtime/lists/find.ts +0 -51
  132. package/src/runtime/lists/getEach.ts +0 -48
  133. package/src/runtime/lists/index.ts +0 -26
  134. package/src/runtime/lists/indexOf.ts +0 -58
  135. package/src/runtime/lists/intersection.ts +0 -69
  136. package/src/runtime/lists/join.ts +0 -34
  137. package/src/runtime/lists/last.ts +0 -5
  138. package/src/runtime/lists/logicalReturns.ts +0 -18
  139. package/src/runtime/lists/reverse.ts +0 -10
  140. package/src/runtime/lists/shift.ts +0 -66
  141. package/src/runtime/lists/slice.ts +0 -16
  142. package/src/runtime/lists/unique.ts +0 -26
  143. package/src/runtime/literals/box.ts +0 -75
  144. package/src/runtime/literals/capitalize.ts +0 -9
  145. package/src/runtime/literals/color/cssColor.ts +0 -31
  146. package/src/runtime/literals/color/index.ts +0 -2
  147. package/src/runtime/literals/color/twColor.ts +0 -40
  148. package/src/runtime/literals/ensureLeading.ts +0 -27
  149. package/src/runtime/literals/ensureSurround.ts +0 -32
  150. package/src/runtime/literals/ensureTrailing.ts +0 -20
  151. package/src/runtime/literals/identity.ts +0 -22
  152. package/src/runtime/literals/ifLowercase.ts +0 -57
  153. package/src/runtime/literals/ifUppercase.ts +0 -34
  154. package/src/runtime/literals/index.ts +0 -58
  155. package/src/runtime/literals/literal.ts +0 -48
  156. package/src/runtime/literals/lowercase.ts +0 -11
  157. package/src/runtime/literals/narrow.ts +0 -44
  158. package/src/runtime/literals/pathJoin.ts +0 -25
  159. package/src/runtime/literals/phone/asPhoneNumber.ts +0 -72
  160. package/src/runtime/literals/phone/getPhoneCountryCode.ts +0 -16
  161. package/src/runtime/literals/phone/index.ts +0 -3
  162. package/src/runtime/literals/phone/removePhoneCountryCode.ts +0 -16
  163. package/src/runtime/literals/pluralize.ts +0 -74
  164. package/src/runtime/literals/retainAfter.ts +0 -71
  165. package/src/runtime/literals/retainChars.ts +0 -30
  166. package/src/runtime/literals/retainUntil.ts +0 -67
  167. package/src/runtime/literals/retainWhile.ts +0 -23
  168. package/src/runtime/literals/rightWhitespace.ts +0 -17
  169. package/src/runtime/literals/split.ts +0 -19
  170. package/src/runtime/literals/stripAfter.ts +0 -20
  171. package/src/runtime/literals/stripBefore.ts +0 -23
  172. package/src/runtime/literals/stripChars.ts +0 -25
  173. package/src/runtime/literals/stripLeading.ts +0 -28
  174. package/src/runtime/literals/stripSurround.ts +0 -54
  175. package/src/runtime/literals/stripTrailing.ts +0 -29
  176. package/src/runtime/literals/stripUntil.ts +0 -18
  177. package/src/runtime/literals/stripWhile.ts +0 -19
  178. package/src/runtime/literals/surround.ts +0 -23
  179. package/src/runtime/literals/takeNumericCharacters.ts +0 -16
  180. package/src/runtime/literals/toCamelCase.ts +0 -28
  181. package/src/runtime/literals/toKebabCase.ts +0 -31
  182. package/src/runtime/literals/toLowercase.ts +0 -13
  183. package/src/runtime/literals/toNumericArray.ts +0 -5
  184. package/src/runtime/literals/toPascalCase.ts +0 -38
  185. package/src/runtime/literals/toSnakeCase.ts +0 -33
  186. package/src/runtime/literals/toString.ts +0 -11
  187. package/src/runtime/literals/toUppercase.ts +0 -13
  188. package/src/runtime/literals/trim.ts +0 -55
  189. package/src/runtime/literals/truncate.ts +0 -20
  190. package/src/runtime/literals/tuple.ts +0 -41
  191. package/src/runtime/literals/uncapitalize.ts +0 -9
  192. package/src/runtime/literals/unset.ts +0 -18
  193. package/src/runtime/literals/uppercase.ts +0 -9
  194. package/src/runtime/literals/widen.ts +0 -13
  195. package/src/runtime/meta/index.ts +0 -2
  196. package/src/runtime/meta/urlMeta.ts +0 -187
  197. package/src/runtime/meta/youtube-meta.ts +0 -146
  198. package/src/runtime/queues/fifo.ts +0 -51
  199. package/src/runtime/queues/index.ts +0 -2
  200. package/src/runtime/queues/lifo.ts +0 -45
  201. package/src/runtime/runtime-types/README.md +0 -3
  202. package/src/runtime/runtime-types/asDefineObject.ts +0 -29
  203. package/src/runtime/runtime-types/asToken.ts +0 -155
  204. package/src/runtime/runtime-types/asType.ts +0 -57
  205. package/src/runtime/runtime-types/choices.ts +0 -86
  206. package/src/runtime/runtime-types/dict.hold +0 -65
  207. package/src/runtime/runtime-types/index.ts +0 -9
  208. package/src/runtime/runtime-types/ip6Prefix.ts +0 -20
  209. package/src/runtime/runtime-types/list.ts +0 -141
  210. package/src/runtime/runtime-types/rec.ts +0 -11
  211. package/src/runtime/runtime-types/shape-helpers/addToken.ts +0 -11
  212. package/src/runtime/runtime-types/shape-helpers/atomics.ts +0 -21
  213. package/src/runtime/runtime-types/shape-helpers/functions.ts +0 -36
  214. package/src/runtime/runtime-types/shape-helpers/getTokenData.ts +0 -14
  215. package/src/runtime/runtime-types/shape-helpers/getTokenName.ts +0 -13
  216. package/src/runtime/runtime-types/shape-helpers/literal-containers.ts +0 -18
  217. package/src/runtime/runtime-types/shape-helpers/regexToken.ts +0 -44
  218. package/src/runtime/runtime-types/shape-helpers/singletons.ts +0 -108
  219. package/src/runtime/runtime-types/shape-helpers/union.ts +0 -15
  220. package/src/runtime/runtime-types/shape-helpers/wide-containers.ts +0 -60
  221. package/src/runtime/runtime-types/shape.ts +0 -87
  222. package/src/runtime/runtime-types/tokens/createTypeToken.ts +0 -114
  223. package/src/runtime/runtime-types/tokens/index.ts +0 -2
  224. package/src/runtime/runtime-types/tokens/simpleToken.ts +0 -85
  225. package/src/runtime/sets/index.ts +0 -1
  226. package/src/runtime/sets/uniqueKeys.ts +0 -48
  227. package/src/runtime/tsconfig.json +0 -47
  228. package/src/runtime/type-conversion/asChars.ts +0 -10
  229. package/src/runtime/type-conversion/asRecord.ts +0 -14
  230. package/src/runtime/type-conversion/asString.ts +0 -35
  231. package/src/runtime/type-conversion/csv.ts +0 -56
  232. package/src/runtime/type-conversion/index.ts +0 -18
  233. package/src/runtime/type-conversion/intersect.ts +0 -12
  234. package/src/runtime/type-conversion/ip6GroupExpansion.ts +0 -17
  235. package/src/runtime/type-conversion/json.ts +0 -32
  236. package/src/runtime/type-conversion/lookupCountry.ts +0 -242
  237. package/src/runtime/type-conversion/mergeObjects.ts +0 -31
  238. package/src/runtime/type-conversion/mergeScalars.ts +0 -16
  239. package/src/runtime/type-conversion/mergeTuples.ts +0 -16
  240. package/src/runtime/type-conversion/mutable.ts +0 -5
  241. package/src/runtime/type-conversion/never.ts +0 -13
  242. package/src/runtime/type-conversion/optional.ts +0 -37
  243. package/src/runtime/type-conversion/toNumber.ts +0 -35
  244. package/src/runtime/type-conversion/union.ts +0 -15
  245. package/src/runtime/type-conversion/unionize.ts +0 -12
  246. package/src/runtime/type-guards/api-tg.ts +0 -45
  247. package/src/runtime/type-guards/geo/index.ts +0 -3
  248. package/src/runtime/type-guards/geo/isIso3166Alpha2.ts +0 -79
  249. package/src/runtime/type-guards/geo/isUsState.ts +0 -15
  250. package/src/runtime/type-guards/geo/isZipCode.ts +0 -45
  251. package/src/runtime/type-guards/hasDefaultValue.ts +0 -16
  252. package/src/runtime/type-guards/hasErrorConditions.ts +0 -8
  253. package/src/runtime/type-guards/hasIndexOf.ts +0 -36
  254. package/src/runtime/type-guards/hasKeys.ts +0 -38
  255. package/src/runtime/type-guards/hasWhitespace.ts +0 -13
  256. package/src/runtime/type-guards/higher-order/endsWith.ts +0 -23
  257. package/src/runtime/type-guards/higher-order/index.ts +0 -7
  258. package/src/runtime/type-guards/higher-order/isEqual.ts +0 -23
  259. package/src/runtime/type-guards/higher-order/isLength.ts +0 -36
  260. package/src/runtime/type-guards/higher-order/isSameTypeOf.ts +0 -15
  261. package/src/runtime/type-guards/higher-order/isTuple.ts +0 -31
  262. package/src/runtime/type-guards/higher-order/isTypeOf.ts +0 -16
  263. package/src/runtime/type-guards/higher-order/startsWith.ts +0 -42
  264. package/src/runtime/type-guards/html/index.ts +0 -1
  265. package/src/runtime/type-guards/html/isHtmlElement.ts +0 -11
  266. package/src/runtime/type-guards/index.ts +0 -57
  267. package/src/runtime/type-guards/isAlpha.ts +0 -13
  268. package/src/runtime/type-guards/isArray.ts +0 -9
  269. package/src/runtime/type-guards/isBoolean.ts +0 -10
  270. package/src/runtime/type-guards/isBooleanLike.ts +0 -17
  271. package/src/runtime/type-guards/isConstant.ts +0 -20
  272. package/src/runtime/type-guards/isContainer.ts +0 -20
  273. package/src/runtime/type-guards/isCssAspectRatio.ts +0 -16
  274. package/src/runtime/type-guards/isDefined.ts +0 -9
  275. package/src/runtime/type-guards/isDoneFn.ts +0 -14
  276. package/src/runtime/type-guards/isEmail.ts +0 -31
  277. package/src/runtime/type-guards/isErrorCondition.ts +0 -19
  278. package/src/runtime/type-guards/isFalse.ts +0 -3
  279. package/src/runtime/type-guards/isFalsy.ts +0 -14
  280. package/src/runtime/type-guards/isFnWithParams.ts +0 -11
  281. package/src/runtime/type-guards/isFunction.ts +0 -15
  282. package/src/runtime/type-guards/isHexadecimal.ts +0 -15
  283. package/src/runtime/type-guards/isIndexable.ts +0 -14
  284. package/src/runtime/type-guards/isInlineSvg.ts +0 -12
  285. package/src/runtime/type-guards/isLeftRight.ts +0 -16
  286. package/src/runtime/type-guards/isNever.ts +0 -12
  287. package/src/runtime/type-guards/isNotNull.ts +0 -10
  288. package/src/runtime/type-guards/isNothing.ts +0 -5
  289. package/src/runtime/type-guards/isNull.ts +0 -11
  290. package/src/runtime/type-guards/isNumber.ts +0 -9
  291. package/src/runtime/type-guards/isNumericString.ts +0 -41
  292. package/src/runtime/type-guards/isObject.ts +0 -13
  293. package/src/runtime/type-guards/isPhoneNumber.ts +0 -35
  294. package/src/runtime/type-guards/isReadonlyArray.ts +0 -17
  295. package/src/runtime/type-guards/isRef.ts +0 -15
  296. package/src/runtime/type-guards/isRegExp.ts +0 -37
  297. package/src/runtime/type-guards/isRuntimeUnion.ts +0 -12
  298. package/src/runtime/type-guards/isScalar.ts +0 -17
  299. package/src/runtime/type-guards/isSpecificConstant.ts +0 -17
  300. package/src/runtime/type-guards/isString.ts +0 -13
  301. package/src/runtime/type-guards/isSymbol.ts +0 -12
  302. package/src/runtime/type-guards/isThenable.ts +0 -8
  303. package/src/runtime/type-guards/isTrimmable.ts +0 -10
  304. package/src/runtime/type-guards/isTrue.ts +0 -8
  305. package/src/runtime/type-guards/isTruthy.ts +0 -15
  306. package/src/runtime/type-guards/isTypeToken.ts +0 -20
  307. package/src/runtime/type-guards/isTypeTuple.ts +0 -10
  308. package/src/runtime/type-guards/isUndefined.ts +0 -10
  309. package/src/runtime/type-guards/isUnset.ts +0 -26
  310. package/src/runtime/type-guards/isUrl.ts +0 -55
  311. package/src/runtime/type-guards/metrics/index.ts +0 -2
  312. package/src/runtime/type-guards/metrics/isMetric.ts +0 -133
  313. package/src/runtime/type-guards/metrics/isUom.ts +0 -125
  314. package/src/runtime/type-guards/network-tg.ts +0 -123
  315. package/src/runtime/type-guards/tokens/index.ts +0 -8
  316. package/src/runtime/type-guards/tokens/isAtomicToken.ts +0 -16
  317. package/src/runtime/type-guards/tokens/isContainerToken.ts +0 -64
  318. package/src/runtime/type-guards/tokens/isDefineObject.ts +0 -16
  319. package/src/runtime/type-guards/tokens/isFunctionToken.ts +0 -11
  320. package/src/runtime/type-guards/tokens/isShapeCallback.ts +0 -9
  321. package/src/runtime/type-guards/tokens/isShapeToken.ts +0 -33
  322. package/src/runtime/type-guards/tokens/isSimpleToken.ts +0 -100
  323. package/src/runtime/type-guards/tokens/isSingletonToken.ts +0 -17
  324. package/src/runtime/type-guards/tokens/isTupleToken.ts +0 -0
  325. package/src/runtime/type-guards/tokens/isUnionSetToken.ts +0 -0
  326. package/src/runtime/type-guards/tokens/isUnionToken.ts +0 -16
  327. package/src/runtime/type-guards/urls/Social.ts +0 -25
  328. package/src/runtime/type-guards/urls/books.ts +0 -2
  329. package/src/runtime/type-guards/urls/index.ts +0 -9
  330. package/src/runtime/type-guards/urls/news/australian.ts +0 -14
  331. package/src/runtime/type-guards/urls/news/belgium.ts +0 -14
  332. package/src/runtime/type-guards/urls/news/canadian.ts +0 -14
  333. package/src/runtime/type-guards/urls/news/chinese.ts +0 -14
  334. package/src/runtime/type-guards/urls/news/danish.ts +0 -14
  335. package/src/runtime/type-guards/urls/news/dutch.ts +0 -15
  336. package/src/runtime/type-guards/urls/news/french.ts +0 -14
  337. package/src/runtime/type-guards/urls/news/german.ts +0 -14
  338. package/src/runtime/type-guards/urls/news/index.ts +0 -51
  339. package/src/runtime/type-guards/urls/news/indian.ts +0 -14
  340. package/src/runtime/type-guards/urls/news/italian.ts +0 -14
  341. package/src/runtime/type-guards/urls/news/japanese.ts +0 -14
  342. package/src/runtime/type-guards/urls/news/mexican.ts +0 -14
  343. package/src/runtime/type-guards/urls/news/norwegian.ts +0 -14
  344. package/src/runtime/type-guards/urls/news/south-korean.ts +0 -14
  345. package/src/runtime/type-guards/urls/news/spanish.ts +0 -14
  346. package/src/runtime/type-guards/urls/news/swiss.ts +0 -14
  347. package/src/runtime/type-guards/urls/news/turkish.ts +0 -14
  348. package/src/runtime/type-guards/urls/news/uk.ts +0 -14
  349. package/src/runtime/type-guards/urls/news/us.ts +0 -14
  350. package/src/runtime/type-guards/urls/repos/bitbucket.ts +0 -18
  351. package/src/runtime/type-guards/urls/repos/codeCommit.ts +0 -19
  352. package/src/runtime/type-guards/urls/repos/github.ts +0 -198
  353. package/src/runtime/type-guards/urls/repos/index.ts +0 -19
  354. package/src/runtime/type-guards/urls/repos/isSemanticVersion.ts +0 -46
  355. package/src/runtime/type-guards/urls/retail.ts +0 -221
  356. package/src/runtime/type-guards/urls/youtube.ts +0 -172
  357. package/src/runtime/vuejs/asVueRef.ts +0 -18
  358. package/src/runtime/vuejs/index.ts +0 -1
  359. package/src/types/README.md +0 -3
  360. package/src/types/api/api.ts +0 -368
  361. package/src/types/api/index.ts +0 -1
  362. package/src/types/base-types/AnyArray.ts +0 -6
  363. package/src/types/base-types/AnyObject.ts +0 -12
  364. package/src/types/base-types/Container.ts +0 -19
  365. package/src/types/base-types/Defined.ts +0 -8
  366. package/src/types/base-types/Dictionary.ts +0 -14
  367. package/src/types/base-types/Digital.ts +0 -27
  368. package/src/types/base-types/EmptyObject.ts +0 -14
  369. package/src/types/base-types/FalsyValue.ts +0 -8
  370. package/src/types/base-types/Indexable.ts +0 -10
  371. package/src/types/base-types/IndexableObject.ts +0 -36
  372. package/src/types/base-types/LikeRegExp.ts +0 -10
  373. package/src/types/base-types/List.ts +0 -386
  374. package/src/types/base-types/NarrowObject.ts +0 -11
  375. package/src/types/base-types/NonArray.ts +0 -10
  376. package/src/types/base-types/NotNull.ts +0 -8
  377. package/src/types/base-types/Nothing.ts +0 -7
  378. package/src/types/base-types/NumericSign.ts +0 -6
  379. package/src/types/base-types/ObjectKey.ts +0 -8
  380. package/src/types/base-types/Scalar.ts +0 -7
  381. package/src/types/base-types/ScalarNotSymbol.ts +0 -7
  382. package/src/types/base-types/Something.ts +0 -10
  383. package/src/types/base-types/Thenable.ts +0 -12
  384. package/src/types/base-types/Tuple.ts +0 -42
  385. package/src/types/base-types/fns/AnyFunction.ts +0 -10
  386. package/src/types/base-types/fns/EscapeFunction.ts +0 -25
  387. package/src/types/base-types/fns/FnAllowingProps.ts +0 -14
  388. package/src/types/base-types/fns/IdentityFunction.ts +0 -5
  389. package/src/types/base-types/fns/JustFunction.ts +0 -11
  390. package/src/types/base-types/fns/OptionalParamFn.ts +0 -42
  391. package/src/types/base-types/fns/RegularFn.ts +0 -11
  392. package/src/types/base-types/fns/TypedFunction.ts +0 -10
  393. package/src/types/base-types/fns/index.ts +0 -9
  394. package/src/types/base-types/functional/LeftRight.ts +0 -251
  395. package/src/types/base-types/functional/index.ts +0 -1
  396. package/src/types/base-types/index.ts +0 -27
  397. package/src/types/boolean-logic/LogicalCombinator.ts +0 -4
  398. package/src/types/boolean-logic/branching/Default.ts +0 -18
  399. package/src/types/boolean-logic/branching/Fail.ts +0 -38
  400. package/src/types/boolean-logic/branching/Handle.ts +0 -52
  401. package/src/types/boolean-logic/branching/If.ts +0 -45
  402. package/src/types/boolean-logic/branching/IfAllExtend.ts +0 -17
  403. package/src/types/boolean-logic/branching/IfAllLiteral.ts +0 -13
  404. package/src/types/boolean-logic/branching/IfEqual.ts +0 -31
  405. package/src/types/boolean-logic/branching/IfErrorCondition.ts +0 -20
  406. package/src/types/boolean-logic/branching/IfLength.ts +0 -34
  407. package/src/types/boolean-logic/branching/IfNever.ts +0 -13
  408. package/src/types/boolean-logic/branching/IfUnset.ts +0 -32
  409. package/src/types/boolean-logic/branching/Iff.ts +0 -55
  410. package/src/types/boolean-logic/branching/OnPass.ts +0 -113
  411. package/src/types/boolean-logic/branching/Passthrough.ts +0 -26
  412. package/src/types/boolean-logic/branching/README.md +0 -3
  413. package/src/types/boolean-logic/branching/WhenNever.ts +0 -17
  414. package/src/types/boolean-logic/branching/index.ts +0 -15
  415. package/src/types/boolean-logic/combinators/And.ts +0 -44
  416. package/src/types/boolean-logic/combinators/Compare.ts +0 -188
  417. package/src/types/boolean-logic/combinators/Not.ts +0 -68
  418. package/src/types/boolean-logic/combinators/Or.ts +0 -69
  419. package/src/types/boolean-logic/combinators/README.md +0 -3
  420. package/src/types/boolean-logic/combinators/Some.ts +0 -44
  421. package/src/types/boolean-logic/combinators/index.ts +0 -5
  422. package/src/types/boolean-logic/index.ts +0 -7
  423. package/src/types/boolean-logic/narrowing/As.ts +0 -10
  424. package/src/types/boolean-logic/narrowing/AsDoneFn.ts +0 -12
  425. package/src/types/boolean-logic/narrowing/AsIndexOf.ts +0 -24
  426. package/src/types/boolean-logic/narrowing/AsSomething.ts +0 -38
  427. package/src/types/boolean-logic/narrowing/index.ts +0 -5
  428. package/src/types/boolean-logic/operators/AllExtend.ts +0 -29
  429. package/src/types/boolean-logic/operators/AllLiteral.ts +0 -29
  430. package/src/types/boolean-logic/operators/AllNumericLiterals.ts +0 -14
  431. package/src/types/boolean-logic/operators/AllStringLiterals.ts +0 -14
  432. package/src/types/boolean-logic/operators/ApiOperators.ts +0 -30
  433. package/src/types/boolean-logic/operators/AreSameLength.ts +0 -29
  434. package/src/types/boolean-logic/operators/AreSameType.ts +0 -22
  435. package/src/types/boolean-logic/operators/Contains.ts +0 -76
  436. package/src/types/boolean-logic/operators/ContainsAll.ts +0 -31
  437. package/src/types/boolean-logic/operators/DoesExtend.ts +0 -16
  438. package/src/types/boolean-logic/operators/DoesNotExtend.ts +0 -14
  439. package/src/types/boolean-logic/operators/EndsWith.ts +0 -56
  440. package/src/types/boolean-logic/operators/Extends.ts +0 -14
  441. package/src/types/boolean-logic/operators/ExtendsAll.ts +0 -26
  442. package/src/types/boolean-logic/operators/ExtendsNone.ts +0 -16
  443. package/src/types/boolean-logic/operators/ExtendsSome.ts +0 -18
  444. package/src/types/boolean-logic/operators/HasArray.ts +0 -17
  445. package/src/types/boolean-logic/operators/HasCharacters.ts +0 -73
  446. package/src/types/boolean-logic/operators/HasIndex.ts +0 -18
  447. package/src/types/boolean-logic/operators/HasOtherCharacters.ts +0 -39
  448. package/src/types/boolean-logic/operators/HasParameters.ts +0 -18
  449. package/src/types/boolean-logic/operators/HasProp.ts +0 -20
  450. package/src/types/boolean-logic/operators/HasRequiredProps.ts +0 -17
  451. package/src/types/boolean-logic/operators/HasSameKeys.ts +0 -41
  452. package/src/types/boolean-logic/operators/HasSameValues.ts +0 -53
  453. package/src/types/boolean-logic/operators/HasUnionType.ts +0 -16
  454. package/src/types/boolean-logic/operators/HasWideValues.ts +0 -14
  455. package/src/types/boolean-logic/operators/HaveSameNumericSign.ts +0 -24
  456. package/src/types/boolean-logic/operators/IsAllCaps.ts +0 -23
  457. package/src/types/boolean-logic/operators/IsAllLowercase.ts +0 -22
  458. package/src/types/boolean-logic/operators/IsAny.ts +0 -10
  459. package/src/types/boolean-logic/operators/IsAnyEqual.ts +0 -14
  460. package/src/types/boolean-logic/operators/IsArray.ts +0 -12
  461. package/src/types/boolean-logic/operators/IsBoolean.ts +0 -13
  462. package/src/types/boolean-logic/operators/IsBooleanLiteral.ts +0 -20
  463. package/src/types/boolean-logic/operators/IsContainer.ts +0 -16
  464. package/src/types/boolean-logic/operators/IsCssHexadecimal.ts +0 -15
  465. package/src/types/boolean-logic/operators/IsDefined.ts +0 -6
  466. package/src/types/boolean-logic/operators/IsDotPath.ts +0 -55
  467. package/src/types/boolean-logic/operators/IsEmptyObject.ts +0 -19
  468. package/src/types/boolean-logic/operators/IsEmptyString.ts +0 -18
  469. package/src/types/boolean-logic/operators/IsEqual.ts +0 -23
  470. package/src/types/boolean-logic/operators/IsErrorCondition.ts +0 -19
  471. package/src/types/boolean-logic/operators/IsFalse.ts +0 -22
  472. package/src/types/boolean-logic/operators/IsFalsy.ts +0 -13
  473. package/src/types/boolean-logic/operators/IsFloat.ts +0 -24
  474. package/src/types/boolean-logic/operators/IsFnWithParams.ts +0 -37
  475. package/src/types/boolean-logic/operators/IsFunction.ts +0 -10
  476. package/src/types/boolean-logic/operators/IsGreaterThan.ts +0 -43
  477. package/src/types/boolean-logic/operators/IsInteger.ts +0 -18
  478. package/src/types/boolean-logic/operators/IsIterable.ts +0 -35
  479. package/src/types/boolean-logic/operators/IsLength.ts +0 -14
  480. package/src/types/boolean-logic/operators/IsLessThan.ts +0 -39
  481. package/src/types/boolean-logic/operators/IsLiteral.ts +0 -48
  482. package/src/types/boolean-logic/operators/IsLiteralFn.ts +0 -24
  483. package/src/types/boolean-logic/operators/IsLiteralUnion.ts +0 -21
  484. package/src/types/boolean-logic/operators/IsNarrowingFn.ts +0 -19
  485. package/src/types/boolean-logic/operators/IsNegativeNumber.ts +0 -23
  486. package/src/types/boolean-logic/operators/IsNever.ts +0 -10
  487. package/src/types/boolean-logic/operators/IsNonLiteralUnion.ts +0 -23
  488. package/src/types/boolean-logic/operators/IsNotEqual.ts +0 -7
  489. package/src/types/boolean-logic/operators/IsNothing.ts +0 -11
  490. package/src/types/boolean-logic/operators/IsNull.ts +0 -17
  491. package/src/types/boolean-logic/operators/IsNumber.ts +0 -14
  492. package/src/types/boolean-logic/operators/IsNumberLike.ts +0 -17
  493. package/src/types/boolean-logic/operators/IsNumericLiteral.ts +0 -14
  494. package/src/types/boolean-logic/operators/IsObject.ts +0 -23
  495. package/src/types/boolean-logic/operators/IsObjectLiteral.ts +0 -37
  496. package/src/types/boolean-logic/operators/IsOptionalScalar.ts +0 -28
  497. package/src/types/boolean-logic/operators/IsPositiveNumber.ts +0 -13
  498. package/src/types/boolean-logic/operators/IsReadonlyArray.ts +0 -14
  499. package/src/types/boolean-logic/operators/IsReadonlyObject.ts +0 -15
  500. package/src/types/boolean-logic/operators/IsScalar.ts +0 -25
  501. package/src/types/boolean-logic/operators/IsSingleChar.ts +0 -20
  502. package/src/types/boolean-logic/operators/IsSingularNoun.ts +0 -20
  503. package/src/types/boolean-logic/operators/IsString.ts +0 -16
  504. package/src/types/boolean-logic/operators/IsStringLiteral.ts +0 -16
  505. package/src/types/boolean-logic/operators/IsSymbol.ts +0 -8
  506. package/src/types/boolean-logic/operators/IsTrue.ts +0 -27
  507. package/src/types/boolean-logic/operators/IsTruthy.ts +0 -40
  508. package/src/types/boolean-logic/operators/IsTuple.ts +0 -27
  509. package/src/types/boolean-logic/operators/IsUndefined.ts +0 -9
  510. package/src/types/boolean-logic/operators/IsUnion.ts +0 -18
  511. package/src/types/boolean-logic/operators/IsUnionArray.ts +0 -17
  512. package/src/types/boolean-logic/operators/IsUnset.ts +0 -10
  513. package/src/types/boolean-logic/operators/IsUrl.ts +0 -65
  514. package/src/types/boolean-logic/operators/IsValidDotPath.ts +0 -42
  515. package/src/types/boolean-logic/operators/IsValidIndex.ts +0 -59
  516. package/src/types/boolean-logic/operators/IsVueRef.ts +0 -34
  517. package/src/types/boolean-logic/operators/IsWideType.ts +0 -116
  518. package/src/types/boolean-logic/operators/IsWideUnion.ts +0 -25
  519. package/src/types/boolean-logic/operators/MaybeError.ts +0 -32
  520. package/src/types/boolean-logic/operators/NarrowlyContains.ts +0 -23
  521. package/src/types/boolean-logic/operators/Network-operators.ts +0 -192
  522. package/src/types/boolean-logic/operators/NotEqual.ts +0 -11
  523. package/src/types/boolean-logic/operators/NotLength.ts +0 -12
  524. package/src/types/boolean-logic/operators/PhoneOperators.ts +0 -62
  525. package/src/types/boolean-logic/operators/README.md +0 -3
  526. package/src/types/boolean-logic/operators/Returns.ts +0 -16
  527. package/src/types/boolean-logic/operators/ReturnsBoolean.ts +0 -13
  528. package/src/types/boolean-logic/operators/ReturnsFalse.ts +0 -15
  529. package/src/types/boolean-logic/operators/ReturnsTrue.ts +0 -17
  530. package/src/types/boolean-logic/operators/SomeEqual.ts +0 -17
  531. package/src/types/boolean-logic/operators/SomeExtend.ts +0 -26
  532. package/src/types/boolean-logic/operators/StartsWith.ts +0 -54
  533. package/src/types/boolean-logic/operators/UnionHasArray.ts +0 -22
  534. package/src/types/boolean-logic/operators/Validate.ts +0 -54
  535. package/src/types/boolean-logic/operators/YouTube-operators.ts +0 -68
  536. package/src/types/boolean-logic/operators/index.ts +0 -103
  537. package/src/types/classes/Constructor.ts +0 -10
  538. package/src/types/classes/KlassMeta.ts +0 -28
  539. package/src/types/classes/index.ts +0 -2
  540. package/src/types/containers/IsEmptyContainer.ts +0 -21
  541. package/src/types/containers/IsNonEmptyContainer.ts +0 -15
  542. package/src/types/containers/RemoveEmpty.ts +0 -78
  543. package/src/types/containers/RemoveMarked.ts +0 -53
  544. package/src/types/containers/RemoveNever.ts +0 -69
  545. package/src/types/containers/RemoveUndefined.ts +0 -55
  546. package/src/types/containers/index.ts +0 -6
  547. package/src/types/dictionary/AddKeyValue.ts +0 -34
  548. package/src/types/dictionary/CamelKeys.ts +0 -42
  549. package/src/types/dictionary/CombinedKeys.ts +0 -21
  550. package/src/types/dictionary/CreateKV.ts +0 -30
  551. package/src/types/dictionary/CreateLookup.ts +0 -59
  552. package/src/types/dictionary/DefineObject.ts +0 -45
  553. package/src/types/dictionary/DictChangeValue.ts +0 -34
  554. package/src/types/dictionary/EnsureKeys.ts +0 -34
  555. package/src/types/dictionary/FilterProps.ts +0 -45
  556. package/src/types/dictionary/FromMaybeRef.ts +0 -13
  557. package/src/types/dictionary/Get.ts +0 -20
  558. package/src/types/dictionary/KebabKeys.ts +0 -42
  559. package/src/types/dictionary/Keys.ts +0 -171
  560. package/src/types/dictionary/KeysEqualValue.ts +0 -19
  561. package/src/types/dictionary/KeysNotEqualValue.ts +0 -20
  562. package/src/types/dictionary/KeysWithValue.ts +0 -51
  563. package/src/types/dictionary/KeysWithoutValue.ts +0 -18
  564. package/src/types/dictionary/KvFn.ts +0 -20
  565. package/src/types/dictionary/MakeKeysOptional.ts +0 -49
  566. package/src/types/dictionary/MakeKeysRequired.ts +0 -23
  567. package/src/types/dictionary/MakePropsMutable.ts +0 -51
  568. package/src/types/dictionary/MapTo.ts +0 -475
  569. package/src/types/dictionary/MaybeRef.ts +0 -17
  570. package/src/types/dictionary/MergeKVs.ts +0 -30
  571. package/src/types/dictionary/MutableProps.ts +0 -9
  572. package/src/types/dictionary/NonNumericKeys.ts +0 -8
  573. package/src/types/dictionary/NonStringKeys.ts +0 -15
  574. package/src/types/dictionary/OptionalKeys.ts +0 -36
  575. package/src/types/dictionary/OptionalProps.ts +0 -11
  576. package/src/types/dictionary/PascalKeys.ts +0 -42
  577. package/src/types/dictionary/ReadonlyKeys.ts +0 -19
  578. package/src/types/dictionary/ReadonlyProps.ts +0 -9
  579. package/src/types/dictionary/RemoveIndexKeys.ts +0 -22
  580. package/src/types/dictionary/RequireProps.ts +0 -15
  581. package/src/types/dictionary/RequiredKeys.ts +0 -27
  582. package/src/types/dictionary/RequiredProps.ts +0 -8
  583. package/src/types/dictionary/RetainProps.ts +0 -45
  584. package/src/types/dictionary/SharedKeys.ts +0 -21
  585. package/src/types/dictionary/SimplifyObject.ts +0 -11
  586. package/src/types/dictionary/SnakeKeys.ts +0 -42
  587. package/src/types/dictionary/StringKeys.ts +0 -8
  588. package/src/types/dictionary/TakeProp.ts +0 -16
  589. package/src/types/dictionary/UpsertKeyValue.ts +0 -29
  590. package/src/types/dictionary/ValidKey.ts +0 -16
  591. package/src/types/dictionary/Values.ts +0 -47
  592. package/src/types/dictionary/WithKeys.ts +0 -42
  593. package/src/types/dictionary/WithNumericKeys.ts +0 -8
  594. package/src/types/dictionary/WithStringKeys.ts +0 -9
  595. package/src/types/dictionary/WithValue.ts +0 -42
  596. package/src/types/dictionary/WithoutKeys.ts +0 -40
  597. package/src/types/dictionary/WithoutValue.ts +0 -20
  598. package/src/types/dictionary/index.ts +0 -64
  599. package/src/types/errors/AsError.ts +0 -110
  600. package/src/types/errors/CompleteError.ts +0 -80
  601. package/src/types/errors/ErrorCondition.ts +0 -126
  602. package/src/types/errors/ErrorConditionHandler.ts +0 -10
  603. package/src/types/errors/KindError.ts +0 -49
  604. package/src/types/errors/MapError.ts +0 -29
  605. package/src/types/errors/PartialError.ts +0 -25
  606. package/src/types/errors/ProxyError.ts +0 -45
  607. package/src/types/errors/StackTrace.ts +0 -14
  608. package/src/types/errors/Throw.ts +0 -58
  609. package/src/types/errors/index.ts +0 -10
  610. package/src/types/functional/Left.ts +0 -8
  611. package/src/types/functional/Option.ts +0 -0
  612. package/src/types/functional/Result.ts +0 -327
  613. package/src/types/functional/Right.ts +0 -8
  614. package/src/types/functional/index.ts +0 -3
  615. package/src/types/functions/AsFnMeta.ts +0 -32
  616. package/src/types/functions/FnFrom.ts +0 -14
  617. package/src/types/functions/FnMeta.ts +0 -36
  618. package/src/types/functions/FnProps.ts +0 -26
  619. package/src/types/functions/FnWithDescription.ts +0 -19
  620. package/src/types/functions/FnWithProps.ts +0 -26
  621. package/src/types/functions/HandleDoneFn.ts +0 -12
  622. package/src/types/functions/IdentityFn.ts +0 -20
  623. package/src/types/functions/LiteralFn.ts +0 -53
  624. package/src/types/functions/LogicFunction.ts +0 -11
  625. package/src/types/functions/NarrowingFn.ts +0 -73
  626. package/src/types/functions/OnlyFnProps.ts +0 -11
  627. package/src/types/functions/PromiseAll.ts +0 -13
  628. package/src/types/functions/RemoveFnProps.ts +0 -11
  629. package/src/types/functions/ToFn.ts +0 -22
  630. package/src/types/functions/TypeGuard.ts +0 -9
  631. package/src/types/functions/WrapperFn.ts +0 -40
  632. package/src/types/functions/index.ts +0 -28
  633. package/src/types/index.ts +0 -26
  634. package/src/types/kv/DictFromKv.ts +0 -3
  635. package/src/types/kv/KeyValue.ts +0 -12
  636. package/src/types/kv/KvFrom.ts +0 -8
  637. package/src/types/kv/KvTuple.ts +0 -14
  638. package/src/types/kv/index.ts +0 -15
  639. package/src/types/lists/AfterFirst.ts +0 -15
  640. package/src/types/lists/AllowNonTupleWhenSingular.ts +0 -18
  641. package/src/types/lists/ArrayElementType.ts +0 -17
  642. package/src/types/lists/AsArray.ts +0 -24
  643. package/src/types/lists/AsNumericArray.ts +0 -21
  644. package/src/types/lists/AsReadonlyArray.ts +0 -3
  645. package/src/types/lists/AsTuple.ts +0 -16
  646. package/src/types/lists/BeforeLast.ts +0 -34
  647. package/src/types/lists/ConvertAndMap.ts +0 -138
  648. package/src/types/lists/ConvertSet.ts +0 -44
  649. package/src/types/lists/ElementOf.ts +0 -7
  650. package/src/types/lists/Filter.ts +0 -86
  651. package/src/types/lists/FilterByProp.ts +0 -87
  652. package/src/types/lists/FilterLiterals.ts +0 -29
  653. package/src/types/lists/FilterWideTypes.ts +0 -24
  654. package/src/types/lists/Find.ts +0 -52
  655. package/src/types/lists/First.ts +0 -21
  656. package/src/types/lists/FirstOrElse.ts +0 -15
  657. package/src/types/lists/FirstString.ts +0 -7
  658. package/src/types/lists/Flatten.ts +0 -149
  659. package/src/types/lists/GetEach.ts +0 -62
  660. package/src/types/lists/IndexOf.ts +0 -151
  661. package/src/types/lists/Intersect.ts +0 -19
  662. package/src/types/lists/IntersectAll.ts +0 -26
  663. package/src/types/lists/Last.ts +0 -29
  664. package/src/types/lists/Length.ts +0 -65
  665. package/src/types/lists/LogicalReturns.ts +0 -30
  666. package/src/types/lists/MaxLength.ts +0 -44
  667. package/src/types/lists/NumericKeys.ts +0 -55
  668. package/src/types/lists/NumericSort.ts +0 -183
  669. package/src/types/lists/Pop.ts +0 -39
  670. package/src/types/lists/Push.ts +0 -25
  671. package/src/types/lists/ReplaceLast.ts +0 -14
  672. package/src/types/lists/Retain.ts +0 -81
  673. package/src/types/lists/RetainByProp.ts +0 -105
  674. package/src/types/lists/RetainLiterals.ts +0 -30
  675. package/src/types/lists/RetainWideTypes.ts +0 -31
  676. package/src/types/lists/ReturnTypes.ts +0 -20
  677. package/src/types/lists/Reverse.ts +0 -14
  678. package/src/types/lists/Second.ts +0 -22
  679. package/src/types/lists/Shift.ts +0 -50
  680. package/src/types/lists/Slice.ts +0 -133
  681. package/src/types/lists/TakeFirst.ts +0 -67
  682. package/src/types/lists/TakeLast.ts +0 -31
  683. package/src/types/lists/ToCSV.ts +0 -29
  684. package/src/types/lists/TruthyReturns.ts +0 -23
  685. package/src/types/lists/UnionFromProp.ts +0 -26
  686. package/src/types/lists/index.ts +0 -61
  687. package/src/types/literals/BooleanLike.ts +0 -9
  688. package/src/types/literals/Box.ts +0 -20
  689. package/src/types/literals/Choices.ts +0 -251
  690. package/src/types/literals/Color.ts +0 -54
  691. package/src/types/literals/ContainerBlockKey.ts +0 -22
  692. package/src/types/literals/ContainerKeyGuarantee.ts +0 -26
  693. package/src/types/literals/DoneFnTuple.ts +0 -31
  694. package/src/types/literals/ExpandRecursively.ts +0 -68
  695. package/src/types/literals/FromDefn.ts +0 -151
  696. package/src/types/literals/FromTokenNames.ts +0 -81
  697. package/src/types/literals/Narrow.ts +0 -10
  698. package/src/types/literals/Narrowable.ts +0 -9
  699. package/src/types/literals/NarrowableDefined.ts +0 -11
  700. package/src/types/literals/NarrowableScalar.ts +0 -14
  701. package/src/types/literals/OptRequired.ts +0 -4
  702. package/src/types/literals/RuntimeUnion.ts +0 -16
  703. package/src/types/literals/Unset.ts +0 -14
  704. package/src/types/literals/VueComputedRef.ts +0 -41
  705. package/src/types/literals/VueRef.ts +0 -23
  706. package/src/types/literals/index.ts +0 -19
  707. package/src/types/numeric-literals/Abs.ts +0 -31
  708. package/src/types/numeric-literals/AbsMaybe.ts +0 -21
  709. package/src/types/numeric-literals/Add.ts +0 -179
  710. package/src/types/numeric-literals/AsNegativeNumber.ts +0 -32
  711. package/src/types/numeric-literals/AsNumberWhenPossible.ts +0 -41
  712. package/src/types/numeric-literals/CSV.ts +0 -164
  713. package/src/types/numeric-literals/Decrement.ts +0 -21
  714. package/src/types/numeric-literals/Delta.ts +0 -70
  715. package/src/types/numeric-literals/Digit.ts +0 -10
  716. package/src/types/numeric-literals/DigitNonZero.ts +0 -8
  717. package/src/types/numeric-literals/Digitize.ts +0 -42
  718. package/src/types/numeric-literals/Increment.ts +0 -26
  719. package/src/types/numeric-literals/InvertNumericSign.ts +0 -18
  720. package/src/types/numeric-literals/LessThan.ts +0 -23
  721. package/src/types/numeric-literals/LessThanOrEqual.ts +0 -24
  722. package/src/types/numeric-literals/Negative.ts +0 -12
  723. package/src/types/numeric-literals/NextDigit.ts +0 -35
  724. package/src/types/numeric-literals/NumberLike.ts +0 -7
  725. package/src/types/numeric-literals/NumericRange.ts +0 -17
  726. package/src/types/numeric-literals/PriorDigit.ts +0 -35
  727. package/src/types/numeric-literals/Subtract.ts +0 -84
  728. package/src/types/numeric-literals/ToInteger.ts +0 -45
  729. package/src/types/numeric-literals/ToNumericArray.ts +0 -27
  730. package/src/types/numeric-literals/Zero.ts +0 -8
  731. package/src/types/numeric-literals/index.ts +0 -24
  732. package/src/types/queues/FifoQueue.ts +0 -39
  733. package/src/types/queues/LifoQueue.ts +0 -39
  734. package/src/types/queues/index.ts +0 -3
  735. package/src/types/runtime-types/AsType.ts +0 -65
  736. package/src/types/runtime-types/Dict.ts +0 -79
  737. package/src/types/runtime-types/FromLiteralTokens.ts +0 -56
  738. package/src/types/runtime-types/Rec.ts +0 -18
  739. package/src/types/runtime-types/Shape.ts +0 -384
  740. package/src/types/runtime-types/SimpleType.ts +0 -168
  741. package/src/types/runtime-types/StringLiteralToken.ts +0 -43
  742. package/src/types/runtime-types/TokenizeStringLiteral.ts +0 -65
  743. package/src/types/runtime-types/Type.ts +0 -381
  744. package/src/types/runtime-types/TypeOf.ts +0 -76
  745. package/src/types/runtime-types/TypeToken.ts +0 -384
  746. package/src/types/runtime-types/TypeTuple.ts +0 -22
  747. package/src/types/runtime-types/index.ts +0 -12
  748. package/src/types/sets/IntersectingKeys.ts +0 -17
  749. package/src/types/sets/Intersection.ts +0 -151
  750. package/src/types/sets/Relate.ts +0 -20
  751. package/src/types/sets/SetCandidate.ts +0 -9
  752. package/src/types/sets/Unique.ts +0 -87
  753. package/src/types/sets/UniqueKeys.ts +0 -36
  754. package/src/types/sets/UniqueKeysUnion.ts +0 -27
  755. package/src/types/sets/UniqueKv.ts +0 -17
  756. package/src/types/sets/index.ts +0 -9
  757. package/src/types/string-literals/AfterFirstChar.ts +0 -34
  758. package/src/types/string-literals/Cardinality.ts +0 -82
  759. package/src/types/string-literals/Chars.ts +0 -27
  760. package/src/types/string-literals/Concat.ts +0 -45
  761. package/src/types/string-literals/Date.ts +0 -156
  762. package/src/types/string-literals/DateTime.ts +0 -56
  763. package/src/types/string-literals/EmptyString.ts +0 -7
  764. package/src/types/string-literals/EmptyStringOr.ts +0 -12
  765. package/src/types/string-literals/EnsureLeading.ts +0 -70
  766. package/src/types/string-literals/EnsureLeadingEvery.ts +0 -22
  767. package/src/types/string-literals/EnsureSurround.ts +0 -17
  768. package/src/types/string-literals/EnsureTrailing.ts +0 -60
  769. package/src/types/string-literals/FindIndex.ts +0 -174
  770. package/src/types/string-literals/FirstChar.ts +0 -33
  771. package/src/types/string-literals/HasUppercase.ts +0 -16
  772. package/src/types/string-literals/IsCapitalized.ts +0 -18
  773. package/src/types/string-literals/Join.ts +0 -64
  774. package/src/types/string-literals/LastChar.ts +0 -35
  775. package/src/types/string-literals/PathJoin.ts +0 -55
  776. package/src/types/string-literals/Pluralize.ts +0 -107
  777. package/src/types/string-literals/Prepend.ts +0 -17
  778. package/src/types/string-literals/PrependAll.ts +0 -18
  779. package/src/types/string-literals/Proxmox.ts +0 -6
  780. package/src/types/string-literals/Repeat.ts +0 -14
  781. package/src/types/string-literals/RetainAfter.ts +0 -68
  782. package/src/types/string-literals/RetainUntil.ts +0 -69
  783. package/src/types/string-literals/Split.ts +0 -113
  784. package/src/types/string-literals/StrLen.ts +0 -17
  785. package/src/types/string-literals/StripAfter.ts +0 -24
  786. package/src/types/string-literals/StripBefore.ts +0 -24
  787. package/src/types/string-literals/StripLeading.ts +0 -48
  788. package/src/types/string-literals/StripSurround.ts +0 -34
  789. package/src/types/string-literals/StripTrailing.ts +0 -51
  790. package/src/types/string-literals/StripUntil.ts +0 -56
  791. package/src/types/string-literals/Suggest.ts +0 -52
  792. package/src/types/string-literals/Surround.ts +0 -48
  793. package/src/types/string-literals/Time.ts +0 -333
  794. package/src/types/string-literals/Truncate.ts +0 -59
  795. package/src/types/string-literals/UnderlyingType.ts +0 -29
  796. package/src/types/string-literals/casing/AllCaps.ts +0 -24
  797. package/src/types/string-literals/casing/CamelCase.ts +0 -32
  798. package/src/types/string-literals/casing/CapFirstAlpha.ts +0 -22
  799. package/src/types/string-literals/casing/CapitalizeWords.ts +0 -8
  800. package/src/types/string-literals/casing/DashToSnake.ts +0 -3
  801. package/src/types/string-literals/casing/DashUppercase.ts +0 -23
  802. package/src/types/string-literals/casing/KebabCase.ts +0 -48
  803. package/src/types/string-literals/casing/LowerAllCaps.ts +0 -17
  804. package/src/types/string-literals/casing/NamingConvention.ts +0 -14
  805. package/src/types/string-literals/casing/PascalCase.ts +0 -28
  806. package/src/types/string-literals/casing/RaiseAllLowercase.ts +0 -12
  807. package/src/types/string-literals/casing/SnakeCase.ts +0 -60
  808. package/src/types/string-literals/casing/index.ts +0 -12
  809. package/src/types/string-literals/character-sets/Alpha.ts +0 -19
  810. package/src/types/string-literals/character-sets/AlphaChar.ts +0 -10
  811. package/src/types/string-literals/character-sets/AlphaNumeric.ts +0 -31
  812. package/src/types/string-literals/character-sets/BCP.ts +0 -37
  813. package/src/types/string-literals/character-sets/CSV.ts +0 -26
  814. package/src/types/string-literals/character-sets/CarriageReturn.ts +0 -22
  815. package/src/types/string-literals/character-sets/Consonants.ts +0 -19
  816. package/src/types/string-literals/character-sets/Country.ts +0 -217
  817. package/src/types/string-literals/character-sets/DomainName.ts +0 -56
  818. package/src/types/string-literals/character-sets/DotPathFor.ts +0 -46
  819. package/src/types/string-literals/character-sets/Hexadecimal.ts +0 -27
  820. package/src/types/string-literals/character-sets/Indent.ts +0 -37
  821. package/src/types/string-literals/character-sets/InlineSvg.ts +0 -8
  822. package/src/types/string-literals/character-sets/IpAddress.ts +0 -161
  823. package/src/types/string-literals/character-sets/LowerAlpha.ts +0 -19
  824. package/src/types/string-literals/character-sets/LowerAlphaChar.ts +0 -10
  825. package/src/types/string-literals/character-sets/NonAlpha.ts +0 -7
  826. package/src/types/string-literals/character-sets/NumericChar.ts +0 -33
  827. package/src/types/string-literals/character-sets/Optional.ts +0 -48
  828. package/src/types/string-literals/character-sets/OptionalSpace.ts +0 -22
  829. package/src/types/string-literals/character-sets/PlusMinus.ts +0 -1
  830. package/src/types/string-literals/character-sets/Punctuation.ts +0 -9
  831. package/src/types/string-literals/character-sets/Repos.ts +0 -54
  832. package/src/types/string-literals/character-sets/SingularNoun.ts +0 -37
  833. package/src/types/string-literals/character-sets/SpecialChar.ts +0 -5
  834. package/src/types/string-literals/character-sets/StringDelimiter.ts +0 -5
  835. package/src/types/string-literals/character-sets/UpperAlphaChar.ts +0 -10
  836. package/src/types/string-literals/character-sets/ValueAtDotPath.ts +0 -61
  837. package/src/types/string-literals/character-sets/Variable.ts +0 -20
  838. package/src/types/string-literals/character-sets/Whitespace.ts +0 -19
  839. package/src/types/string-literals/character-sets/YouTube.ts +0 -238
  840. package/src/types/string-literals/character-sets/brackets/Brackets.ts +0 -7
  841. package/src/types/string-literals/character-sets/brackets/ClosingBracket.ts +0 -4
  842. package/src/types/string-literals/character-sets/brackets/OpeningBracket.ts +0 -4
  843. package/src/types/string-literals/character-sets/brackets/index.ts +0 -3
  844. package/src/types/string-literals/character-sets/css/color.ts +0 -98
  845. package/src/types/string-literals/character-sets/css/display-position.ts +0 -42
  846. package/src/types/string-literals/character-sets/css/global.ts +0 -4
  847. package/src/types/string-literals/character-sets/css/html-element.ts +0 -195
  848. package/src/types/string-literals/character-sets/css/index.ts +0 -11
  849. package/src/types/string-literals/character-sets/css/object.ts +0 -54
  850. package/src/types/string-literals/character-sets/css/overflow.ts +0 -55
  851. package/src/types/string-literals/character-sets/css/property.ts +0 -36
  852. package/src/types/string-literals/character-sets/css/props.ts +0 -115
  853. package/src/types/string-literals/character-sets/css/pseudo-classes.ts +0 -169
  854. package/src/types/string-literals/character-sets/css/selector.ts +0 -51
  855. package/src/types/string-literals/character-sets/css/sizing.ts +0 -35
  856. package/src/types/string-literals/character-sets/images/Exif.ts +0 -581
  857. package/src/types/string-literals/character-sets/images/ImgFormat.ts +0 -30
  858. package/src/types/string-literals/character-sets/images/index.ts +0 -2
  859. package/src/types/string-literals/character-sets/index.ts +0 -39
  860. package/src/types/string-literals/character-sets/phone/CountryPhoneNumber.ts +0 -20
  861. package/src/types/string-literals/character-sets/phone/DialCountryCode.ts +0 -10
  862. package/src/types/string-literals/character-sets/phone/GetPhoneCountryCode.ts +0 -29
  863. package/src/types/string-literals/character-sets/phone/GetPhoneNumberType.ts +0 -39
  864. package/src/types/string-literals/character-sets/phone/InternationalPhoneNumber.ts +0 -19
  865. package/src/types/string-literals/character-sets/phone/LocalPhoneNumber.ts +0 -14
  866. package/src/types/string-literals/character-sets/phone/PhoneAreaCode.ts +0 -7
  867. package/src/types/string-literals/character-sets/phone/PhoneCountryCode.ts +0 -14
  868. package/src/types/string-literals/character-sets/phone/PhoneNumber.ts +0 -112
  869. package/src/types/string-literals/character-sets/phone/PhoneNumberDelimiter.ts +0 -5
  870. package/src/types/string-literals/character-sets/phone/PhoneShortCode.ts +0 -37
  871. package/src/types/string-literals/character-sets/phone/RawPhoneNumber.ts +0 -88
  872. package/src/types/string-literals/character-sets/phone/RemovePhoneCountryCode.ts +0 -38
  873. package/src/types/string-literals/character-sets/phone/ToPhoneFormat.ts +0 -44
  874. package/src/types/string-literals/character-sets/phone/index.ts +0 -14
  875. package/src/types/string-literals/character-sets/phone.ts +0 -7
  876. package/src/types/string-literals/character-sets/quotation-marks/ClosingMark.ts +0 -20
  877. package/src/types/string-literals/character-sets/quotation-marks/OpeningMark.ts +0 -20
  878. package/src/types/string-literals/character-sets/quotation-marks/QuotationMark.ts +0 -33
  879. package/src/types/string-literals/character-sets/quotation-marks/SmartMark.ts +0 -28
  880. package/src/types/string-literals/character-sets/quotation-marks/StandardMark.ts +0 -22
  881. package/src/types/string-literals/character-sets/quotation-marks/index.ts +0 -6
  882. package/src/types/string-literals/character-sets/quotation-marks/individual-smart-marks.ts +0 -77
  883. package/src/types/string-literals/character-sets/tw/TwColor.ts +0 -138
  884. package/src/types/string-literals/character-sets/tw/index.ts +0 -1
  885. package/src/types/string-literals/character-sets/urls/Github.ts +0 -163
  886. package/src/types/string-literals/character-sets/urls/Social.ts +0 -43
  887. package/src/types/string-literals/character-sets/urls/Url.ts +0 -428
  888. package/src/types/string-literals/character-sets/urls/bitbucket.ts +0 -71
  889. package/src/types/string-literals/character-sets/urls/book-urls.ts +0 -8
  890. package/src/types/string-literals/character-sets/urls/index.ts +0 -6
  891. package/src/types/string-literals/character-sets/urls/news/australian.ts +0 -26
  892. package/src/types/string-literals/character-sets/urls/news/belgian.ts +0 -26
  893. package/src/types/string-literals/character-sets/urls/news/canadian.ts +0 -27
  894. package/src/types/string-literals/character-sets/urls/news/chinese.ts +0 -26
  895. package/src/types/string-literals/character-sets/urls/news/danish.ts +0 -26
  896. package/src/types/string-literals/character-sets/urls/news/dutch.ts +0 -26
  897. package/src/types/string-literals/character-sets/urls/news/french.ts +0 -26
  898. package/src/types/string-literals/character-sets/urls/news/german.ts +0 -26
  899. package/src/types/string-literals/character-sets/urls/news/index.ts +0 -63
  900. package/src/types/string-literals/character-sets/urls/news/indian.ts +0 -26
  901. package/src/types/string-literals/character-sets/urls/news/italian.ts +0 -26
  902. package/src/types/string-literals/character-sets/urls/news/japanese.ts +0 -26
  903. package/src/types/string-literals/character-sets/urls/news/mexican.ts +0 -26
  904. package/src/types/string-literals/character-sets/urls/news/norwegian.ts +0 -26
  905. package/src/types/string-literals/character-sets/urls/news/south-korean.ts +0 -26
  906. package/src/types/string-literals/character-sets/urls/news/spanish.ts +0 -26
  907. package/src/types/string-literals/character-sets/urls/news/swiss.ts +0 -26
  908. package/src/types/string-literals/character-sets/urls/news/turkish.ts +0 -26
  909. package/src/types/string-literals/character-sets/urls/news/uk.ts +0 -26
  910. package/src/types/string-literals/character-sets/urls/news/us.ts +0 -26
  911. package/src/types/string-literals/character-sets/urls/retail.ts +0 -59
  912. package/src/types/string-literals/geo/index.ts +0 -2
  913. package/src/types/string-literals/geo/state.ts +0 -63
  914. package/src/types/string-literals/geo/zip.ts +0 -34
  915. package/src/types/string-literals/index.ts +0 -56
  916. package/src/types/string-literals/metrics/acceleration.ts +0 -34
  917. package/src/types/string-literals/metrics/area.ts +0 -34
  918. package/src/types/string-literals/metrics/current.ts +0 -34
  919. package/src/types/string-literals/metrics/distance.ts +0 -33
  920. package/src/types/string-literals/metrics/energy.ts +0 -34
  921. package/src/types/string-literals/metrics/frequency.ts +0 -34
  922. package/src/types/string-literals/metrics/global.ts +0 -63
  923. package/src/types/string-literals/metrics/index.ts +0 -17
  924. package/src/types/string-literals/metrics/luminosity.ts +0 -34
  925. package/src/types/string-literals/metrics/mass.ts +0 -34
  926. package/src/types/string-literals/metrics/power.ts +0 -34
  927. package/src/types/string-literals/metrics/pressure.ts +0 -34
  928. package/src/types/string-literals/metrics/resistance.ts +0 -34
  929. package/src/types/string-literals/metrics/speed.ts +0 -31
  930. package/src/types/string-literals/metrics/temperature.ts +0 -34
  931. package/src/types/string-literals/metrics/time.ts +0 -34
  932. package/src/types/string-literals/metrics/voltage.ts +0 -34
  933. package/src/types/string-literals/metrics/volume.ts +0 -34
  934. package/src/types/string-literals/options/DropChars.ts +0 -47
  935. package/src/types/string-literals/options/TypeRequired.ts +0 -8
  936. package/src/types/string-literals/options/TypeStrength.ts +0 -9
  937. package/src/types/string-literals/options/index.ts +0 -3
  938. package/src/types/tsconfig.json +0 -51
  939. package/src/types/tuples/DictArray.ts +0 -21
  940. package/src/types/tuples/FirstKey.ts +0 -16
  941. package/src/types/tuples/FirstKeyValue.ts +0 -10
  942. package/src/types/tuples/FirstOfEach.ts +0 -16
  943. package/src/types/tuples/FixedLengthArray.ts +0 -28
  944. package/src/types/tuples/FromDictArray.ts +0 -13
  945. package/src/types/tuples/LastCharOfSome.ts +0 -0
  946. package/src/types/tuples/LastOfEach.ts +0 -21
  947. package/src/types/tuples/SecondOfEach.ts +0 -13
  948. package/src/types/tuples/index.ts +0 -19
  949. package/src/types/type-conversion/AsBoolean.ts +0 -16
  950. package/src/types/type-conversion/AsContainer.ts +0 -17
  951. package/src/types/type-conversion/AsDefined.ts +0 -8
  952. package/src/types/type-conversion/AsDictionary.ts +0 -5
  953. package/src/types/type-conversion/AsFunction.ts +0 -14
  954. package/src/types/type-conversion/AsNonNull.ts +0 -38
  955. package/src/types/type-conversion/AsNumber.ts +0 -29
  956. package/src/types/type-conversion/AsObject.ts +0 -6
  957. package/src/types/type-conversion/AsObjectKeys.ts +0 -21
  958. package/src/types/type-conversion/AsPropertyKey.ts +0 -11
  959. package/src/types/type-conversion/AsRecord.ts +0 -21
  960. package/src/types/type-conversion/AsRef.ts +0 -5
  961. package/src/types/type-conversion/AsString.ts +0 -28
  962. package/src/types/type-conversion/AsStringUnion.ts +0 -49
  963. package/src/types/type-conversion/Awaited.ts +0 -11
  964. package/src/types/type-conversion/Break.ts +0 -24
  965. package/src/types/type-conversion/IntersectWithAll.ts +0 -21
  966. package/src/types/type-conversion/JSON.ts +0 -40
  967. package/src/types/type-conversion/LeftWhitespace.ts +0 -19
  968. package/src/types/type-conversion/Merge.ts +0 -124
  969. package/src/types/type-conversion/MergeObjects.ts +0 -56
  970. package/src/types/type-conversion/Mutable.ts +0 -46
  971. package/src/types/type-conversion/ObjectToKvDict.ts +0 -21
  972. package/src/types/type-conversion/ReduceValues.ts +0 -32
  973. package/src/types/type-conversion/RemoveFromEnd.ts +0 -14
  974. package/src/types/type-conversion/RemoveFromStart.ts +0 -14
  975. package/src/types/type-conversion/RemoveIndex.ts +0 -27
  976. package/src/types/type-conversion/Replace.ts +0 -28
  977. package/src/types/type-conversion/ReplaceAll.ts +0 -87
  978. package/src/types/type-conversion/RetainChars.ts +0 -35
  979. package/src/types/type-conversion/ReturnValues.ts +0 -31
  980. package/src/types/type-conversion/RightWhitespace.ts +0 -13
  981. package/src/types/type-conversion/StringLength.ts +0 -34
  982. package/src/types/type-conversion/StringLiteralFromTuple.ts +0 -38
  983. package/src/types/type-conversion/StripChars.ts +0 -44
  984. package/src/types/type-conversion/ToBoolean.ts +0 -47
  985. package/src/types/type-conversion/ToContainer.ts +0 -41
  986. package/src/types/type-conversion/ToJsonValue.ts +0 -76
  987. package/src/types/type-conversion/ToNumber.ts +0 -54
  988. package/src/types/type-conversion/ToString.ts +0 -43
  989. package/src/types/type-conversion/ToStringArray.ts +0 -15
  990. package/src/types/type-conversion/ToUnion.ts +0 -11
  991. package/src/types/type-conversion/Trim.ts +0 -28
  992. package/src/types/type-conversion/TrimLeft.ts +0 -14
  993. package/src/types/type-conversion/TrimRight.ts +0 -14
  994. package/src/types/type-conversion/TupleToUnion.ts +0 -19
  995. package/src/types/type-conversion/UnionArrayToTuple.ts +0 -29
  996. package/src/types/type-conversion/UnionFilter.ts +0 -116
  997. package/src/types/type-conversion/UnionShift.ts +0 -30
  998. package/src/types/type-conversion/UnionToIntersection.ts +0 -10
  999. package/src/types/type-conversion/UnionToTuple.ts +0 -31
  1000. package/src/types/type-conversion/UnionWithAll.ts +0 -18
  1001. package/src/types/type-conversion/ValueOrReturnValue.ts +0 -28
  1002. package/src/types/type-conversion/Widen.ts +0 -244
  1003. package/src/types/type-conversion/WidenValues.ts +0 -37
  1004. package/src/types/type-conversion/WithDefault.ts +0 -31
  1005. package/src/types/type-conversion/form-fields.ts +0 -10
  1006. package/src/types/type-conversion/index.ts +0 -71
@@ -1,475 +0,0 @@
1
- /* eslint-disable no-use-before-define */
2
- import {
3
- Dictionary,
4
- MergeObjects,
5
- OptRequired
6
- } from "inferred-types/dist/types/index";
7
-
8
- /**
9
- * utility function to take a fully-qualified _user_ config
10
- * and make it into a FinalizedMapConfig
11
- */
12
- const toFinalizedConfig = <
13
- IR extends OptRequired,
14
- D extends MapCardinalityIllustrated,
15
- OR extends OptRequired
16
- >(
17
- config: MapConfig<IR, D, OR>
18
- ) => {
19
- return { ...config, finalized: true } as FinalizedMapConfig<IR, D, OR>;
20
- };
21
-
22
- export const DEFAULT_ONE_TO_MANY_MAPPING = toFinalizedConfig({
23
- input: "req",
24
- output: "opt",
25
- cardinality: "I -> O[]",
26
- });
27
-
28
- export const DEFAULT_ONE_TO_ONE_MAPPING = toFinalizedConfig({
29
- input: "req",
30
- output: "req",
31
- cardinality: "I -> O",
32
- });
33
-
34
- export const DEFAULT_MANY_TO_ONE_MAPPING = toFinalizedConfig({
35
- input: "req",
36
- output: "req",
37
- cardinality: "I[] -> O",
38
- });
39
-
40
- /**
41
- * The _default_ One-to-Many mapping that the mapTo() utility provides
42
- */
43
- export type DefaultOneToManyMapping = typeof DEFAULT_ONE_TO_MANY_MAPPING;
44
-
45
- /**
46
- * The _default_ One-to-One mapping that the mapTo() utility provides
47
- */
48
- export type DefaultOneToOneMapping = typeof DEFAULT_ONE_TO_ONE_MAPPING;
49
-
50
- /**
51
- * The _default_ Many-to-One mapping that the mapTo() utility provides
52
- */
53
- export type DefaultManyToOneMapping = typeof DEFAULT_MANY_TO_ONE_MAPPING;
54
-
55
-
56
- /**
57
- * Expresses relationship between inputs/outputs:
58
- */
59
- export enum MapCardinality {
60
- /** every input results in 0:M outputs */
61
- OneToMany = "I -> O[]",
62
- /** every input results in 0:1 outputs */
63
- OneToOne = "I -> O",
64
- /** every input is an array of type I and reduced to a single O */
65
- ManyToOne = "I[] -> O",
66
- }
67
-
68
- export type MapCardinalityIllustrated = `${string | number}`;
69
-
70
- /**
71
- * The _user_ configuration of a **mapTo** mapper function
72
- * which will be finalized by merging it with the appropriate
73
- * default mapping type.
74
- */
75
- export interface MapConfig<
76
- IR extends OptRequired | undefined = undefined,
77
- D extends MapCardinalityIllustrated | undefined = undefined,
78
- OR extends OptRequired | undefined = undefined
79
- > {
80
- input?: IR;
81
- output?: OR;
82
- cardinality?: D;
83
- /**
84
- * Whether calls to the final `MapFn` will be logged to stderr
85
- * for debugging purposes. Defaults to false; if you specify
86
- * a _string_ for a value that will be sent to stderr along
87
- * with other debugging info.
88
- */
89
- debug?: boolean | string;
90
- }
91
-
92
- /**
93
- * A finalized configuration of a **mapTo** mapper functions cardinality
94
- * relationships between _inputs_ and _outputs_.
95
- *
96
- * Note: _this configuration does _not_ yet include the actual mapping
97
- * configuration between the input and output._
98
- */
99
- export type FinalizedMapConfig<
100
- IR extends OptRequired = MapIR<DefaultOneToManyMapping & string>,
101
- D extends MapCardinalityIllustrated = MapCard<DefaultOneToManyMapping>,
102
- OR extends OptRequired = MapOR<DefaultOneToManyMapping>
103
- > = Required<Omit<MapConfig<IR, D, OR>, "debug">> & { finalized: true; debug: boolean | string };
104
-
105
- /**
106
- * User configuration exposed by a config function which specifies the
107
- * cardinality already (e.g., `oneToMany()`, `manyToOne()`)
108
- */
109
- type MapCardinalityConfig<
110
- IR extends OptRequired | undefined,
111
- OR extends OptRequired | undefined
112
- > = {
113
- /** whether we the input can _optionally_ be an `undefined` value or not */
114
- input?: IR;
115
- /** whether we the output can _optionally_ be an `undefined` value or not */
116
- output?: OR;
117
- /**
118
- * Whether calls to the final `MapFn` will be logged to stderr
119
- * for debugging purposes. Defaults to false; if you set to a string
120
- * value than this will be echoed out with stderr.
121
- */
122
- debug?: boolean | string;
123
- };
124
-
125
- /**
126
- * **ConfiguredMap**
127
- *
128
- * A partial application of the mapTo() utility which has expressed the
129
- * configuration of the _inputs_ and _outputs_ and provides a `.map()`
130
- * method which allows the user configure the specifics of the mapping.
131
- */
132
- export type ConfiguredMap<
133
- C extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
134
- > = {
135
- map: <I, O>(map: MapTo<I, O, C>) => Mapper<I, O, C>;
136
- input: MapIR<C>;
137
- cardinality: MapCard<C>;
138
- output: MapOR<C>;
139
- debug: boolean | string;
140
- };
141
-
142
- /**
143
- * Extracts the IR, Cardinality, and OR generics from a FinalizedMapConfig
144
- */
145
- export type DecomposeMapConfig<
146
- M extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
147
- > = M extends MapConfig<infer IR, infer D, infer OR>
148
- ? IR extends OptRequired | undefined
149
- ? D extends MapCardinalityIllustrated | undefined
150
- ? OR extends OptRequired | undefined
151
- ? [IR, D, OR]
152
- : never
153
- : never
154
- : never
155
- : M extends FinalizedMapConfig<infer IR, infer D, infer OR>
156
- ? IR extends OptRequired
157
- ? D extends MapCardinalityIllustrated
158
- ? OR extends OptRequired
159
- ? [IR, D, OR]
160
- : never
161
- : never
162
- : never
163
- : never;
164
-
165
- /** extracts IR from a `FinalizedMapConfig` */
166
- export type MapIR<
167
- T extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
168
- > = DecomposeMapConfig<T>[0];
169
-
170
- /**
171
- * extracts the MapCardinality from a `FinalizedMapConfig`
172
- */
173
- export type MapCard<
174
- T extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
175
- > = DecomposeMapConfig<T>[1];
176
-
177
- /** extracts OR from a `FinalizedMapConfig` */
178
- export type MapOR<
179
- T extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
180
- > = DecomposeMapConfig<T>[2];
181
-
182
- /**
183
- * Merges the types of a userland configuration with a default configuration
184
- */
185
- export type AsFinalizedConfig<
186
- U extends MapConfig<
187
- OptRequired | undefined,
188
- MapCardinalityIllustrated | undefined,
189
- OptRequired | undefined
190
- >,
191
- D extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
192
- > = MergeObjects<U & Dictionary, D> extends FinalizedMapConfig<infer IR, infer C, infer OR>
193
- ? FinalizedMapConfig<IR, C, OR>
194
- : never;
195
-
196
- export type MapperApi = {
197
- /**
198
- * Provides opportunity to configure _input_, _output_, and _cardinality_
199
- * prior to providing a mapping function.
200
- *
201
- * Note: _the defaults for configuration are defined by the_ `DEFAULT_ONE_TO_MANY_MAPPING`
202
- * _constant made available as a symbol from this library._
203
- */
204
- config: <
205
- C extends MapConfig<
206
- OptRequired, //
207
- MapCardinalityIllustrated,
208
- OptRequired
209
- >
210
- >(
211
- config: C
212
- ) => ConfiguredMap<
213
- AsFinalizedConfig<
214
- C, //
215
- DefaultOneToManyMapping
216
- >
217
- >;
218
-
219
- /**
220
- * Provides a nice 1:1 ratio between the input and output.
221
- *
222
- * By default the input and output are considered to be _required_
223
- * properties but this can be changed with the options hash provided.
224
- * ```ts
225
- * const mapper = mapTo.oneToOne().map(...);
226
- * // add in ability to filter out some inputs
227
- * const mapAndFilter = mapTo.oneToOne({ output: "opt" })
228
- * ```
229
- */
230
- oneToOne: <C extends MapCardinalityConfig<OptRequired, OptRequired>>(
231
- config?: C
232
- ) => ConfiguredMap<
233
- AsFinalizedConfig<
234
- C, //
235
- DefaultOneToOneMapping
236
- >
237
- >;
238
-
239
- /**
240
- * **manyToOne** _mapping_
241
- *
242
- * Provides a configuration where multiple inputs `I[]` will be mapped to a
243
- * single output `O`.
244
- *
245
- * Choosing this configuration will, by default, set both input and output
246
- * to be "required" but you can change this default if you so choose.
247
- */
248
- manyToOne: <
249
- C extends MapCardinalityConfig<
250
- OptRequired | undefined, //
251
- OptRequired | undefined
252
- >
253
- >(
254
- config?: C
255
- ) => ConfiguredMap<
256
- AsFinalizedConfig<
257
- C, //
258
- DefaultManyToOneMapping
259
- >
260
- >;
261
-
262
- oneToMany: <
263
- C extends MapCardinalityConfig<
264
- OptRequired | undefined, //
265
- OptRequired | undefined
266
- >
267
- >(
268
- config?: C
269
- ) => ConfiguredMap<
270
- AsFinalizedConfig<
271
- C, //
272
- DefaultOneToManyMapping
273
- >
274
- >;
275
- };
276
-
277
- export type MapInput<
278
- I, //
279
- IR extends OptRequired,
280
- C extends MapCardinalityIllustrated
281
- > = C extends MapCardinality.OneToMany | "I -> O[]"
282
- ? IR extends "opt"
283
- ? I | undefined
284
- : I
285
- : C extends MapCardinality.OneToOne | "I -> O"
286
- ? IR extends "opt"
287
- ? I | undefined
288
- : I
289
- : C extends MapCardinality.ManyToOne | "I[] -> O"
290
- ? IR extends "opt"
291
- ? I[] | undefined
292
- : I[]
293
- : never;
294
-
295
- export type MapOutput<
296
- O, //
297
- OR extends OptRequired,
298
- C extends MapCardinalityIllustrated
299
- > = C extends MapCardinality.OneToMany | "I -> O[]"
300
- ? OR extends "opt"
301
- ? O[]
302
- : [O, ...O[]]
303
- : C extends MapCardinality.OneToOne | "I -> O"
304
- ? OR extends "opt"
305
- ? O | null
306
- : O
307
- : C extends MapCardinality.ManyToOne | "I[] -> O"
308
- ? OR extends "opt"
309
- ? O | null
310
- : O
311
- : never;
312
-
313
- /**
314
- * **MapTo<I, O>**
315
- *
316
- * A mapping function between an input type `I` and output type `O`. Defaults to using
317
- * the _default_ OneToMany mapping config.
318
- *
319
- * **Note:** this type is designed to guide the userland mapping; refer
320
- * to `MapFn` if you want the type output by the `mapFn()` utility.
321
- */
322
- export type MapTo<
323
- I,
324
- O,
325
- C extends FinalizedMapConfig<
326
- OptRequired,
327
- MapCardinalityIllustrated,
328
- OptRequired
329
- > = DefaultOneToManyMapping
330
- > = MapIR<C> extends "opt"
331
- ? (source?: MapInput<I, MapIR<C>, MapCard<C>>) => MapOutput<O, MapOR<C>, MapCard<C>>
332
- : (source: MapInput<I, MapIR<C>, MapCard<C>>) => MapOutput<O, MapOR<C>, MapCard<C>>;
333
-
334
- export type MapFnOutput<
335
- I,
336
- O,
337
- S,
338
- OR extends OptRequired,
339
- C extends MapCardinalityIllustrated
340
- > = C extends "I -> O[]" | MapCardinality.OneToMany
341
- ? S extends I[]
342
- ? OR extends "opt"
343
- ? O[]
344
- : [O, ...O[]]
345
- : OR extends "opt"
346
- ? O[] | null
347
- : O[]
348
- : C extends MapCardinality.OneToOne | "I -> O"
349
- ? S extends I[]
350
- ? OR extends "opt"
351
- ? O[]
352
- : [O, ...O[]]
353
- : OR extends "opt"
354
- ? O | null
355
- : O
356
- : C extends MapCardinality.ManyToOne | "I[] -> O"
357
- ? S extends I[][]
358
- ? OR extends "opt"
359
- ? O[]
360
- : [O, ...O[]]
361
- : OR extends "opt"
362
- ? O | null
363
- : O
364
- : never;
365
-
366
- export type MapFnInput<I, IR extends OptRequired, D extends MapCardinalityIllustrated> = D extends
367
- | "I -> O[]"
368
- | MapCardinality.OneToMany
369
- ? IR extends "opt"
370
- ? I | I[] | undefined
371
- : I | I[]
372
- : D extends MapCardinality.OneToOne | "I -> O"
373
- ? IR extends "opt"
374
- ? I | I[] | undefined
375
- : I | I[]
376
- : D extends MapCardinality.ManyToOne | "I[] -> O"
377
- ? IR extends "opt"
378
- ? I[] | I[][] | undefined
379
- : I[] | I[][]
380
- : never;
381
-
382
- /**
383
- * The mapping function provided by the `mapFn()` utility. This _fn_
384
- * is intended to be used in two ways:
385
- *
386
- * 1. Iterative:
387
- * ```ts
388
- * const m = mapTo<I,O>(i => [ ... ]);
389
- * // maps inputs to outputs
390
- * const out = inputs.map(m);
391
- * ```
392
- * 2. Block:
393
- * ```ts
394
- * // maps inputs to outputs (filtering or splitting where appr.)
395
- * const out2 = m(inputs);
396
- * ```
397
- */
398
- export type MapFn<
399
- I,
400
- O,
401
- C extends FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
402
- > = MapIR<C> extends "opt"
403
- ? <S extends MapFnInput<I, MapIR<C>, MapCard<C>>>(
404
- source?: S
405
- ) => MapFnOutput<I, O, S, MapOR<C>, MapCard<C>>
406
- : <S extends MapFnInput<I, MapIR<C>, MapCard<C>>>(
407
- source: S
408
- ) => MapFnOutput<I, O, S, MapOR<C>, MapCard<C>>;
409
-
410
- /**
411
- * **Mapper**
412
- *
413
- * A fully configured _mapper_ stemming from the **mapTo()** utility. It is both a mapping
414
- * function and a dictionary which describes the mapper's properties.
415
- * ```ts
416
- * const m = mapTo.oneToOne().map( ... );
417
- * const mapped = m(inputs);
418
- * const mappedOver = inputs.map(m);
419
- * ```
420
- *
421
- * Note: the root of a `Mapper` is the mapper function but
422
- * this is combined with a dictionary of settings and types
423
- * which you can use. For instance, look at the `fnSignature`
424
- * property to get the _type_ signature of the map function.
425
- */
426
- export type Mapper<
427
- I = unknown,
428
- O = unknown,
429
- C extends FinalizedMapConfig<
430
- OptRequired,
431
- MapCardinalityIllustrated,
432
- OptRequired
433
- > = FinalizedMapConfig<OptRequired, MapCardinalityIllustrated, OptRequired>
434
- > = {
435
- input: MapIR<C>;
436
- output: MapOR<C>;
437
- cardinality: MapCard<C>;
438
- debug: boolean | string;
439
- inputType: I;
440
- outputType: O;
441
- /**
442
- * Provides the _type_ information for mapper function.
443
- *
444
- * Note: _this is just a **type**_ not the actual function which positioned
445
- * at the root of the Mapper type
446
- */
447
- fnSignature: MapFn<I, O, C>;
448
- } & MapFn<I, O, C>;
449
-
450
- /**
451
- * **MapInputFrom**
452
- *
453
- * Type utility which extracts the `I` type from a fully configured `Mapper`
454
- */
455
- export type MapInputFrom<T extends Mapper> = T extends Mapper<infer I> ? I : never;
456
-
457
- /**
458
- * **MapOutputFrom**
459
- *
460
- * Type utility which extracts the output [`O`] type from a fully configured `Mapper`
461
- */
462
-
463
- export type MapOutputFrom<T extends Mapper> = T extends Mapper<any, infer O> ? O : never;
464
-
465
- /**
466
- * **MapCardinalityFrom**
467
- *
468
- * Type utility which extracts _cardinality_ of a `Mapper`'s inputs to outputs
469
- */
470
-
471
- export type MapCardinalityFrom<T extends Mapper> = T extends Mapper<any, any, infer C>
472
- ? C extends FinalizedMapConfig<OptRequired, infer Cardinality, OptRequired>
473
- ? Cardinality
474
- : never
475
- : never;
@@ -1,17 +0,0 @@
1
- import { VueRef } from "inferred-types/dist/types/index";
2
-
3
- /**
4
- * **MaybeRef**`<T>`
5
- *
6
- * Used to represent a type which is either of the two:
7
- *
8
- * - `T`
9
- * - `VueRef<T>`
10
- *
11
- * **Related:** `IsRef`, `IfRef`
12
- * ```ts
13
- * // number | VueRef<number>
14
- * type T = MaybeRef<number>;
15
- * ```
16
- */
17
- export type MaybeRef<T> = T | VueRef<T>;
@@ -1,30 +0,0 @@
1
- import { Dictionary, EmptyObject } from "../base-types";
2
- import { AfterFirst } from "../lists/AfterFirst";
3
- import { First } from "../lists/First";
4
- import { ExpandRecursively } from "../literals/ExpandRecursively";
5
-
6
- type Process<
7
- TInput extends readonly {[key: string]: unknown}[],
8
- TOutput extends Dictionary = EmptyObject
9
- > = [] extends TInput
10
- ? TOutput extends Record<string, unknown>
11
- ? ExpandRecursively<TOutput>
12
- : never
13
- : Process<
14
- AfterFirst<TInput>,
15
- First<TInput> extends keyof TOutput
16
- ? TOutput
17
- : TOutput & First<TInput>
18
- >;
19
-
20
- /**
21
- * **MergeKVs**`<TKVs>`
22
- *
23
- * Receives an array of `Dictionary` types and merges this to
24
- * single dictionary.
25
- *
26
- * **Note:** _if key is repeated in the set, only the first one's value will be retained_
27
- */
28
- export type MergeKVs<
29
- TInput extends readonly {[key: string]: unknown}[]
30
- > = Process<TInput>
@@ -1,9 +0,0 @@
1
- import { Dictionary, ReadonlyKeys } from "inferred-types/dist/types/index";
2
-
3
- /**
4
- * **MutableProps**`<T>`
5
- *
6
- * Reduces an object down to just the key/value pairs which
7
- * are mutable.
8
- */
9
- export type MutableProps<T extends Dictionary> = Omit<T, ReadonlyKeys<T>>;
@@ -1,8 +0,0 @@
1
- /**
2
- * **NonNumericKeys**`<T>`
3
- *
4
- * The keys in an array/object `T` which are _not_ numeric keys.
5
- */
6
- export type NonNumericKeys<T extends object> = {
7
- [K in keyof T]: K extends number ? never : Readonly<K>;
8
- }[keyof T];
@@ -1,15 +0,0 @@
1
- import { AnyObject } from "inferred-types/dist/types/index";
2
-
3
- /**
4
- * **NonStringKeys**`<T>`
5
- *
6
- * Builds a union type of the keys of `T` which are _not_
7
- * _string_ keys. This can be useful as _symbols_ can also
8
- * be seen as valid keys and these keys are often used for
9
- * "identity" purposes.
10
- *
11
- * **Related:** `StringKeys`
12
- */
13
- export type NonStringKeys<T extends AnyObject> = {
14
- [K in keyof T]: K extends string ? never : Readonly<K>;
15
- }[keyof T];
@@ -1,36 +0,0 @@
1
-
2
- import {
3
- AnyObject,
4
- EmptyObject,
5
- If,
6
- IsEqual,
7
- Unset
8
- } from "inferred-types/dist/types/index";
9
-
10
- /**
11
- * **OptionalKeys**`<T,[V]>`
12
- *
13
- * Provides a union type of the _keys_ in `T` which are
14
- * **optional** properties.
15
- *
16
- * **Note:** you also may optionally filter further by specifying a value
17
- * by the _value_ of the key and then only keys which are required AND
18
- * who extend `V` will be included in the union.
19
- *
20
- * **Related:** `OptionalKeys`, `RequiredProps` * Provides a union type of the _keys_ in `T` which are
21
- * **required** properties.
22
- *
23
- * **Note:** you also may optionally filter further by specifying a value
24
- * by the _value_ of the key and then only keys which are required AND
25
- * who extend `V` will be included in the union.
26
- *
27
- * **Related:** `RequiredKeys`, `RequiredProps`
28
- */
29
- export type OptionalKeys<
30
- T extends AnyObject,
31
- V = Unset
32
- > = {
33
- [K in keyof T]-?: EmptyObject extends { [P in K]: T[K] }
34
- ? If<IsEqual<V,Unset>, K, K extends V ? K : never>
35
- : never;
36
- }[keyof T];
@@ -1,11 +0,0 @@
1
- import { EmptyObject, OptionalKeys, RemoveIndexKeys } from "inferred-types/dist/types/index";
2
-
3
- /**
4
- * **OptionalProps**
5
- *
6
- * Reduces an object to only key/value pairs where the key is optional
7
- */
8
- export type OptionalProps<T extends object> =
9
- EmptyObject extends RemoveIndexKeys<Pick<T, OptionalKeys<T>>>
10
- ? RemoveIndexKeys<Pick<T, OptionalKeys<T>>>
11
- : never;
@@ -1,42 +0,0 @@
1
- import { Dictionary, EmptyObject, ObjectKey } from "../base-types";
2
- import { AfterFirst, First } from "../lists";
3
- import { ExpandDictionary } from "../literals/ExpandRecursively";
4
- import { PascalCase } from "../string-literals";
5
- import { UnionMutate } from "../type-conversion";
6
- import { Keys } from "./Keys";
7
- import { MakeKeysOptional } from "./MakeKeysOptional";
8
- import { OptionalKeys } from "./OptionalKeys";
9
-
10
-
11
- type Process<
12
- TObj extends Dictionary,
13
- TKeys extends readonly (ObjectKey & keyof TObj)[],
14
- TResult extends Dictionary = EmptyObject
15
- > = [] extends TKeys
16
- ? ExpandDictionary<TResult>
17
- : Process<
18
- TObj,
19
- AfterFirst<TKeys>,
20
- First<TKeys> extends string
21
- ? Record<PascalCase<First<TKeys>>, TObj[First<TKeys>]> & TResult
22
- : Record<First<TKeys>, TObj[First<TKeys>]> & TResult
23
- >;
24
-
25
- /**
26
- * Converts an object's keys to the **camelCase** equivalent
27
- * while keeping the values the same.
28
- */
29
- export type PascalKeys<
30
- T extends Dictionary
31
- > = MakeKeysOptional<
32
- // make all keys camel case and required
33
- Process<T, Keys<T>>,
34
- // make optional props optional again
35
- OptionalKeys<T> extends string
36
- ? UnionMutate<OptionalKeys<T>, "PascalCase"> extends string
37
- ? UnionMutate<OptionalKeys<T>, "PascalCase">
38
- : ""
39
- : ""
40
- >
41
-
42
-
@@ -1,19 +0,0 @@
1
- type MyEqual<A, B> = (<X>() => X extends A ? 0 : 1) extends <X>() => X extends B
2
- ? 0
3
- : 1
4
- ? true
5
- : false;
6
-
7
- type isReadonly<T, K extends keyof T> = MyEqual<
8
- { [P in K]: T[P] },
9
- { readonly [P in K]: T[P] }
10
- >;
11
-
12
- /**
13
- * **ReadonlyKeys**`<T>`
14
- *
15
- * Creates a union of properties in `T` which are readonly.
16
- */
17
- export type ReadonlyKeys<T extends object> = keyof {
18
- [K in keyof T as isReadonly<T, K> extends true ? K : never]: T[K];
19
- };
@@ -1,9 +0,0 @@
1
- import { ReadonlyKeys } from "inferred-types/dist/types/index";
2
-
3
- /**
4
- * **ReadonlyProps**`<T>`
5
- *
6
- * Reduces an object down to just the key/value pairs which
7
- * are readonly.
8
- */
9
- export type ReadonlyProps<T extends object> = Pick<T, ReadonlyKeys<T>>;
@@ -1,22 +0,0 @@
1
-
2
- /**
3
- * **RemoveIndexKeys**`<T>`
4
- *
5
- * Removes _index_ keys which permit key/values to be added to an object while
6
- * retaining all explicit key/values defined on an object.
7
- *
8
- * ```ts
9
- * type Obj = { [key: string]: unknown; foo: 42 };
10
- * // { foo: 42 }
11
- * type Obj2 = RemoveIndexKeys<Obj>;
12
- * ```
13
- */
14
- export type RemoveIndexKeys<T> = {
15
- [K in keyof T as string extends K
16
- ? never
17
- : number extends K
18
- ? never
19
- : symbol extends K
20
- ? never
21
- : K]: T[K]
22
- };