@strictly/define 0.0.30 → 0.0.31

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 (223) hide show
  1. package/.out/index.d.ts +26 -26
  2. package/.out/index.js +26 -26
  3. package/.out/transformers/copies/copy.d.ts +3 -3
  4. package/.out/transformers/copies/copy.js +1 -1
  5. package/.out/transformers/copies/{copy_to.d.ts → copyTo.d.ts} +3 -3
  6. package/.out/transformers/copies/{copy_to.js → copyTo.js} +1 -1
  7. package/.out/transformers/copies/mobxCopy.d.ts +5 -0
  8. package/.out/transformers/copies/{mobx_copy.js → mobxCopy.js} +3 -3
  9. package/.out/transformers/copies/specs/{copy_to.tests.js → copyTo.tests.js} +2 -2
  10. package/.out/transformers/copies/specs/{mobx_copy.tests.js → mobxCopy.tests.js} +1 -1
  11. package/.out/transformers/equals.d.ts +2 -2
  12. package/.out/transformers/equals.js +1 -1
  13. package/.out/transformers/flatteners/{flatten_accessors_of_type.d.ts → flattenAccessorsOfType.d.ts} +4 -4
  14. package/.out/transformers/flatteners/{flatten_accessors_of_type.js → flattenAccessorsOfType.js} +1 -1
  15. package/.out/transformers/flatteners/{flatten_json_value_to_type_paths_of.d.ts → flattenJsonValueToTypePathsOf.d.ts} +2 -2
  16. package/.out/transformers/flatteners/{flatten_json_value_to_type_paths_of.js → flattenJsonValueToTypePathsOf.js} +1 -1
  17. package/.out/transformers/flatteners/{flatten_type_to.d.ts → flattenTypeTo.d.ts} +1 -1
  18. package/.out/transformers/flatteners/{flatten_type_to.js → flattenTypeTo.js} +2 -2
  19. package/.out/transformers/flatteners/flattenTypesOfType.d.ts +3 -0
  20. package/.out/transformers/flatteners/{flatten_types_of_type.js → flattenTypesOfType.js} +1 -1
  21. package/.out/transformers/flatteners/{flatten_validation_errors_of_type.d.ts → flattenValidationErrorsOfType.d.ts} +5 -5
  22. package/.out/transformers/flatteners/{flatten_validation_errors_of_type.js → flattenValidationErrorsOfType.js} +1 -1
  23. package/.out/transformers/flatteners/{flatten_validators_of_validating_type.d.ts → flattenValidatorsOfValidatingType.d.ts} +3 -3
  24. package/.out/transformers/flatteners/{flatten_validators_of_validating_type.js → flattenValidatorsOfValidatingType.js} +1 -1
  25. package/.out/transformers/flatteners/{flatten_value_to.d.ts → flattenValueTo.d.ts} +4 -4
  26. package/.out/transformers/flatteners/{flatten_value_to.js → flattenValueTo.js} +2 -2
  27. package/.out/transformers/flatteners/{flatten_values_of_type.d.ts → flattenValuesOfType.d.ts} +2 -2
  28. package/.out/transformers/flatteners/{flatten_values_of_type.js → flattenValuesOfType.js} +1 -1
  29. package/.out/transformers/flatteners/specs/{flatten_accessors_of_type.tests.js → flattenAccessorsOfType.tests.js} +1 -1
  30. package/.out/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.js → flattenJsonValueToTypePathsOf.tests.js} +1 -1
  31. package/.out/transformers/flatteners/specs/{flatten_type_to.tests.js → flattenTypeTo.tests.js} +2 -2
  32. package/.out/transformers/flatteners/specs/{flatten_types_of_type.tests.js → flattenTypesOfType.tests.js} +1 -1
  33. package/.out/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.js → flattenValidationErrorsOfType.tests.js} +1 -1
  34. package/.out/transformers/flatteners/specs/{flatten_value_to.tests.js → flattenValueTo.tests.js} +1 -1
  35. package/.out/transformers/flatteners/specs/{flatten_values_of_type.tests.js → flattenValuesOfType.tests.js} +1 -1
  36. package/.out/transformers/flatteners/specs/{json_paths.tests.js → jsonPaths.tests.js} +1 -1
  37. package/.out/transformers/flatteners/specs/{value_path_to_type_path.tests.js → valuePathToTypePath.tests.js} +1 -1
  38. package/.out/transformers/flatteners/{value_path_to_type_path.d.ts → valuePathToTypePath.d.ts} +1 -1
  39. package/.out/transformers/flatteners/{value_path_to_type_path.js → valuePathToTypePath.js} +1 -1
  40. package/.out/tsconfig.tsbuildinfo +1 -1
  41. package/.out/types/{flattened_accessors_of_type.d.ts → FlattenedAccessorsOfType.d.ts} +2 -2
  42. package/.out/types/{flattened_types_of_type.d.ts → FlattenedTypesOfType.d.ts} +2 -2
  43. package/.out/types/{flattened_types_of_validating_type.d.ts → FlattenedTypesOfValidatingType.d.ts} +3 -3
  44. package/.out/types/{flattened_validators_of_validating_type.d.ts → FlattenedValidatorsOfValidatingType.d.ts} +4 -4
  45. package/.out/types/{flattened_values_of_type.d.ts → FlattenedValuesOfType.d.ts} +3 -3
  46. package/.out/types/{mobx_value_of_type.d.ts → MobxValueOfType.d.ts} +2 -2
  47. package/.out/types/{partial_type_of_type.d.ts → PartialTypeOfType.d.ts} +1 -1
  48. package/.out/types/{paths_of_type.d.ts → PathsOfType.d.ts} +2 -2
  49. package/.out/types/{readonly_type_of_type.d.ts → ReadonlyTypeOfType.d.ts} +1 -1
  50. package/.out/types/{strict_definitions.d.ts → StrictType.d.ts} +1 -1
  51. package/.out/types/{validating_definitions.d.ts → ValidatingType.d.ts} +1 -1
  52. package/.out/types/{validating_type_def_with_error.d.ts → ValidatingTypeDefWithError.d.ts} +2 -2
  53. package/.out/types/{value_of_type.d.ts → ValueOfType.d.ts} +1 -1
  54. package/.out/types/{value_to_type_paths_of_type.d.ts → ValueToTypePathsOfType.d.ts} +3 -3
  55. package/.out/types/{value_types_of_discriminated_union.d.ts → ValueTypesOfDiscriminatedUnion.d.ts} +3 -3
  56. package/.out/types/builders.d.ts +5 -5
  57. package/.out/types/builders.js +2 -2
  58. package/.out/types/flattened.d.ts +1 -1
  59. package/.out/types/specs/builder.tests.js +1 -1
  60. package/.out/types/{type_of_type.d.ts → typeOfType.d.ts} +1 -1
  61. package/.out/types/{type_of_type.js → typeOfType.js} +1 -1
  62. package/.out/validation/validator.js +1 -1
  63. package/.out/validation/validators/specs/{minimum_string_length_validator.tests.js → minimumStringLengthValidator.tests.js} +1 -1
  64. package/.out/validation/validators/specs/{regexp_validator.tests.js → regexpValidator.tests.js} +1 -1
  65. package/.turbo/turbo-build.log +6 -6
  66. package/.turbo/turbo-release$colon$exports.log +1 -1
  67. package/dist/index.cjs +22 -22
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +22 -22
  71. package/index.ts +26 -26
  72. package/package.json +1 -1
  73. package/transformers/copies/copy.ts +4 -4
  74. package/transformers/copies/{copy_to.ts → copyTo.ts} +9 -9
  75. package/transformers/copies/{mobx_copy.ts → mobxCopy.ts} +10 -10
  76. package/transformers/copies/specs/{copy_to.tests.ts → copyTo.tests.ts} +3 -3
  77. package/transformers/copies/specs/{mobx_copy.tests.ts → mobxCopy.tests.ts} +2 -2
  78. package/transformers/equals.ts +2 -2
  79. package/transformers/flatteners/{flatten_accessors_of_type.ts → flattenAccessorsOfType.ts} +7 -7
  80. package/transformers/flatteners/{flatten_json_value_to_type_paths_of.ts → flattenJsonValueToTypePathsOf.ts} +3 -3
  81. package/transformers/flatteners/{flatten_type_to.ts → flattenTypeTo.ts} +3 -5
  82. package/transformers/flatteners/{flatten_types_of_type.ts → flattenTypesOfType.ts} +3 -3
  83. package/transformers/flatteners/{flatten_validation_errors_of_type.ts → flattenValidationErrorsOfType.ts} +8 -8
  84. package/transformers/flatteners/{flatten_validators_of_validating_type.ts → flattenValidatorsOfValidatingType.ts} +4 -4
  85. package/transformers/flatteners/{flatten_value_to.ts → flattenValueTo.ts} +9 -9
  86. package/transformers/flatteners/{flatten_values_of_type.ts → flattenValuesOfType.ts} +4 -4
  87. package/transformers/flatteners/specs/{flatten_accessors_of_type.tests.ts → flattenAccessorsOfType.tests.ts} +3 -3
  88. package/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.ts → flattenJsonValueToTypePathsOf.tests.ts} +1 -1
  89. package/transformers/flatteners/specs/{flatten_type_to.tests.ts → flattenTypeTo.tests.ts} +2 -2
  90. package/transformers/flatteners/specs/{flatten_types_of_type.tests.ts → flattenTypesOfType.tests.ts} +1 -1
  91. package/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.ts → flattenValidationErrorsOfType.tests.ts} +2 -2
  92. package/transformers/flatteners/specs/{flatten_value_to.tests.ts → flattenValueTo.tests.ts} +4 -4
  93. package/transformers/flatteners/specs/{flatten_values_of_type.tests.ts → flattenValuesOfType.tests.ts} +1 -1
  94. package/transformers/flatteners/specs/{json_paths.tests.ts → jsonPaths.tests.ts} +1 -1
  95. package/transformers/flatteners/specs/{value_path_to_type_path.tests.ts → valuePathToTypePath.tests.ts} +2 -2
  96. package/transformers/flatteners/{value_path_to_type_path.ts → valuePathToTypePath.ts} +1 -1
  97. package/types/{flattened_accessors_of_type.ts → FlattenedAccessorsOfType.ts} +2 -2
  98. package/types/{flattened_types_of_type.ts → FlattenedTypesOfType.ts} +6 -6
  99. package/types/{flattened_types_of_validating_type.ts → FlattenedTypesOfValidatingType.ts} +6 -6
  100. package/types/{flattened_validators_of_validating_type.ts → FlattenedValidatorsOfValidatingType.ts} +4 -4
  101. package/types/{flattened_values_of_type.ts → FlattenedValuesOfType.ts} +3 -3
  102. package/types/{mobx_value_of_type.ts → MobxValueOfType.ts} +2 -2
  103. package/types/{partial_type_of_type.ts → PartialTypeOfType.ts} +1 -1
  104. package/types/{paths_of_type.ts → PathsOfType.ts} +6 -6
  105. package/types/{readonly_type_of_type.ts → ReadonlyTypeOfType.ts} +1 -1
  106. package/types/{strict_definitions.ts → StrictType.ts} +1 -1
  107. package/types/{validating_definitions.ts → ValidatingType.ts} +1 -1
  108. package/types/{validating_type_def_with_error.ts → ValidatingTypeDefWithError.ts} +2 -2
  109. package/types/{value_of_type.ts → ValueOfType.ts} +1 -1
  110. package/types/{value_to_type_paths_of_type.ts → ValueToTypePathsOfType.ts} +7 -7
  111. package/types/{value_types_of_discriminated_union.ts → ValueTypesOfDiscriminatedUnion.ts} +3 -3
  112. package/types/builders.ts +5 -5
  113. package/types/flattened.ts +1 -1
  114. package/types/specs/{flattened_accessors_of_type.tests.ts → FlattenedAccessorsOfType.tests.ts} +1 -1
  115. package/types/specs/{flattened_types_of_type.tests.ts → FlattenedTypesOfType.tests.ts} +2 -2
  116. package/types/specs/{flattened_validators_of_validating_type.tests.ts → FlattenedValidatorsOfValidatingType.tests.ts} +2 -2
  117. package/types/specs/{flattened_values_of_type.tests.ts → FlattenedValuesOfType.tests.ts} +1 -1
  118. package/types/specs/{partial_type_of_type.tests.ts → PartialTypeOfType.tests.ts} +2 -2
  119. package/types/specs/{paths_of_type.tests.ts → PathsOfType.tests.ts} +1 -1
  120. package/types/specs/{readonly_type_of_type.tests.ts → ReadonlyTypeOfType.tests.ts} +2 -2
  121. package/types/specs/{strict_definitions.tests.ts → StrictType.tests.ts} +5 -5
  122. package/types/specs/{type_of_type.tests.ts → TypeOfType.tests.ts} +2 -2
  123. package/types/specs/{value_of_type.tests.ts → ValueOfType.tests.ts} +2 -2
  124. package/types/specs/{value_to_type_paths_of_type.tests.ts → ValueToTypePathsOfType.tests.ts} +2 -2
  125. package/types/specs/{value_types_of_discriminated_union.tests.ts → ValueTypesOfDiscriminatedUnion.tests.ts} +1 -1
  126. package/types/specs/builder.tests.ts +2 -2
  127. package/types/{type_of_type.ts → typeOfType.ts} +1 -1
  128. package/validation/specs/{errors_of_validators.tests.ts → errorsOfValidators.tests.ts} +1 -1
  129. package/validation/specs/{validators_of_values.tests.ts → validatorsOfValues.tests.ts} +1 -1
  130. package/validation/validator.ts +1 -1
  131. package/validation/validators/specs/{minimum_string_length_validator.tests.ts → minimumStringLengthValidator.tests.ts} +1 -1
  132. package/validation/validators/specs/{regexp_validator.tests.ts → regexpValidator.tests.ts} +1 -1
  133. package/.out/transformers/copies/mobx_copy.d.ts +0 -5
  134. package/.out/transformers/flatteners/flatten_types_of_type.d.ts +0 -3
  135. /package/.out/transformers/copies/specs/{copy_to.tests.d.ts → copyTo.tests.d.ts} +0 -0
  136. /package/.out/transformers/copies/specs/{mobx_copy.tests.d.ts → mobxCopy.tests.d.ts} +0 -0
  137. /package/.out/transformers/flatteners/{json_path.d.ts → jsonPath.d.ts} +0 -0
  138. /package/.out/transformers/flatteners/{json_path.js → jsonPath.js} +0 -0
  139. /package/.out/transformers/flatteners/specs/{flatten_accessors_of_type.tests.d.ts → flattenAccessorsOfType.tests.d.ts} +0 -0
  140. /package/.out/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.d.ts → flattenJsonValueToTypePathsOf.tests.d.ts} +0 -0
  141. /package/.out/transformers/flatteners/specs/{flatten_type_to.tests.d.ts → flattenTypeTo.tests.d.ts} +0 -0
  142. /package/.out/transformers/flatteners/specs/{flatten_types_of_type.tests.d.ts → flattenTypesOfType.tests.d.ts} +0 -0
  143. /package/.out/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.d.ts → flattenValidationErrorsOfType.tests.d.ts} +0 -0
  144. /package/.out/transformers/flatteners/specs/{flatten_value_to.tests.d.ts → flattenValueTo.tests.d.ts} +0 -0
  145. /package/.out/transformers/flatteners/specs/{flatten_values_of_type.tests.d.ts → flattenValuesOfType.tests.d.ts} +0 -0
  146. /package/.out/transformers/flatteners/specs/{json_paths.tests.d.ts → jsonPaths.tests.d.ts} +0 -0
  147. /package/.out/transformers/flatteners/specs/{value_path_to_type_path.tests.d.ts → valuePathToTypePath.tests.d.ts} +0 -0
  148. /package/.out/types/{flattened_accessors_of_type.js → FlattenedAccessorsOfType.js} +0 -0
  149. /package/.out/types/{flattened_types_of_type.js → FlattenedTypesOfType.js} +0 -0
  150. /package/.out/types/{flattened_types_of_validating_type.js → FlattenedTypesOfValidatingType.js} +0 -0
  151. /package/.out/types/{flattened_validators_of_validating_type.js → FlattenedValidatorsOfValidatingType.js} +0 -0
  152. /package/.out/types/{flattened_values_of_type.js → FlattenedValuesOfType.js} +0 -0
  153. /package/.out/types/{mobx_value_of_type.js → MobxValueOfType.js} +0 -0
  154. /package/.out/types/{partial_type_of_type.js → PartialTypeOfType.js} +0 -0
  155. /package/.out/types/{path_of.d.ts → PathOf.d.ts} +0 -0
  156. /package/.out/types/{path_of.js → PathOf.js} +0 -0
  157. /package/.out/types/{paths_of_type.js → PathsOfType.js} +0 -0
  158. /package/.out/types/{readonly_type_of_type.js → ReadonlyTypeOfType.js} +0 -0
  159. /package/.out/types/{specs/flattened_accessors_of_type.tests.d.ts → StrictType.js} +0 -0
  160. /package/.out/types/{definitions.d.ts → Type.d.ts} +0 -0
  161. /package/.out/types/{definitions.js → Type.js} +0 -0
  162. /package/.out/types/{specs/flattened_types_of_type.tests.d.ts → ValidatingType.js} +0 -0
  163. /package/.out/types/{specs/flattened_validators_of_validating_type.tests.d.ts → ValidatingTypeDefWithError.js} +0 -0
  164. /package/.out/types/{specs/flattened_values_of_type.tests.d.ts → ValueOfType.js} +0 -0
  165. /package/.out/types/{specs/partial_type_of_type.tests.d.ts → ValueToTypePathsOfType.js} +0 -0
  166. /package/.out/types/{specs/paths_of_type.tests.d.ts → ValueTypesOfDiscriminatedUnion.js} +0 -0
  167. /package/.out/types/specs/{readonly_type_of_type.tests.d.ts → FlattenedAccessorsOfType.tests.d.ts} +0 -0
  168. /package/.out/types/specs/{flattened_accessors_of_type.tests.js → FlattenedAccessorsOfType.tests.js} +0 -0
  169. /package/.out/types/specs/{strict_definitions.tests.d.ts → FlattenedTypesOfType.tests.d.ts} +0 -0
  170. /package/.out/types/specs/{flattened_types_of_type.tests.js → FlattenedTypesOfType.tests.js} +0 -0
  171. /package/.out/types/specs/{type_of_type.tests.d.ts → FlattenedValidatorsOfValidatingType.tests.d.ts} +0 -0
  172. /package/.out/types/specs/{flattened_validators_of_validating_type.tests.js → FlattenedValidatorsOfValidatingType.tests.js} +0 -0
  173. /package/.out/types/specs/{value_of_type.tests.d.ts → FlattenedValuesOfType.tests.d.ts} +0 -0
  174. /package/.out/types/specs/{flattened_values_of_type.tests.js → FlattenedValuesOfType.tests.js} +0 -0
  175. /package/.out/types/specs/{value_to_type_paths_of_type.tests.d.ts → PartialTypeOfType.tests.d.ts} +0 -0
  176. /package/.out/types/specs/{partial_type_of_type.tests.js → PartialTypeOfType.tests.js} +0 -0
  177. /package/.out/types/specs/{value_types_of_discriminated_union.tests.d.ts → PathsOfType.tests.d.ts} +0 -0
  178. /package/.out/types/specs/{paths_of_type.tests.js → PathsOfType.tests.js} +0 -0
  179. /package/.out/types/{strict_definitions.js → specs/ReadonlyTypeOfType.tests.d.ts} +0 -0
  180. /package/.out/types/specs/{readonly_type_of_type.tests.js → ReadonlyTypeOfType.tests.js} +0 -0
  181. /package/.out/types/{validating_definitions.js → specs/StrictType.tests.d.ts} +0 -0
  182. /package/.out/types/specs/{strict_definitions.tests.js → StrictType.tests.js} +0 -0
  183. /package/.out/types/{validating_type_def_with_error.js → specs/TypeOfType.tests.d.ts} +0 -0
  184. /package/.out/types/specs/{type_of_type.tests.js → TypeOfType.tests.js} +0 -0
  185. /package/.out/types/{value_of_type.js → specs/ValueOfType.tests.d.ts} +0 -0
  186. /package/.out/types/specs/{value_of_type.tests.js → ValueOfType.tests.js} +0 -0
  187. /package/.out/types/{value_to_type_paths_of_type.js → specs/ValueToTypePathsOfType.tests.d.ts} +0 -0
  188. /package/.out/types/specs/{value_to_type_paths_of_type.tests.js → ValueToTypePathsOfType.tests.js} +0 -0
  189. /package/.out/types/{value_types_of_discriminated_union.js → specs/ValueTypesOfDiscriminatedUnion.tests.d.ts} +0 -0
  190. /package/.out/types/specs/{value_types_of_discriminated_union.tests.js → ValueTypesOfDiscriminatedUnion.tests.js} +0 -0
  191. /package/.out/validation/{errors_of_validators.d.ts → ErrorsOfValidators.d.ts} +0 -0
  192. /package/.out/validation/{errors_of_validators.js → ErrorsOfValidators.js} +0 -0
  193. /package/.out/validation/{validators_of_values.d.ts → ValidatorsOfValues.d.ts} +0 -0
  194. /package/.out/validation/{specs/errors_of_validators.tests.d.ts → ValidatorsOfValues.js} +0 -0
  195. /package/.out/validation/specs/{validators_of_values.tests.d.ts → errorsOfValidators.tests.d.ts} +0 -0
  196. /package/.out/validation/specs/{errors_of_validators.tests.js → errorsOfValidators.tests.js} +0 -0
  197. /package/.out/validation/{validators/specs/minimum_string_length_validator.tests.d.ts → specs/validatorsOfValues.tests.d.ts} +0 -0
  198. /package/.out/validation/specs/{validators_of_values.tests.js → validatorsOfValues.tests.js} +0 -0
  199. /package/.out/validation/validators/{composite_validator.d.ts → CompositeValidator.d.ts} +0 -0
  200. /package/.out/validation/validators/{composite_validator.js → CompositeValidator.js} +0 -0
  201. /package/.out/validation/validators/{defined_validator.d.ts → DefinedValidator.d.ts} +0 -0
  202. /package/.out/validation/validators/{defined_validator.js → DefinedValidator.js} +0 -0
  203. /package/.out/validation/validators/{maximum_string_length_validator.d.ts → MaximumStringLengthValidator.d.ts} +0 -0
  204. /package/.out/validation/validators/{maximum_string_length_validator.js → MaximumStringLengthValidator.js} +0 -0
  205. /package/.out/validation/validators/{minimum_string_length_validator.d.ts → MinimumStringLengthValidator.d.ts} +0 -0
  206. /package/.out/validation/validators/{minimum_string_length_validator.js → MinimumStringLengthValidator.js} +0 -0
  207. /package/.out/validation/validators/{optional_validator_proxy.d.ts → OptionalValidatorProxy.d.ts} +0 -0
  208. /package/.out/validation/validators/{optional_validator_proxy.js → OptionalValidatorProxy.js} +0 -0
  209. /package/.out/validation/validators/{regexp_validator.d.ts → RegexpValidator.d.ts} +0 -0
  210. /package/.out/validation/validators/{regexp_validator.js → RegexpValidator.js} +0 -0
  211. /package/.out/validation/validators/specs/{regexp_validator.tests.d.ts → minimumStringLengthValidator.tests.d.ts} +0 -0
  212. /package/.out/validation/{validators_of_values.js → validators/specs/regexpValidator.tests.d.ts} +0 -0
  213. /package/transformers/flatteners/{json_path.ts → jsonPath.ts} +0 -0
  214. /package/types/{path_of.ts → PathOf.ts} +0 -0
  215. /package/types/{definitions.ts → Type.ts} +0 -0
  216. /package/validation/{errors_of_validators.ts → ErrorsOfValidators.ts} +0 -0
  217. /package/validation/{validators_of_values.ts → ValidatorsOfValues.ts} +0 -0
  218. /package/validation/validators/{composite_validator.ts → CompositeValidator.ts} +0 -0
  219. /package/validation/validators/{defined_validator.ts → DefinedValidator.ts} +0 -0
  220. /package/validation/validators/{maximum_string_length_validator.ts → MaximumStringLengthValidator.ts} +0 -0
  221. /package/validation/validators/{minimum_string_length_validator.ts → MinimumStringLengthValidator.ts} +0 -0
  222. /package/validation/validators/{optional_validator_proxy.ts → OptionalValidatorProxy.ts} +0 -0
  223. /package/validation/validators/{regexp_validator.ts → RegexpValidator.ts} +0 -0
