@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.
- package/.out/index.d.ts +26 -26
- package/.out/index.js +26 -26
- package/.out/transformers/copies/copy.d.ts +3 -3
- package/.out/transformers/copies/copy.js +1 -1
- package/.out/transformers/copies/{copy_to.d.ts → copyTo.d.ts} +3 -3
- package/.out/transformers/copies/{copy_to.js → copyTo.js} +1 -1
- package/.out/transformers/copies/mobxCopy.d.ts +5 -0
- package/.out/transformers/copies/{mobx_copy.js → mobxCopy.js} +3 -3
- package/.out/transformers/copies/specs/{copy_to.tests.js → copyTo.tests.js} +2 -2
- package/.out/transformers/copies/specs/{mobx_copy.tests.js → mobxCopy.tests.js} +1 -1
- package/.out/transformers/equals.d.ts +2 -2
- package/.out/transformers/equals.js +1 -1
- package/.out/transformers/flatteners/{flatten_accessors_of_type.d.ts → flattenAccessorsOfType.d.ts} +4 -4
- package/.out/transformers/flatteners/{flatten_accessors_of_type.js → flattenAccessorsOfType.js} +1 -1
- package/.out/transformers/flatteners/{flatten_json_value_to_type_paths_of.d.ts → flattenJsonValueToTypePathsOf.d.ts} +2 -2
- package/.out/transformers/flatteners/{flatten_json_value_to_type_paths_of.js → flattenJsonValueToTypePathsOf.js} +1 -1
- package/.out/transformers/flatteners/{flatten_type_to.d.ts → flattenTypeTo.d.ts} +1 -1
- package/.out/transformers/flatteners/{flatten_type_to.js → flattenTypeTo.js} +2 -2
- package/.out/transformers/flatteners/flattenTypesOfType.d.ts +3 -0
- package/.out/transformers/flatteners/{flatten_types_of_type.js → flattenTypesOfType.js} +1 -1
- package/.out/transformers/flatteners/{flatten_validation_errors_of_type.d.ts → flattenValidationErrorsOfType.d.ts} +5 -5
- package/.out/transformers/flatteners/{flatten_validation_errors_of_type.js → flattenValidationErrorsOfType.js} +1 -1
- package/.out/transformers/flatteners/{flatten_validators_of_validating_type.d.ts → flattenValidatorsOfValidatingType.d.ts} +3 -3
- package/.out/transformers/flatteners/{flatten_validators_of_validating_type.js → flattenValidatorsOfValidatingType.js} +1 -1
- package/.out/transformers/flatteners/{flatten_value_to.d.ts → flattenValueTo.d.ts} +4 -4
- package/.out/transformers/flatteners/{flatten_value_to.js → flattenValueTo.js} +2 -2
- package/.out/transformers/flatteners/{flatten_values_of_type.d.ts → flattenValuesOfType.d.ts} +2 -2
- package/.out/transformers/flatteners/{flatten_values_of_type.js → flattenValuesOfType.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_accessors_of_type.tests.js → flattenAccessorsOfType.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.js → flattenJsonValueToTypePathsOf.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_type_to.tests.js → flattenTypeTo.tests.js} +2 -2
- package/.out/transformers/flatteners/specs/{flatten_types_of_type.tests.js → flattenTypesOfType.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.js → flattenValidationErrorsOfType.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_value_to.tests.js → flattenValueTo.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{flatten_values_of_type.tests.js → flattenValuesOfType.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{json_paths.tests.js → jsonPaths.tests.js} +1 -1
- package/.out/transformers/flatteners/specs/{value_path_to_type_path.tests.js → valuePathToTypePath.tests.js} +1 -1
- package/.out/transformers/flatteners/{value_path_to_type_path.d.ts → valuePathToTypePath.d.ts} +1 -1
- package/.out/transformers/flatteners/{value_path_to_type_path.js → valuePathToTypePath.js} +1 -1
- package/.out/tsconfig.tsbuildinfo +1 -1
- package/.out/types/{flattened_accessors_of_type.d.ts → FlattenedAccessorsOfType.d.ts} +2 -2
- package/.out/types/{flattened_types_of_type.d.ts → FlattenedTypesOfType.d.ts} +2 -2
- package/.out/types/{flattened_types_of_validating_type.d.ts → FlattenedTypesOfValidatingType.d.ts} +3 -3
- package/.out/types/{flattened_validators_of_validating_type.d.ts → FlattenedValidatorsOfValidatingType.d.ts} +4 -4
- package/.out/types/{flattened_values_of_type.d.ts → FlattenedValuesOfType.d.ts} +3 -3
- package/.out/types/{mobx_value_of_type.d.ts → MobxValueOfType.d.ts} +2 -2
- package/.out/types/{partial_type_of_type.d.ts → PartialTypeOfType.d.ts} +1 -1
- package/.out/types/{paths_of_type.d.ts → PathsOfType.d.ts} +2 -2
- package/.out/types/{readonly_type_of_type.d.ts → ReadonlyTypeOfType.d.ts} +1 -1
- package/.out/types/{strict_definitions.d.ts → StrictType.d.ts} +1 -1
- package/.out/types/{validating_definitions.d.ts → ValidatingType.d.ts} +1 -1
- package/.out/types/{validating_type_def_with_error.d.ts → ValidatingTypeDefWithError.d.ts} +2 -2
- package/.out/types/{value_of_type.d.ts → ValueOfType.d.ts} +1 -1
- package/.out/types/{value_to_type_paths_of_type.d.ts → ValueToTypePathsOfType.d.ts} +3 -3
- package/.out/types/{value_types_of_discriminated_union.d.ts → ValueTypesOfDiscriminatedUnion.d.ts} +3 -3
- package/.out/types/builders.d.ts +5 -5
- package/.out/types/builders.js +2 -2
- package/.out/types/flattened.d.ts +1 -1
- package/.out/types/specs/builder.tests.js +1 -1
- package/.out/types/{type_of_type.d.ts → typeOfType.d.ts} +1 -1
- package/.out/types/{type_of_type.js → typeOfType.js} +1 -1
- package/.out/validation/validator.js +1 -1
- package/.out/validation/validators/specs/{minimum_string_length_validator.tests.js → minimumStringLengthValidator.tests.js} +1 -1
- package/.out/validation/validators/specs/{regexp_validator.tests.js → regexpValidator.tests.js} +1 -1
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-release$colon$exports.log +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -22
- package/index.ts +26 -26
- package/package.json +1 -1
- package/transformers/copies/copy.ts +4 -4
- package/transformers/copies/{copy_to.ts → copyTo.ts} +9 -9
- package/transformers/copies/{mobx_copy.ts → mobxCopy.ts} +10 -10
- package/transformers/copies/specs/{copy_to.tests.ts → copyTo.tests.ts} +3 -3
- package/transformers/copies/specs/{mobx_copy.tests.ts → mobxCopy.tests.ts} +2 -2
- package/transformers/equals.ts +2 -2
- package/transformers/flatteners/{flatten_accessors_of_type.ts → flattenAccessorsOfType.ts} +7 -7
- package/transformers/flatteners/{flatten_json_value_to_type_paths_of.ts → flattenJsonValueToTypePathsOf.ts} +3 -3
- package/transformers/flatteners/{flatten_type_to.ts → flattenTypeTo.ts} +3 -5
- package/transformers/flatteners/{flatten_types_of_type.ts → flattenTypesOfType.ts} +3 -3
- package/transformers/flatteners/{flatten_validation_errors_of_type.ts → flattenValidationErrorsOfType.ts} +8 -8
- package/transformers/flatteners/{flatten_validators_of_validating_type.ts → flattenValidatorsOfValidatingType.ts} +4 -4
- package/transformers/flatteners/{flatten_value_to.ts → flattenValueTo.ts} +9 -9
- package/transformers/flatteners/{flatten_values_of_type.ts → flattenValuesOfType.ts} +4 -4
- package/transformers/flatteners/specs/{flatten_accessors_of_type.tests.ts → flattenAccessorsOfType.tests.ts} +3 -3
- package/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.ts → flattenJsonValueToTypePathsOf.tests.ts} +1 -1
- package/transformers/flatteners/specs/{flatten_type_to.tests.ts → flattenTypeTo.tests.ts} +2 -2
- package/transformers/flatteners/specs/{flatten_types_of_type.tests.ts → flattenTypesOfType.tests.ts} +1 -1
- package/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.ts → flattenValidationErrorsOfType.tests.ts} +2 -2
- package/transformers/flatteners/specs/{flatten_value_to.tests.ts → flattenValueTo.tests.ts} +4 -4
- package/transformers/flatteners/specs/{flatten_values_of_type.tests.ts → flattenValuesOfType.tests.ts} +1 -1
- package/transformers/flatteners/specs/{json_paths.tests.ts → jsonPaths.tests.ts} +1 -1
- package/transformers/flatteners/specs/{value_path_to_type_path.tests.ts → valuePathToTypePath.tests.ts} +2 -2
- package/transformers/flatteners/{value_path_to_type_path.ts → valuePathToTypePath.ts} +1 -1
- package/types/{flattened_accessors_of_type.ts → FlattenedAccessorsOfType.ts} +2 -2
- package/types/{flattened_types_of_type.ts → FlattenedTypesOfType.ts} +6 -6
- package/types/{flattened_types_of_validating_type.ts → FlattenedTypesOfValidatingType.ts} +6 -6
- package/types/{flattened_validators_of_validating_type.ts → FlattenedValidatorsOfValidatingType.ts} +4 -4
- package/types/{flattened_values_of_type.ts → FlattenedValuesOfType.ts} +3 -3
- package/types/{mobx_value_of_type.ts → MobxValueOfType.ts} +2 -2
- package/types/{partial_type_of_type.ts → PartialTypeOfType.ts} +1 -1
- package/types/{paths_of_type.ts → PathsOfType.ts} +6 -6
- package/types/{readonly_type_of_type.ts → ReadonlyTypeOfType.ts} +1 -1
- package/types/{strict_definitions.ts → StrictType.ts} +1 -1
- package/types/{validating_definitions.ts → ValidatingType.ts} +1 -1
- package/types/{validating_type_def_with_error.ts → ValidatingTypeDefWithError.ts} +2 -2
- package/types/{value_of_type.ts → ValueOfType.ts} +1 -1
- package/types/{value_to_type_paths_of_type.ts → ValueToTypePathsOfType.ts} +7 -7
- package/types/{value_types_of_discriminated_union.ts → ValueTypesOfDiscriminatedUnion.ts} +3 -3
- package/types/builders.ts +5 -5
- package/types/flattened.ts +1 -1
- package/types/specs/{flattened_accessors_of_type.tests.ts → FlattenedAccessorsOfType.tests.ts} +1 -1
- package/types/specs/{flattened_types_of_type.tests.ts → FlattenedTypesOfType.tests.ts} +2 -2
- package/types/specs/{flattened_validators_of_validating_type.tests.ts → FlattenedValidatorsOfValidatingType.tests.ts} +2 -2
- package/types/specs/{flattened_values_of_type.tests.ts → FlattenedValuesOfType.tests.ts} +1 -1
- package/types/specs/{partial_type_of_type.tests.ts → PartialTypeOfType.tests.ts} +2 -2
- package/types/specs/{paths_of_type.tests.ts → PathsOfType.tests.ts} +1 -1
- package/types/specs/{readonly_type_of_type.tests.ts → ReadonlyTypeOfType.tests.ts} +2 -2
- package/types/specs/{strict_definitions.tests.ts → StrictType.tests.ts} +5 -5
- package/types/specs/{type_of_type.tests.ts → TypeOfType.tests.ts} +2 -2
- package/types/specs/{value_of_type.tests.ts → ValueOfType.tests.ts} +2 -2
- package/types/specs/{value_to_type_paths_of_type.tests.ts → ValueToTypePathsOfType.tests.ts} +2 -2
- package/types/specs/{value_types_of_discriminated_union.tests.ts → ValueTypesOfDiscriminatedUnion.tests.ts} +1 -1
- package/types/specs/builder.tests.ts +2 -2
- package/types/{type_of_type.ts → typeOfType.ts} +1 -1
- package/validation/specs/{errors_of_validators.tests.ts → errorsOfValidators.tests.ts} +1 -1
- package/validation/specs/{validators_of_values.tests.ts → validatorsOfValues.tests.ts} +1 -1
- package/validation/validator.ts +1 -1
- package/validation/validators/specs/{minimum_string_length_validator.tests.ts → minimumStringLengthValidator.tests.ts} +1 -1
- package/validation/validators/specs/{regexp_validator.tests.ts → regexpValidator.tests.ts} +1 -1
- package/.out/transformers/copies/mobx_copy.d.ts +0 -5
- package/.out/transformers/flatteners/flatten_types_of_type.d.ts +0 -3
- /package/.out/transformers/copies/specs/{copy_to.tests.d.ts → copyTo.tests.d.ts} +0 -0
- /package/.out/transformers/copies/specs/{mobx_copy.tests.d.ts → mobxCopy.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/{json_path.d.ts → jsonPath.d.ts} +0 -0
- /package/.out/transformers/flatteners/{json_path.js → jsonPath.js} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_accessors_of_type.tests.d.ts → flattenAccessorsOfType.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_json_value_to_type_paths_of.tests.d.ts → flattenJsonValueToTypePathsOf.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_type_to.tests.d.ts → flattenTypeTo.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_types_of_type.tests.d.ts → flattenTypesOfType.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_validation_errors_of_type.tests.d.ts → flattenValidationErrorsOfType.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_value_to.tests.d.ts → flattenValueTo.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{flatten_values_of_type.tests.d.ts → flattenValuesOfType.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{json_paths.tests.d.ts → jsonPaths.tests.d.ts} +0 -0
- /package/.out/transformers/flatteners/specs/{value_path_to_type_path.tests.d.ts → valuePathToTypePath.tests.d.ts} +0 -0
- /package/.out/types/{flattened_accessors_of_type.js → FlattenedAccessorsOfType.js} +0 -0
- /package/.out/types/{flattened_types_of_type.js → FlattenedTypesOfType.js} +0 -0
- /package/.out/types/{flattened_types_of_validating_type.js → FlattenedTypesOfValidatingType.js} +0 -0
- /package/.out/types/{flattened_validators_of_validating_type.js → FlattenedValidatorsOfValidatingType.js} +0 -0
- /package/.out/types/{flattened_values_of_type.js → FlattenedValuesOfType.js} +0 -0
- /package/.out/types/{mobx_value_of_type.js → MobxValueOfType.js} +0 -0
- /package/.out/types/{partial_type_of_type.js → PartialTypeOfType.js} +0 -0
- /package/.out/types/{path_of.d.ts → PathOf.d.ts} +0 -0
- /package/.out/types/{path_of.js → PathOf.js} +0 -0
- /package/.out/types/{paths_of_type.js → PathsOfType.js} +0 -0
- /package/.out/types/{readonly_type_of_type.js → ReadonlyTypeOfType.js} +0 -0
- /package/.out/types/{specs/flattened_accessors_of_type.tests.d.ts → StrictType.js} +0 -0
- /package/.out/types/{definitions.d.ts → Type.d.ts} +0 -0
- /package/.out/types/{definitions.js → Type.js} +0 -0
- /package/.out/types/{specs/flattened_types_of_type.tests.d.ts → ValidatingType.js} +0 -0
- /package/.out/types/{specs/flattened_validators_of_validating_type.tests.d.ts → ValidatingTypeDefWithError.js} +0 -0
- /package/.out/types/{specs/flattened_values_of_type.tests.d.ts → ValueOfType.js} +0 -0
- /package/.out/types/{specs/partial_type_of_type.tests.d.ts → ValueToTypePathsOfType.js} +0 -0
- /package/.out/types/{specs/paths_of_type.tests.d.ts → ValueTypesOfDiscriminatedUnion.js} +0 -0
- /package/.out/types/specs/{readonly_type_of_type.tests.d.ts → FlattenedAccessorsOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{flattened_accessors_of_type.tests.js → FlattenedAccessorsOfType.tests.js} +0 -0
- /package/.out/types/specs/{strict_definitions.tests.d.ts → FlattenedTypesOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{flattened_types_of_type.tests.js → FlattenedTypesOfType.tests.js} +0 -0
- /package/.out/types/specs/{type_of_type.tests.d.ts → FlattenedValidatorsOfValidatingType.tests.d.ts} +0 -0
- /package/.out/types/specs/{flattened_validators_of_validating_type.tests.js → FlattenedValidatorsOfValidatingType.tests.js} +0 -0
- /package/.out/types/specs/{value_of_type.tests.d.ts → FlattenedValuesOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{flattened_values_of_type.tests.js → FlattenedValuesOfType.tests.js} +0 -0
- /package/.out/types/specs/{value_to_type_paths_of_type.tests.d.ts → PartialTypeOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{partial_type_of_type.tests.js → PartialTypeOfType.tests.js} +0 -0
- /package/.out/types/specs/{value_types_of_discriminated_union.tests.d.ts → PathsOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{paths_of_type.tests.js → PathsOfType.tests.js} +0 -0
- /package/.out/types/{strict_definitions.js → specs/ReadonlyTypeOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{readonly_type_of_type.tests.js → ReadonlyTypeOfType.tests.js} +0 -0
- /package/.out/types/{validating_definitions.js → specs/StrictType.tests.d.ts} +0 -0
- /package/.out/types/specs/{strict_definitions.tests.js → StrictType.tests.js} +0 -0
- /package/.out/types/{validating_type_def_with_error.js → specs/TypeOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{type_of_type.tests.js → TypeOfType.tests.js} +0 -0
- /package/.out/types/{value_of_type.js → specs/ValueOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{value_of_type.tests.js → ValueOfType.tests.js} +0 -0
- /package/.out/types/{value_to_type_paths_of_type.js → specs/ValueToTypePathsOfType.tests.d.ts} +0 -0
- /package/.out/types/specs/{value_to_type_paths_of_type.tests.js → ValueToTypePathsOfType.tests.js} +0 -0
- /package/.out/types/{value_types_of_discriminated_union.js → specs/ValueTypesOfDiscriminatedUnion.tests.d.ts} +0 -0
- /package/.out/types/specs/{value_types_of_discriminated_union.tests.js → ValueTypesOfDiscriminatedUnion.tests.js} +0 -0
- /package/.out/validation/{errors_of_validators.d.ts → ErrorsOfValidators.d.ts} +0 -0
- /package/.out/validation/{errors_of_validators.js → ErrorsOfValidators.js} +0 -0
- /package/.out/validation/{validators_of_values.d.ts → ValidatorsOfValues.d.ts} +0 -0
- /package/.out/validation/{specs/errors_of_validators.tests.d.ts → ValidatorsOfValues.js} +0 -0
- /package/.out/validation/specs/{validators_of_values.tests.d.ts → errorsOfValidators.tests.d.ts} +0 -0
- /package/.out/validation/specs/{errors_of_validators.tests.js → errorsOfValidators.tests.js} +0 -0
- /package/.out/validation/{validators/specs/minimum_string_length_validator.tests.d.ts → specs/validatorsOfValues.tests.d.ts} +0 -0
- /package/.out/validation/specs/{validators_of_values.tests.js → validatorsOfValues.tests.js} +0 -0
- /package/.out/validation/validators/{composite_validator.d.ts → CompositeValidator.d.ts} +0 -0
- /package/.out/validation/validators/{composite_validator.js → CompositeValidator.js} +0 -0
- /package/.out/validation/validators/{defined_validator.d.ts → DefinedValidator.d.ts} +0 -0
- /package/.out/validation/validators/{defined_validator.js → DefinedValidator.js} +0 -0
- /package/.out/validation/validators/{maximum_string_length_validator.d.ts → MaximumStringLengthValidator.d.ts} +0 -0
- /package/.out/validation/validators/{maximum_string_length_validator.js → MaximumStringLengthValidator.js} +0 -0
- /package/.out/validation/validators/{minimum_string_length_validator.d.ts → MinimumStringLengthValidator.d.ts} +0 -0
- /package/.out/validation/validators/{minimum_string_length_validator.js → MinimumStringLengthValidator.js} +0 -0
- /package/.out/validation/validators/{optional_validator_proxy.d.ts → OptionalValidatorProxy.d.ts} +0 -0
- /package/.out/validation/validators/{optional_validator_proxy.js → OptionalValidatorProxy.js} +0 -0
- /package/.out/validation/validators/{regexp_validator.d.ts → RegexpValidator.d.ts} +0 -0
- /package/.out/validation/validators/{regexp_validator.js → RegexpValidator.js} +0 -0
- /package/.out/validation/validators/specs/{regexp_validator.tests.d.ts → minimumStringLengthValidator.tests.d.ts} +0 -0
- /package/.out/validation/{validators_of_values.js → validators/specs/regexpValidator.tests.d.ts} +0 -0
- /package/transformers/flatteners/{json_path.ts → jsonPath.ts} +0 -0
- /package/types/{path_of.ts → PathOf.ts} +0 -0
- /package/types/{definitions.ts → Type.ts} +0 -0
- /package/validation/{errors_of_validators.ts → ErrorsOfValidators.ts} +0 -0
- /package/validation/{validators_of_values.ts → ValidatorsOfValues.ts} +0 -0
- /package/validation/validators/{composite_validator.ts → CompositeValidator.ts} +0 -0
- /package/validation/validators/{defined_validator.ts → DefinedValidator.ts} +0 -0
- /package/validation/validators/{maximum_string_length_validator.ts → MaximumStringLengthValidator.ts} +0 -0
- /package/validation/validators/{minimum_string_length_validator.ts → MinimumStringLengthValidator.ts} +0 -0
- /package/validation/validators/{optional_validator_proxy.ts → OptionalValidatorProxy.ts} +0 -0
- /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/
|
|
2
|
+
export * from './transformers/copies/mobxCopy';
|
|
3
3
|
export * from './transformers/equals';
|
|
4
|
-
export * from './transformers/flatteners/
|
|
5
|
-
export * from './transformers/flatteners/
|
|
6
|
-
export * from './transformers/flatteners/
|
|
7
|
-
export * from './transformers/flatteners/
|
|
8
|
-
export * from './transformers/flatteners/
|
|
9
|
-
export * from './transformers/flatteners/
|
|
10
|
-
export * from './transformers/flatteners/
|
|
11
|
-
export * from './transformers/flatteners/
|
|
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/
|
|
14
|
-
export * from './types/
|
|
15
|
-
export * from './types/
|
|
16
|
-
export * from './types/
|
|
17
|
-
export * from './types/
|
|
18
|
-
export * from './types/
|
|
19
|
-
export * from './types/
|
|
20
|
-
export * from './types/
|
|
21
|
-
export * from './types/
|
|
22
|
-
export * from './types/
|
|
23
|
-
export * from './types/
|
|
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/
|
|
26
|
-
export * from './validation/validators/
|
|
27
|
-
export * from './validation/validators/
|
|
28
|
-
export * from './validation/validators/
|
|
29
|
-
export * from './validation/validators/
|
|
30
|
-
export * from './validation/
|
|
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/
|
|
2
|
+
export * from './transformers/copies/mobxCopy';
|
|
3
3
|
export * from './transformers/equals';
|
|
4
|
-
export * from './transformers/flatteners/
|
|
5
|
-
export * from './transformers/flatteners/
|
|
6
|
-
export * from './transformers/flatteners/
|
|
7
|
-
export * from './transformers/flatteners/
|
|
8
|
-
export * from './transformers/flatteners/
|
|
9
|
-
export * from './transformers/flatteners/
|
|
10
|
-
export * from './transformers/flatteners/
|
|
11
|
-
export * from './transformers/flatteners/
|
|
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/
|
|
14
|
-
export * from './types/
|
|
15
|
-
export * from './types/
|
|
16
|
-
export * from './types/
|
|
17
|
-
export * from './types/
|
|
18
|
-
export * from './types/
|
|
19
|
-
export * from './types/
|
|
20
|
-
export * from './types/
|
|
21
|
-
export * from './types/
|
|
22
|
-
export * from './types/
|
|
23
|
-
export * from './types/
|
|
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/
|
|
26
|
-
export * from './validation/validators/
|
|
27
|
-
export * from './validation/validators/
|
|
28
|
-
export * from './validation/validators/
|
|
29
|
-
export * from './validation/validators/
|
|
30
|
-
export * from './validation/
|
|
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/
|
|
2
|
-
import { type StrictType } from 'types/
|
|
3
|
-
import { type ValueOfType } from 'types/
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { type ReadonlyTypeOfType } from 'types/
|
|
2
|
-
import { type StrictType, type StrictTypeDef } from 'types/
|
|
3
|
-
import { type ValueOfType } from 'types/
|
|
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/
|
|
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/
|
|
4
|
-
import { TypeDefType, } from 'types/
|
|
5
|
-
import { copyTo, } from './
|
|
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/
|
|
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/
|
|
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,3 +1,3 @@
|
|
|
1
|
-
import { type Type } from 'types/
|
|
2
|
-
import { type ValueOfType } from 'types/
|
|
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;
|
package/.out/transformers/flatteners/{flatten_accessors_of_type.d.ts → flattenAccessorsOfType.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import { type ValueOfType } from 'types/
|
|
4
|
-
import { type Setter } from './
|
|
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,3 +1,3 @@
|
|
|
1
|
-
import { type Type } from 'types/
|
|
2
|
-
import { type ValueOfType } from 'types/
|
|
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 { type StrictType, type StrictTypeDef } from 'types/
|
|
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
|
|
3
|
-
import { jsonPath } from './
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReadonlyDeep, type ValueOf } from 'type-fest';
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import { type ValueOfType } from 'types/
|
|
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/
|
|
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/
|
|
2
|
-
import { type FlattenedValidatorsOfValidatingType } from 'types/
|
|
3
|
-
import { type ValidatingType } from 'types/
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import { type ValueOfType } from 'types/
|
|
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/
|
|
3
|
-
import { jsonPath } from './
|
|
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]
|
package/.out/transformers/flatteners/{flatten_values_of_type.d.ts → flattenValuesOfType.d.ts}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type Type } from 'types/
|
|
2
|
-
import { type ValueOfType } from 'types/
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { expectDefinedAndReturn } from '@strictly/base';
|
|
2
|
-
import { flattenAccessorsOfType } from 'transformers/flatteners/
|
|
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/
|
|
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 () {
|
package/.out/transformers/flatteners/specs/{flatten_type_to.tests.js → flattenTypeTo.tests.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { flattenTypeTo } from 'transformers/flatteners/
|
|
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/
|
|
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/
|
|
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/
|
|
1
|
+
import { flattenValidationErrorsOfType } from 'transformers/flatteners/flattenValidationErrorsOfType';
|
|
2
2
|
import { literal } from 'types/builders';
|
|
3
3
|
describe('flattenValidationsOfType', function () {
|
|
4
4
|
describe('literal', function () {
|
package/.out/transformers/flatteners/specs/{flatten_value_to.tests.js → flattenValueTo.tests.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { flattenValueTo, } from 'transformers/flatteners/
|
|
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/
|
|
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/
|
|
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/
|
|
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 () {
|
package/.out/transformers/flatteners/{value_path_to_type_path.d.ts → valuePathToTypePath.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Type } from 'types/
|
|
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/
|
|
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);
|