package/.out/index.d.ts CHANGED
@@ -1,30 +1,30 @@
1
1
  export * from './transformers/copies/copy';
2
- export * from './transformers/copies/mobx_copy';
2
+ export * from './transformers/copies/mobxCopy';
3
3
  export * from './transformers/equals';
4
- export * from './transformers/flatteners/flatten_accessors_of_type';
5
- export * from './transformers/flatteners/flatten_json_value_to_type_paths_of';
6
- export * from './transformers/flatteners/flatten_types_of_type';
7
- export * from './transformers/flatteners/flatten_validators_of_validating_type';
8
- export * from './transformers/flatteners/flatten_value_to';
9
- export * from './transformers/flatteners/flatten_values_of_type';
10
- export * from './transformers/flatteners/json_path';
11
- export * from './transformers/flatteners/value_path_to_type_path';
4
+ export * from './transformers/flatteners/flattenAccessorsOfType';
5
+ export * from './transformers/flatteners/flattenJsonValueToTypePathsOf';
6
+ export * from './transformers/flatteners/flattenTypesOfType';
7
+ export * from './transformers/flatteners/flattenValidatorsOfValidatingType';
8
+ export * from './transformers/flatteners/flattenValuesOfType';
9
+ export * from './transformers/flatteners/flattenValueTo';
10
+ export * from './transformers/flatteners/jsonPath';
11
+ export * from './transformers/flatteners/valuePathToTypePath';
12
12
  export * from './types/builders';
13
- export * from './types/definitions';
14
- export * from './types/flattened_accessors_of_type';
15
- export * from './types/flattened_types_of_type';
16
- export * from './types/flattened_values_of_type';
17
- export * from './types/mobx_value_of_type';
18
- export * from './types/paths_of_type';
19
- export * from './types/readonly_type_of_type';
20
- export * from './types/strict_definitions';
21
- export * from './types/value_of_type';
22
- export * from './types/value_to_type_paths_of_type';
23
- export * from './types/value_types_of_discriminated_union';
13
+ export * from './types/FlattenedAccessorsOfType';
14
+ export * from './types/FlattenedTypesOfType';
15
+ export * from './types/FlattenedValuesOfType';
16
+ export * from './types/MobxValueOfType';
17
+ export * from './types/PathsOfType';
18
+ export * from './types/ReadonlyTypeOfType';
19
+ export * from './types/StrictType';
20
+ export * from './types/Type';
21
+ export * from './types/ValueOfType';
22
+ export * from './types/ValueToTypePathsOfType';
23
+ export * from './types/ValueTypesOfDiscriminatedUnion';
24
24
  export * from './validation/validator';
25
- export * from './validation/validators/defined_validator';
26
- export * from './validation/validators/maximum_string_length_validator';
27
- export * from './validation/validators/minimum_string_length_validator';
28
- export * from './validation/validators/optional_validator_proxy';
29
- export * from './validation/validators/regexp_validator';
30
- export * from './validation/validators_of_values';
25
+ export * from './validation/validators/DefinedValidator';
26
+ export * from './validation/validators/MaximumStringLengthValidator';
27
+ export * from './validation/validators/MinimumStringLengthValidator';
28
+ export * from './validation/validators/OptionalValidatorProxy';
29
+ export * from './validation/validators/RegexpValidator';
30
+ export * from './validation/ValidatorsOfValues';
package/.out/index.js CHANGED
@@ -1,30 +1,30 @@
1
1
  export * from './transformers/copies/copy';
2
- export * from './transformers/copies/mobx_copy';
2
+ export * from './transformers/copies/mobxCopy';
3
3
  export * from './transformers/equals';
4
- export * from './transformers/flatteners/flatten_accessors_of_type';
5
- export * from './transformers/flatteners/flatten_json_value_to_type_paths_of';
6
- export * from './transformers/flatteners/flatten_types_of_type';
7
- export * from './transformers/flatteners/flatten_validators_of_validating_type';
8
- export * from './transformers/flatteners/flatten_value_to';
9
- export * from './transformers/flatteners/flatten_values_of_type';
10
- export * from './transformers/flatteners/json_path';
11
- export * from './transformers/flatteners/value_path_to_type_path';
4
+ export * from './transformers/flatteners/flattenAccessorsOfType';
5
+ export * from './transformers/flatteners/flattenJsonValueToTypePathsOf';
6
+ export * from './transformers/flatteners/flattenTypesOfType';
7
+ export * from './transformers/flatteners/flattenValidatorsOfValidatingType';
8
+ export * from './transformers/flatteners/flattenValuesOfType';
9
+ export * from './transformers/flatteners/flattenValueTo';
10
+ export * from './transformers/flatteners/jsonPath';
11
+ export * from './transformers/flatteners/valuePathToTypePath';
12
12
  export * from './types/builders';
13
- export * from './types/definitions';
14
- export * from './types/flattened_accessors_of_type';
15
- export * from './types/flattened_types_of_type';
16
- export * from './types/flattened_values_of_type';
17
- export * from './types/mobx_value_of_type';
18
- export * from './types/paths_of_type';
19
- export * from './types/readonly_type_of_type';
20
- export * from './types/strict_definitions';
21
- export * from './types/value_of_type';
22
- export * from './types/value_to_type_paths_of_type';
23
- export * from './types/value_types_of_discriminated_union';
13
+ export * from './types/FlattenedAccessorsOfType';
14
+ export * from './types/FlattenedTypesOfType';
15
+ export * from './types/FlattenedValuesOfType';
16
+ export * from './types/MobxValueOfType';
17
+ export * from './types/PathsOfType';
18
+ export * from './types/ReadonlyTypeOfType';
19
+ export * from './types/StrictType';
20
+ export * from './types/Type';
21
+ export * from './types/ValueOfType';
22
+ export * from './types/ValueToTypePathsOfType';
23
+ export * from './types/ValueTypesOfDiscriminatedUnion';
24
24
  export * from './validation/validator';
25
- export * from './validation/validators/defined_validator';
26
- export * from './validation/validators/maximum_string_length_validator';
27
- export * from './validation/validators/minimum_string_length_validator';
28
- export * from './validation/validators/optional_validator_proxy';
29
- export * from './validation/validators/regexp_validator';
30
- export * from './validation/validators_of_values';
25
+ export * from './validation/validators/DefinedValidator';
26
+ export * from './validation/validators/MaximumStringLengthValidator';
27
+ export * from './validation/validators/MinimumStringLengthValidator';
28
+ export * from './validation/validators/OptionalValidatorProxy';
29
+ export * from './validation/validators/RegexpValidator';
30
+ export * from './validation/ValidatorsOfValues';
@@ -1,4 +1,4 @@
1
- import { type ReadonlyTypeOfType } from 'types/readonly_type_of_type';
2
- import { type StrictType } from 'types/strict_definitions';
3
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type ReadonlyTypeOfType } from 'types/ReadonlyTypeOfType';
2
+ import { type StrictType } from 'types/StrictType';
3
+ import { type ValueOfType } from 'types/ValueOfType';
4
4
  export declare function copy<T extends StrictType>(t: T, proto: ValueOfType<ReadonlyTypeOfType<T>>): ValueOfType<T>;
@@ -1,4 +1,4 @@
1
- import { copyTo, } from './copy_to';
1
+ import { copyTo, } from './copyTo';
2
2
  function identity(v) {
3
3
  return v;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { type ReadonlyTypeOfType } from 'types/readonly_type_of_type';
2
- import { type StrictType, type StrictTypeDef } from 'types/strict_definitions';
3
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type ReadonlyTypeOfType } from 'types/ReadonlyTypeOfType';
2
+ import { type StrictType, type StrictTypeDef } from 'types/StrictType';
3
+ import { type ValueOfType } from 'types/ValueOfType';
4
4
  export type AnyValueType = any;
5
5
  export type Copier<R> = (v: AnyValueType, t: StrictTypeDef) => R;
6
6
  export declare function copyTo<T extends StrictType, R extends ValueOfType<ReadonlyTypeOfType<T>>>({ definition }: T, value: ValueOfType<ReadonlyTypeOfType<T>>, copier: Copier<R>): R;
@@ -1,5 +1,5 @@
1
1
  import { map, reduce, UnexpectedImplementationError, UnreachableError, } from '@strictly/base';
2
- import { TypeDefType, } from 'types/definitions';
2
+ import { TypeDefType, } from 'types/Type';
3
3
  export function copyTo({ definition }, value, copier) {
4
4
  return internalCopyTo(definition, value, copier);
5
5
  }
@@ -0,0 +1,5 @@
1
+ import { type MobxValueOfType } from 'types/MobxValueOfType';
2
+ import { type ReadonlyTypeOfType } from 'types/ReadonlyTypeOfType';
3
+ import { type StrictType } from 'types/StrictType';
4
+ import { type ValueOfType } from 'types/ValueOfType';
5
+ export declare function mobxCopy<T extends StrictType>(t: T, proto: ValueOfType<ReadonlyTypeOfType<T>>): MobxValueOfType<T>;
@@ -1,8 +1,8 @@
1
1
  import { reduce, UnreachableError, } from '@strictly/base';
2
2
  import { makeObservable, observable, } from 'mobx';
3
- import { getUnionTypeDef } from 'transformers/flatteners/flatten_value_to';
4
- import { TypeDefType, } from 'types/definitions';
5
- import { copyTo, } from './copy_to';
3
+ import { getUnionTypeDef } from 'transformers/flatteners/flattenValueTo';
4
+ import { TypeDefType, } from 'types/Type';
5
+ import { copyTo, } from './copyTo';
6
6
  function observeValue(v, def) {
7
7
  if (v == null) {
8
8
  return v;
@@ -1,6 +1,6 @@
1
- import { copyTo, } from 'transformers/copies/copy_to';
1
+ import { copyTo, } from 'transformers/copies/copyTo';
2
2
  import { booleanType, list, literal, numberType, object, record, stringType, union, } from 'types/builders';
3
- import { TypeDefType } from 'types/definitions';
3
+ import { TypeDefType } from 'types/Type';
4
4
  describe('copyTo', function () {
5
5
  function toString(v, t) {
6
6
  if (t.type === TypeDefType.Literal) {
@@ -1,4 +1,4 @@
1
- import { mobxCopy } from 'transformers/copies/mobx_copy';
1
+ import { mobxCopy } from 'transformers/copies/mobxCopy';
2
2
  import { numberType, object, } from 'types/builders';
3
3
  describe('mobxCopy', function () {
4
4
  describe('object', function () {
@@ -1,3 +1,3 @@
1
- import { type Type } from 'types/definitions';
2
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type Type } from 'types/Type';
2
+ import { type ValueOfType } from 'types/ValueOfType';
3
3
  export declare function equals<T extends Type>({ definition }: T, o1: ValueOfType<T>, o2: ValueOfType<T>): boolean;
@@ -1,5 +1,5 @@
1
1
  import { UnreachableError, } from '@strictly/base';
2
- import { TypeDefType, } from 'types/definitions';
2
+ import { TypeDefType, } from 'types/Type';
3
3
  export function equals({ definition }, o1, o2) {
4
4
  return internalEquals(definition, o1, o2);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { type Type } from 'types/definitions';
2
- import { type Accessor, type FlattenedAccessorsOfType } from 'types/flattened_accessors_of_type';
3
- import { type ValueOfType } from 'types/value_of_type';
4
- import { type Setter } from './flatten_value_to';
1
+ import { type Accessor, type FlattenedAccessorsOfType } from 'types/FlattenedAccessorsOfType';
2
+ import { type Type } from 'types/Type';
3
+ import { type ValueOfType } from 'types/ValueOfType';
4
+ import { type Setter } from './flattenValueTo';
5
5
  export declare function flattenAccessorsOfType<T extends Type, R extends Readonly<Record<string, Accessor<any>>> = FlattenedAccessorsOfType<T>>(t: T, value: ValueOfType<T>, setValue: Setter<ValueOfType<T>>, listIndicesToKeys?: Record<string, number[]>): R;
@@ -1,4 +1,4 @@
1
- import { flattenValueTo, } from './flatten_value_to';
1
+ import { flattenValueTo, } from './flattenValueTo';
2
2
  function mapAccessor(_t, value, set) {
3
3
  return {
4
4
  value,
@@ -1,3 +1,3 @@
1
- import { type Type } from 'types/definitions';
2
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type Type } from 'types/Type';
2
+ import { type ValueOfType } from 'types/ValueOfType';
3
3
  export declare function flattenJsonValueToTypePathsOf<T extends Type, R extends Record<string, string | number | symbol>>(t: T, value: ValueOfType<T>, listIndicesToKeys?: Record<string, number[]>): R;
@@ -1,4 +1,4 @@
1
- import { flattenValueTo, } from './flatten_value_to';
1
+ import { flattenValueTo, } from './flattenValueTo';
2
2
  function mapTypePaths(_t, _value, _set, typePath) {
3
3
  return typePath;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type StrictType, type StrictTypeDef } from 'types/strict_definitions';
1
+ import { type StrictType, type StrictTypeDef } from 'types/StrictType';
2
2
  export type AnyValueType = any;
3
3
  export type Mapper<R> = (t: StrictTypeDef, key: string) => R;
4
4
  export declare function flattenTypeTo<M, R extends Readonly<Record<string, M>>>({ definition }: StrictType, mapper: Mapper<M>): R;
@@ -1,6 +1,6 @@
1
1
  import { reduce, UnreachableError, } from '@strictly/base';
2
- import { TypeDefType, } from 'types/definitions';
3
- import { jsonPath } from './json_path';
2
+ import { TypeDefType } from 'types/Type';
3
+ import { jsonPath } from './jsonPath';
4
4
  export function flattenTypeTo({ definition }, mapper) {
5
5
  const typeDefs = internalFlattenTypeDef('$', definition, {});
6
6
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
@@ -0,0 +1,3 @@
1
+ import { type StrictType } from 'types/StrictType';
2
+ import { type Type } from 'types/Type';
3
+ export declare function flattenTypesOfType<T extends StrictType>(t: T): Record<string, Type>;
@@ -1,4 +1,4 @@
1
- import { flattenTypeTo } from './flatten_type_to';
1
+ import { flattenTypeTo } from './flattenTypeTo';
2
2
  export function flattenTypesOfType(t) {
3
3
  // Type should be FlattenedTypeDefsOf<T>, but infinite depth error
4
4
  return flattenTypeTo(t, function (definition) {
@@ -1,9 +1,9 @@
1
1
  import { type ReadonlyDeep, type ValueOf } from 'type-fest';
2
- import { type Type } from 'types/definitions';
3
- import { type FlattenedTypesOfType } from 'types/flattened_types_of_type';
4
- import { type FlattenedValuesOfType } from 'types/flattened_values_of_type';
5
- import { type ReadonlyTypeOfType } from 'types/readonly_type_of_type';
6
- import { type ValueOfType } from 'types/value_of_type';
2
+ import { type FlattenedTypesOfType } from 'types/FlattenedTypesOfType';
3
+ import { type FlattenedValuesOfType } from 'types/FlattenedValuesOfType';
4
+ import { type ReadonlyTypeOfType } from 'types/ReadonlyTypeOfType';
5
+ import { type Type } from 'types/Type';
6
+ import { type ValueOfType } from 'types/ValueOfType';
7
7
  import { type Validator } from 'validation/validator';
8
8
  type ErrorOfValidator<V extends Validator> = V extends Validator<infer _V, infer E> ? E | null : never;
9
9
  export type ErrorsOfFlattenedValidators<TypePathsToValidators extends Readonly<Record<string, Validator>>> = {
@@ -1,4 +1,4 @@
1
- import { flattenValueTo, } from 'transformers/flatteners/flatten_value_to';
1
+ import { flattenValueTo, } from 'transformers/flatteners/flattenValueTo';
2
2
  import { validate, } from 'validation/validator';
3
3
  export function flattenValidationErrorsOfType(type, value, validators, listIndicesToKeys) {
4
4
  return flattenValueTo(type, value, () => { }, function (_t, v, _setter, typePath, valuePath) {
@@ -1,4 +1,4 @@
1
- import { type FlattenedTypesOfValidatingType } from 'types/flattened_types_of_validating_type';
2
- import { type FlattenedValidatorsOfValidatingType } from 'types/flattened_validators_of_validating_type';
3
- import { type ValidatingType } from 'types/validating_definitions';
1
+ import { type FlattenedTypesOfValidatingType } from 'types/FlattenedTypesOfValidatingType';
2
+ import { type FlattenedValidatorsOfValidatingType } from 'types/FlattenedValidatorsOfValidatingType';
3
+ import { type ValidatingType } from 'types/ValidatingType';
4
4
  export declare function flattenValidatorsOfValidatingType<T extends ValidatingType, TypePathsToValuePaths extends Readonly<Record<keyof FlattenedTypes, string>>, FlattenedTypes extends Readonly<Record<string, ValidatingType>> = FlattenedTypesOfValidatingType<T, '*'>>(type: T): FlattenedValidatorsOfValidatingType<T, TypePathsToValuePaths, FlattenedTypes>;
@@ -1,4 +1,4 @@
1
- import { flattenTypeTo } from './flatten_type_to';
1
+ import { flattenTypeTo } from './flattenTypeTo';
2
2
  export function flattenValidatorsOfValidatingType(type) {
3
3
  return flattenTypeTo(type, function (definition) {
4
4
  const { rule, readonly, required,
@@ -1,7 +1,7 @@
1
- import { type UnionTypeDef } from 'types/definitions';
2
- import { type ReadonlyTypeOfType } from 'types/readonly_type_of_type';
3
- import { type StrictType, type StrictTypeDef } from 'types/strict_definitions';
4
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type ReadonlyTypeOfType } from 'types/ReadonlyTypeOfType';
2
+ import { type StrictType, type StrictTypeDef } from 'types/StrictType';
3
+ import { type UnionTypeDef } from 'types/Type';
4
+ import { type ValueOfType } from 'types/ValueOfType';
5
5
  export type AnyValueType = any;
6
6
  export type Setter<V> = (v: V) => void;
7
7
  export type Mapper<R> = (t: StrictTypeDef, v: AnyValueType, setter: Setter<AnyValueType>, typePath: string, valuePath: string) => R;
@@ -1,6 +1,6 @@
1
1
  import { reduce, UnreachableError, } from '@strictly/base';
2
- import { TypeDefType, } from 'types/definitions';
3
- import { jsonPath } from './json_path';
2
+ import { TypeDefType, } from 'types/Type';
3
+ import { jsonPath } from './jsonPath';
4
4
  export function flattenValueTo({ definition }, v, setter, mapper,
5
5
  // used to maintain keys when changing lists, note that the format for a list of three elements is
6
6
  // [key1, key2, key3, nextKey]
@@ -1,3 +1,3 @@
1
- import { type Type } from 'types/definitions';
2
- import { type ValueOfType } from 'types/value_of_type';
1
+ import { type Type } from 'types/Type';
2
+ import { type ValueOfType } from 'types/ValueOfType';
3
3
  export declare function flattenValuesOfType<T extends Type>(typeDef: Type, value: ValueOfType<T>, listIndicesToKeys?: Record<string, number[]>): Record<string, any>;
@@ -1,4 +1,4 @@
1
- import { flattenValueTo, } from './flatten_value_to';
1
+ import { flattenValueTo, } from './flattenValueTo';
2
2
  function mapper(_t, v) {
3
3
  return v;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { expectDefinedAndReturn } from '@strictly/base';
2
- import { flattenAccessorsOfType } from 'transformers/flatteners/flatten_accessors_of_type';
2
+ import { flattenAccessorsOfType } from 'transformers/flatteners/flattenAccessorsOfType';
3
3
  import { booleanType, list, numberType, object, } from 'types/builders';
4
4
  import { vi, } from 'vitest';
5
5
  describe('flattenAccessorsOfType', function () {
@@ -1,4 +1,4 @@
1
- import { flattenJsonValueToTypePathsOf } from 'transformers/flatteners/flatten_json_value_to_type_paths_of';
1
+ import { flattenJsonValueToTypePathsOf } from 'transformers/flatteners/flattenJsonValueToTypePathsOf';
2
2
  import { booleanType, list, nullType, numberType, object, record, stringType, union, } from 'types/builders';
3
3
  describe('flattenJsonValueToTypePathsOf', function () {
4
4
  describe('literal', function () {
@@ -1,6 +1,6 @@
1
- import { flattenTypeTo } from 'transformers/flatteners/flatten_type_to';
1
+ import { flattenTypeTo } from 'transformers/flatteners/flattenTypeTo';
2
2
  import { booleanType, list, nullType, numberType, object, record, union, } from 'types/builders';
3
- import { TypeDefType, } from 'types/definitions';
3
+ import { TypeDefType, } from 'types/Type';
4
4
  import { vi, } from 'vitest';
5
5
  describe('flattenTypeDefTo', function () {
6
6
  let toTypeDefType;
@@ -1,4 +1,4 @@
1
- import { flattenTypesOfType } from 'transformers/flatteners/flatten_types_of_type';
1
+ import { flattenTypesOfType } from 'transformers/flatteners/flattenTypesOfType';
2
2
  import { booleanType, list, numberType, object, } from 'types/builders';
3
3
  describe('flattenTypeDefsOf', function () {
4
4
  it('flattens', function () {
@@ -1,4 +1,4 @@
1
- import { flattenValidationErrorsOfType } from 'transformers/flatteners/flatten_validation_errors_of_type';
1
+ import { flattenValidationErrorsOfType } from 'transformers/flatteners/flattenValidationErrorsOfType';
2
2
  import { literal } from 'types/builders';
3
3
  describe('flattenValidationsOfType', function () {
4
4
  describe('literal', function () {
@@ -1,4 +1,4 @@
1
- import { flattenValueTo, } from 'transformers/flatteners/flatten_value_to';
1
+ import { flattenValueTo, } from 'transformers/flatteners/flattenValueTo';
2
2
  import { booleanType, list, literal, nullType, numberType, object, record, union, } from 'types/builders';
3
3
  import { vi, } from 'vitest';
4
4
  describe('flattenValueTo', function () {
@@ -1,4 +1,4 @@
1
- import { flattenValuesOfType } from 'transformers/flatteners/flatten_values_of_type';
1
+ import { flattenValuesOfType } from 'transformers/flatteners/flattenValuesOfType';
2
2
  import { booleanType, list, numberType, object, } from 'types/builders';
3
3
  describe('flattenValueTypesOf', function () {
4
4
  // note that we already have tests for the type and the function that this calls, so
@@ -1,4 +1,4 @@
1
- import { jsonPath, jsonPathPrefix, jsonPathUnprefix, } from 'transformers/flatteners/json_path';
1
+ import { jsonPath, jsonPathPrefix, jsonPathUnprefix, } from 'transformers/flatteners/jsonPath';
2
2
  describe('json_paths', () => {
3
3
  describe('jsonPath', () => {
4
4
  describe('simple', () => {
@@ -1,4 +1,4 @@
1
- import { valuePathToTypePath } from 'transformers/flatteners/value_path_to_type_path';
1
+ import { valuePathToTypePath } from 'transformers/flatteners/valuePathToTypePath';
2
2
  import { booleanType, list, numberType, object, record, stringType, union, } from 'types/builders';
3
3
  describe('valuePathToTypePath', function () {
4
4
  describe('literal', function () {
@@ -1,2 +1,2 @@
1
- import { type Type } from 'types/definitions';
1
+ import { type Type } from 'types/Type';
2
2
  export declare function valuePathToTypePath<ValuePathsToTypePaths extends Record<string, string>, ValuePath extends keyof ValuePathsToTypePaths>({ definition: typeDef }: Type, valuePath: ValuePath, allowMissingPaths?: boolean): ValuePathsToTypePaths[ValuePath];
@@ -1,5 +1,5 @@
1
1
  import { assertEqual, assertExists, assertExistsAndReturn, PreconditionFailedError, reduce, UnreachableError, } from '@strictly/base';
2
- import { TypeDefType, } from 'types/definitions';
2
+ import { TypeDefType, } from 'types/Type';
3
3
  export function valuePathToTypePath({ definition: typeDef }, valuePath, allowMissingPaths = false) {
4
4
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
5
5
  const valueSteps = valuePath.split(/\.|\[/g);