typebox 1.1.33 → 1.1.34
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/build/format/_registry.mjs +9 -9
- package/build/format/format.d.mts +9 -9
- package/build/format/format.mjs +9 -9
- package/build/schema/pointer/index.d.mts +1 -1
- package/build/schema/pointer/index.mjs +1 -1
- package/build/schema/static/{~elements.d.mts → _elements.d.mts} +1 -1
- package/build/schema/static/items.d.mts +1 -1
- package/build/schema/static/prefixItems.d.mts +1 -1
- package/build/schema/static/ref.d.mts +1 -1
- package/build/schema/static/static.d.mts +1 -1
- package/build/type/action/{constructor-parameters.d.mts → constructor_parameters.d.mts} +1 -1
- package/build/type/action/{constructor-parameters.mjs → constructor_parameters.mjs} +1 -1
- package/build/type/action/index.d.mts +5 -5
- package/build/type/action/index.mjs +5 -5
- package/build/type/action/indexed.d.mts +1 -1
- package/build/type/action/indexed.mjs +1 -1
- package/build/type/action/{instance-type.d.mts → instance_type.d.mts} +1 -1
- package/build/type/action/{instance-type.mjs → instance_type.mjs} +1 -1
- package/build/type/action/{non-nullable.d.mts → non_nullable.d.mts} +1 -1
- package/build/type/action/{non-nullable.mjs → non_nullable.mjs} +1 -1
- package/build/type/action/omit.d.mts +1 -1
- package/build/type/action/omit.mjs +1 -1
- package/build/type/action/pick.d.mts +1 -1
- package/build/type/action/pick.mjs +1 -1
- package/build/type/action/{readonly-object.d.mts → readonly_object.d.mts} +1 -1
- package/build/type/action/{readonly-object.mjs → readonly_object.mjs} +1 -1
- package/build/type/action/{return-type.d.mts → return_type.d.mts} +1 -1
- package/build/type/action/{return-type.mjs → return_type.mjs} +1 -1
- package/build/type/engine/call/instantiate.d.mts +3 -3
- package/build/type/engine/call/instantiate.mjs +3 -3
- package/build/type/engine/{constructor-parameters → constructor_parameters}/instantiate.d.mts +1 -1
- package/build/type/engine/{constructor-parameters → constructor_parameters}/instantiate.mjs +1 -1
- package/build/type/engine/cyclic/check.d.mts +1 -1
- package/build/type/engine/cyclic/check.mjs +1 -1
- package/build/type/engine/cyclic/dependencies.d.mts +1 -1
- package/build/type/engine/cyclic/dependencies.mjs +1 -1
- package/build/type/engine/cyclic/extends.d.mts +1 -1
- package/build/type/engine/cyclic/extends.mjs +1 -1
- package/build/type/engine/enum/index.d.mts +2 -2
- package/build/type/engine/enum/index.mjs +2 -2
- package/build/type/engine/evaluate/composite.d.mts +1 -1
- package/build/type/engine/evaluate/composite.mjs +1 -1
- package/build/type/engine/helpers/index.d.mts +1 -1
- package/build/type/engine/helpers/index.mjs +1 -1
- package/build/type/engine/index.d.mts +6 -6
- package/build/type/engine/index.mjs +6 -6
- package/build/type/engine/indexable/{from-cyclic.d.mts → from_cyclic.d.mts} +1 -1
- package/build/type/engine/indexable/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/type/engine/indexable/{from-enum.d.mts → from_enum.d.mts} +2 -2
- package/build/type/engine/indexable/{from-enum.mjs → from_enum.mjs} +2 -2
- package/build/type/engine/indexable/{from-intersect.d.mts → from_intersect.d.mts} +1 -1
- package/build/type/engine/indexable/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/type/engine/indexable/{from-template-literal.d.mts → from_template_literal.d.mts} +2 -2
- package/build/type/engine/indexable/{from-template-literal.mjs → from_template_literal.mjs} +2 -2
- package/build/type/engine/indexable/{from-type.d.mts → from_type.d.mts} +7 -7
- package/build/type/engine/indexable/{from-type.mjs → from_type.mjs} +7 -7
- package/build/type/engine/indexable/{from-union.d.mts → from_union.d.mts} +1 -1
- package/build/type/engine/indexable/{from-union.mjs → from_union.mjs} +1 -1
- package/build/type/engine/indexable/{to-indexable-keys.d.mts → to_indexable_keys.d.mts} +1 -1
- package/build/type/engine/indexable/{to-indexable-keys.mjs → to_indexable_keys.mjs} +1 -1
- package/build/type/engine/indexed/{from-object.d.mts → from_object.d.mts} +2 -2
- package/build/type/engine/indexed/{from-object.mjs → from_object.mjs} +2 -2
- package/build/type/engine/indexed/{from-tuple.d.mts → from_tuple.d.mts} +1 -1
- package/build/type/engine/indexed/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/type/engine/indexed/{from-type.d.mts → from_type.d.mts} +3 -3
- package/build/type/engine/indexed/{from-type.mjs → from_type.mjs} +3 -3
- package/build/type/engine/indexed/instantiate.d.mts +1 -1
- package/build/type/engine/indexed/instantiate.mjs +1 -1
- package/build/type/engine/{instance-type → instance_type}/instantiate.d.mts +1 -1
- package/build/type/engine/{instance-type → instance_type}/instantiate.mjs +1 -1
- package/build/type/engine/instantiate.d.mts +7 -7
- package/build/type/engine/instantiate.mjs +7 -7
- package/build/type/engine/intrinsics/{from-template-literal.d.mts → from_template_literal.d.mts} +2 -2
- package/build/type/engine/intrinsics/{from-template-literal.mjs → from_template_literal.mjs} +2 -2
- package/build/type/engine/intrinsics/{from-type.d.mts → from_type.d.mts} +4 -4
- package/build/type/engine/intrinsics/{from-type.mjs → from_type.mjs} +4 -4
- package/build/type/engine/intrinsics/{from-union.d.mts → from_union.d.mts} +1 -1
- package/build/type/engine/intrinsics/{from-union.mjs → from_union.mjs} +1 -1
- package/build/type/engine/intrinsics/instantiate.d.mts +1 -1
- package/build/type/engine/intrinsics/instantiate.mjs +1 -1
- package/build/type/engine/keyof/{from-type.d.mts → from_type.d.mts} +5 -5
- package/build/type/engine/keyof/{from-type.mjs → from_type.mjs} +5 -5
- package/build/type/engine/keyof/instantiate.d.mts +1 -1
- package/build/type/engine/keyof/instantiate.mjs +1 -1
- package/build/type/engine/mapped/instantiate.d.mts +1 -1
- package/build/type/engine/mapped/instantiate.mjs +1 -1
- package/build/type/engine/mapped/{mapped-operation.d.mts → mapped_operation.d.mts} +3 -3
- package/build/type/engine/mapped/{mapped-operation.mjs → mapped_operation.mjs} +3 -3
- package/build/type/engine/mapped/{mapped-variants.d.mts → mapped_variants.d.mts} +2 -2
- package/build/type/engine/mapped/{mapped-variants.mjs → mapped_variants.mjs} +2 -2
- package/build/type/engine/{non-nullable → non_nullable}/instantiate.d.mts +1 -1
- package/build/type/engine/{non-nullable → non_nullable}/instantiate.mjs +1 -1
- package/build/type/engine/object/collapse.d.mts +1 -1
- package/build/type/engine/object/collapse.mjs +1 -1
- package/build/type/engine/object/{from-cyclic.d.mts → from_cyclic.d.mts} +1 -1
- package/build/type/engine/object/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/type/engine/object/{from-intersect.d.mts → from_intersect.d.mts} +1 -1
- package/build/type/engine/object/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/type/engine/object/{from-tuple.d.mts → from_tuple.d.mts} +2 -2
- package/build/type/engine/object/{from-tuple.mjs → from_tuple.mjs} +2 -2
- package/build/type/engine/object/{from-type.d.mts → from_type.d.mts} +5 -5
- package/build/type/engine/object/{from-type.mjs → from_type.mjs} +5 -5
- package/build/type/engine/object/{from-union.d.mts → from_union.d.mts} +1 -1
- package/build/type/engine/object/{from-union.mjs → from_union.mjs} +1 -1
- package/build/type/engine/omit/{from-type.d.mts → from_type.d.mts} +2 -2
- package/build/type/engine/omit/{from-type.mjs → from_type.mjs} +2 -2
- package/build/type/engine/omit/instantiate.d.mts +1 -1
- package/build/type/engine/omit/instantiate.mjs +1 -1
- package/build/type/engine/{readonly-object/from-cyclic.d.mts → partial/from_cyclic.d.mts} +1 -1
- package/build/type/engine/{readonly-object/from-cyclic.mjs → partial/from_cyclic.mjs} +1 -1
- package/build/type/engine/partial/{from-intersect.d.mts → from_intersect.d.mts} +1 -1
- package/build/type/engine/partial/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/type/engine/partial/{from-type.d.mts → from_type.d.mts} +4 -4
- package/build/type/engine/partial/{from-type.mjs → from_type.mjs} +4 -4
- package/build/type/engine/{readonly-object/from-union.d.mts → partial/from_union.d.mts} +1 -1
- package/build/type/engine/{readonly-object/from-union.mjs → partial/from_union.mjs} +1 -1
- package/build/type/engine/partial/instantiate.d.mts +1 -1
- package/build/type/engine/partial/instantiate.mjs +1 -1
- package/build/type/engine/pick/{from-type.d.mts → from_type.d.mts} +2 -2
- package/build/type/engine/pick/{from-type.mjs → from_type.mjs} +2 -2
- package/build/type/engine/pick/instantiate.d.mts +1 -1
- package/build/type/engine/pick/instantiate.mjs +1 -1
- package/build/type/engine/{partial/from-cyclic.d.mts → readonly_object/from_cyclic.d.mts} +1 -1
- package/build/type/engine/{required/from-cyclic.mjs → readonly_object/from_cyclic.mjs} +1 -1
- package/build/type/engine/{readonly-object/from-intersect.d.mts → readonly_object/from_intersect.d.mts} +1 -1
- package/build/type/engine/{required/from-intersect.mjs → readonly_object/from_intersect.mjs} +1 -1
- package/build/type/engine/{readonly-object/from-type.d.mts → readonly_object/from_type.d.mts} +6 -6
- package/build/type/engine/{readonly-object/from-type.mjs → readonly_object/from_type.mjs} +6 -6
- package/build/type/engine/{partial/from-union.d.mts → readonly_object/from_union.d.mts} +1 -1
- package/build/type/engine/{required/from-union.mjs → readonly_object/from_union.mjs} +1 -1
- package/build/type/engine/{readonly-object → readonly_object}/instantiate.d.mts +2 -2
- package/build/type/engine/{readonly-object → readonly_object}/instantiate.mjs +2 -2
- package/build/type/engine/record/{from-key.d.mts → from_key.d.mts} +11 -11
- package/build/type/engine/record/{from-key.mjs → from_key.mjs} +11 -11
- package/build/type/engine/record/{from-key-any.mjs → from_key_any.mjs} +1 -1
- package/build/type/engine/record/{from-key-enum.d.mts → from_key_enum.d.mts} +2 -2
- package/build/type/engine/record/{from-key-enum.mjs → from_key_enum.mjs} +2 -2
- package/build/type/engine/record/{from-key-integer.mjs → from_key_integer.mjs} +1 -1
- package/build/type/engine/record/{from-key-intersect.d.mts → from_key_intersect.d.mts} +1 -1
- package/build/type/engine/record/{from-key-intersect.mjs → from_key_intersect.mjs} +1 -1
- package/build/type/engine/record/{from-key-number.mjs → from_key_number.mjs} +1 -1
- package/build/type/engine/record/{from-key-string.mjs → from_key_string.mjs} +1 -1
- package/build/type/engine/record/{from-key-template-literal.d.mts → from_key_template_literal.d.mts} +3 -3
- package/build/type/engine/record/{from-key-template-literal.mjs → from_key_template_literal.mjs} +4 -4
- package/build/type/engine/record/{from-key-union.mjs → from_key_union.mjs} +1 -1
- package/build/type/engine/record/instantiate.d.mts +1 -1
- package/build/type/engine/record/instantiate.mjs +1 -1
- package/build/type/engine/required/{from-cyclic.d.mts → from_cyclic.d.mts} +1 -1
- package/build/type/engine/{partial/from-cyclic.mjs → required/from_cyclic.mjs} +1 -1
- package/build/type/engine/required/{from-intersect.d.mts → from_intersect.d.mts} +1 -1
- package/build/type/engine/{readonly-object/from-intersect.mjs → required/from_intersect.mjs} +1 -1
- package/build/type/engine/required/{from-type.d.mts → from_type.d.mts} +4 -4
- package/build/type/engine/required/{from-type.mjs → from_type.mjs} +4 -4
- package/build/type/engine/required/{from-union.d.mts → from_union.d.mts} +1 -1
- package/build/type/engine/{partial/from-union.mjs → required/from_union.mjs} +1 -1
- package/build/type/engine/required/instantiate.d.mts +1 -1
- package/build/type/engine/required/instantiate.mjs +1 -1
- package/build/type/engine/{return-type → return_type}/instantiate.d.mts +1 -1
- package/build/type/engine/{return-type → return_type}/instantiate.mjs +1 -1
- package/build/type/engine/{template-literal → template_literal}/decode.d.mts +2 -2
- package/build/type/engine/{template-literal → template_literal}/decode.mjs +2 -2
- package/build/type/engine/{template-literal → template_literal}/encode.d.mts +2 -2
- package/build/type/engine/{template-literal → template_literal}/encode.mjs +2 -2
- package/build/type/engine/{template-literal → template_literal}/index.d.mts +2 -2
- package/build/type/engine/{template-literal → template_literal}/index.mjs +2 -2
- package/build/type/engine/{template-literal → template_literal}/instantiate.d.mts +1 -1
- package/build/type/engine/{template-literal → template_literal}/instantiate.mjs +1 -1
- package/build/type/engine/this/{expand-this.d.mts → expand_this.d.mts} +1 -1
- package/build/type/engine/this/{expand-this.mjs → expand_this.mjs} +1 -1
- package/build/type/extends/any.d.mts +1 -1
- package/build/type/extends/any.mjs +1 -1
- package/build/type/extends/array.d.mts +2 -2
- package/build/type/extends/array.mjs +2 -2
- package/build/type/extends/{async-iterator.d.mts → async_iterator.d.mts} +3 -3
- package/build/type/extends/{async-iterator.mjs → async_iterator.mjs} +3 -3
- package/build/type/extends/bigint.d.mts +1 -1
- package/build/type/extends/bigint.mjs +1 -1
- package/build/type/extends/boolean.d.mts +1 -1
- package/build/type/extends/boolean.mjs +1 -1
- package/build/type/extends/constructor.d.mts +1 -1
- package/build/type/extends/constructor.mjs +1 -1
- package/build/type/extends/enum.d.mts +1 -1
- package/build/type/extends/enum.mjs +1 -1
- package/build/type/extends/extends.d.mts +1 -1
- package/build/type/extends/extends.mjs +1 -1
- package/build/type/extends/{extends-left.d.mts → extends_left.d.mts} +4 -4
- package/build/type/extends/{extends-left.mjs → extends_left.mjs} +4 -4
- package/build/type/extends/{extends-right.d.mts → extends_right.d.mts} +3 -3
- package/build/type/extends/{extends-right.mjs → extends_right.mjs} +3 -3
- package/build/type/extends/function.d.mts +1 -1
- package/build/type/extends/function.mjs +1 -1
- package/build/type/extends/inference.d.mts +1 -1
- package/build/type/extends/inference.mjs +1 -1
- package/build/type/extends/integer.d.mts +1 -1
- package/build/type/extends/integer.mjs +1 -1
- package/build/type/extends/intersect.d.mts +1 -1
- package/build/type/extends/intersect.mjs +1 -1
- package/build/type/extends/iterator.d.mts +2 -2
- package/build/type/extends/iterator.mjs +2 -2
- package/build/type/extends/literal.d.mts +1 -1
- package/build/type/extends/literal.mjs +1 -1
- package/build/type/extends/never.d.mts +1 -1
- package/build/type/extends/never.mjs +1 -1
- package/build/type/extends/null.d.mts +1 -1
- package/build/type/extends/null.mjs +1 -1
- package/build/type/extends/number.d.mts +1 -1
- package/build/type/extends/number.mjs +1 -1
- package/build/type/extends/object.d.mts +2 -2
- package/build/type/extends/object.mjs +2 -2
- package/build/type/extends/parameters.d.mts +1 -1
- package/build/type/extends/parameters.mjs +1 -1
- package/build/type/extends/promise.d.mts +2 -2
- package/build/type/extends/promise.mjs +2 -2
- package/build/type/extends/{return-type.d.mts → return_type.d.mts} +1 -1
- package/build/type/extends/{return-type.mjs → return_type.mjs} +1 -1
- package/build/type/extends/string.d.mts +1 -1
- package/build/type/extends/string.mjs +1 -1
- package/build/type/extends/symbol.d.mts +1 -1
- package/build/type/extends/symbol.mjs +1 -1
- package/build/type/extends/{template-literal.d.mts → template_literal.d.mts} +2 -2
- package/build/type/extends/{template-literal.mjs → template_literal.mjs} +2 -2
- package/build/type/extends/tuple.d.mts +2 -2
- package/build/type/extends/tuple.mjs +2 -2
- package/build/type/extends/undefined.d.mts +1 -1
- package/build/type/extends/undefined.mjs +1 -1
- package/build/type/extends/union.d.mts +1 -1
- package/build/type/extends/union.mjs +1 -1
- package/build/type/extends/unknown.d.mts +1 -1
- package/build/type/extends/unknown.mjs +1 -1
- package/build/type/extends/void.d.mts +1 -1
- package/build/type/extends/void.mjs +1 -1
- package/build/type/types/enum.d.mts +2 -2
- package/build/type/types/enum.mjs +2 -2
- package/build/type/types/index.d.mts +2 -2
- package/build/type/types/index.mjs +2 -2
- package/build/type/types/record.d.mts +2 -2
- package/build/type/types/record.mjs +2 -2
- package/build/type/types/static.d.mts +2 -2
- package/build/type/types/{template-literal.d.mts → template_literal.d.mts} +2 -2
- package/build/type/types/{template-literal.mjs → template_literal.mjs} +1 -1
- package/build/typebox.d.mts +7 -7
- package/build/typebox.mjs +7 -7
- package/build/value/clean/clean.mjs +1 -1
- package/build/value/clean/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/clean/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/value/clean/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/clean/{from-object.mjs → from_object.mjs} +1 -1
- package/build/value/clean/{from-record.mjs → from_record.mjs} +1 -1
- package/build/value/clean/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/clean/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/clean/{from-type.mjs → from_type.mjs} +9 -9
- package/build/value/clean/{from-union.mjs → from_union.mjs} +2 -2
- package/build/value/codec/decode.mjs +1 -1
- package/build/value/codec/encode.mjs +1 -1
- package/build/value/codec/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/codec/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/value/codec/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/codec/{from-object.mjs → from_object.mjs} +2 -2
- package/build/value/codec/{from-record.mjs → from_record.mjs} +1 -1
- package/build/value/codec/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/codec/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/codec/{from-type.mjs → from_type.mjs} +8 -8
- package/build/value/codec/{from-union.mjs → from_union.mjs} +2 -2
- package/build/value/convert/convert.mjs +1 -1
- package/build/value/convert/{from-additional.mjs → from_additional.mjs} +1 -1
- package/build/value/convert/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/convert/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/value/convert/{from-enum.mjs → from_enum.mjs} +1 -1
- package/build/value/convert/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/convert/{from-object.mjs → from_object.mjs} +3 -3
- package/build/value/convert/{from-record.mjs → from_record.mjs} +2 -2
- package/build/value/convert/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/convert/{from-template-literal.mjs → from_template_literal.mjs} +2 -2
- package/build/value/convert/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/convert/{from-type.mjs → from_type.mjs} +20 -20
- package/build/value/convert/{from-union.mjs → from_union.mjs} +1 -1
- package/build/value/convert/try/try.d.mts +8 -8
- package/build/value/convert/try/try.mjs +8 -8
- package/build/value/convert/try/{try-array.d.mts → try_array.d.mts} +1 -1
- package/build/value/convert/try/{try-array.mjs → try_array.mjs} +1 -1
- package/build/value/convert/try/{try-bigint.d.mts → try_bigint.d.mts} +1 -1
- package/build/value/convert/try/{try-bigint.mjs → try_bigint.mjs} +1 -1
- package/build/value/convert/try/{try-boolean.d.mts → try_boolean.d.mts} +1 -1
- package/build/value/convert/try/{try-boolean.mjs → try_boolean.mjs} +1 -1
- package/build/value/convert/try/{try-null.d.mts → try_null.d.mts} +1 -1
- package/build/value/convert/try/{try-null.mjs → try_null.mjs} +1 -1
- package/build/value/convert/try/{try-number.d.mts → try_number.d.mts} +1 -1
- package/build/value/convert/try/{try-number.mjs → try_number.mjs} +2 -2
- package/build/value/convert/try/{try-string.d.mts → try_string.d.mts} +1 -1
- package/build/value/convert/try/{try-string.mjs → try_string.mjs} +1 -1
- package/build/value/convert/try/{try-undefined.d.mts → try_undefined.d.mts} +1 -1
- package/build/value/convert/try/{try-undefined.mjs → try_undefined.mjs} +1 -1
- package/build/value/create/create.mjs +1 -1
- package/build/value/create/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/create/{from-constructor.mjs → from_constructor.mjs} +1 -1
- package/build/value/create/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/value/create/{from-enum.mjs → from_enum.mjs} +1 -1
- package/build/value/create/{from-function.mjs → from_function.mjs} +1 -1
- package/build/value/create/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/create/{from-object.mjs → from_object.mjs} +1 -1
- package/build/value/create/{from-promise.mjs → from_promise.mjs} +1 -1
- package/build/value/create/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/create/{from-template-literal.mjs → from_template_literal.mjs} +2 -2
- package/build/value/create/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/create/{from-type.mjs → from_type.mjs} +28 -28
- package/build/value/create/{from-union.mjs → from_union.mjs} +1 -1
- package/build/value/default/default.mjs +1 -1
- package/build/value/default/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/default/{from-cyclic.mjs → from_cyclic.mjs} +1 -1
- package/build/value/default/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/default/{from-object.mjs → from_object.mjs} +1 -1
- package/build/value/default/{from-record.mjs → from_record.mjs} +1 -1
- package/build/value/default/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/default/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/default/{from-type.mjs → from_type.mjs} +10 -10
- package/build/value/default/{from-union.mjs → from_union.mjs} +1 -1
- package/build/value/mutate/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/mutate/{from-object.mjs → from_object.mjs} +1 -1
- package/build/value/mutate/{from-value.mjs → from_value.mjs} +3 -3
- package/build/value/mutate/mutate.mjs +1 -1
- package/build/value/repair/{from-array.mjs → from_array.mjs} +1 -1
- package/build/value/repair/{from-base.mjs → from_base.mjs} +1 -1
- package/build/value/repair/{from-enum.mjs → from_enum.mjs} +1 -1
- package/build/value/repair/{from-intersect.mjs → from_intersect.mjs} +1 -1
- package/build/value/repair/{from-object.mjs → from_object.mjs} +1 -1
- package/build/value/repair/{from-record.mjs → from_record.mjs} +1 -1
- package/build/value/repair/{from-ref.mjs → from_ref.mjs} +1 -1
- package/build/value/repair/{from-template-literal.mjs → from_template_literal.mjs} +2 -2
- package/build/value/repair/{from-tuple.mjs → from_tuple.mjs} +1 -1
- package/build/value/repair/{from-type.mjs → from_type.mjs} +11 -11
- package/build/value/repair/{from-union.mjs → from_union.mjs} +2 -2
- package/build/value/repair/repair.mjs +1 -1
- package/build/value/shared/index.d.mts +3 -3
- package/build/value/shared/index.mjs +3 -3
- package/package.json +1 -1
- /package/build/format/{date-time.d.mts → date_time.d.mts} +0 -0
- /package/build/format/{date-time.mjs → date_time.mjs} +0 -0
- /package/build/format/{idn-email.d.mts → idn_email.d.mts} +0 -0
- /package/build/format/{idn-email.mjs → idn_email.mjs} +0 -0
- /package/build/format/{idn-hostname.d.mts → idn_hostname.d.mts} +0 -0
- /package/build/format/{idn-hostname.mjs → idn_hostname.mjs} +0 -0
- /package/build/format/{iri-reference.d.mts → iri_reference.d.mts} +0 -0
- /package/build/format/{iri-reference.mjs → iri_reference.mjs} +0 -0
- /package/build/format/{json-pointer.d.mts → json_pointer.d.mts} +0 -0
- /package/build/format/{json-pointer.mjs → json_pointer.mjs} +0 -0
- /package/build/format/{json-pointer-uri-fragment.d.mts → json_pointer_uri_fragment.d.mts} +0 -0
- /package/build/format/{json-pointer-uri-fragment.mjs → json_pointer_uri_fragment.mjs} +0 -0
- /package/build/format/{relative-json-pointer.d.mts → relative_json_pointer.d.mts} +0 -0
- /package/build/format/{relative-json-pointer.mjs → relative_json_pointer.mjs} +0 -0
- /package/build/format/{uri-reference.d.mts → uri_reference.d.mts} +0 -0
- /package/build/format/{uri-reference.mjs → uri_reference.mjs} +0 -0
- /package/build/format/{uri-template.d.mts → uri_template.d.mts} +0 -0
- /package/build/format/{uri-template.mjs → uri_template.mjs} +0 -0
- /package/build/schema/pointer/{pointer-get.d.mts → pointer_get.d.mts} +0 -0
- /package/build/schema/pointer/{pointer-get.mjs → pointer_get.mjs} +0 -0
- /package/build/schema/static/{~canonical.d.mts → _canonical.d.mts} +0 -0
- /package/build/schema/static/{~canonical.mjs → _canonical.mjs} +0 -0
- /package/build/schema/static/{~comparer.d.mts → _comparer.d.mts} +0 -0
- /package/build/schema/static/{~comparer.mjs → _comparer.mjs} +0 -0
- /package/build/schema/static/{~elements.mjs → _elements.mjs} +0 -0
- /package/build/type/engine/call/{distribute-arguments.d.mts → distribute_arguments.d.mts} +0 -0
- /package/build/type/engine/call/{distribute-arguments.mjs → distribute_arguments.mjs} +0 -0
- /package/build/type/engine/call/{resolve-arguments.d.mts → resolve_arguments.d.mts} +0 -0
- /package/build/type/engine/call/{resolve-arguments.mjs → resolve_arguments.mjs} +0 -0
- /package/build/type/engine/call/{resolve-target.d.mts → resolve_target.d.mts} +0 -0
- /package/build/type/engine/call/{resolve-target.mjs → resolve_target.mjs} +0 -0
- /package/build/type/engine/{constructor-parameters → constructor_parameters}/index.d.mts +0 -0
- /package/build/type/engine/{constructor-parameters → constructor_parameters}/index.mjs +0 -0
- /package/build/type/engine/enum/{enum-to-union.d.mts → enum_to_union.d.mts} +0 -0
- /package/build/type/engine/enum/{enum-to-union.mjs → enum_to_union.mjs} +0 -0
- /package/build/type/engine/enum/{typescript-enum-to-enum-values.d.mts → typescript_enum_to_enum_values.d.mts} +0 -0
- /package/build/type/engine/enum/{typescript-enum-to-enum-values.mjs → typescript_enum_to_enum_values.mjs} +0 -0
- /package/build/type/engine/helpers/{keys-to-indexer.d.mts → keys_to_indexer.d.mts} +0 -0
- /package/build/type/engine/helpers/{keys-to-indexer.mjs → keys_to_indexer.mjs} +0 -0
- /package/build/type/engine/indexable/{from-literal.d.mts → from_literal.d.mts} +0 -0
- /package/build/type/engine/indexable/{from-literal.mjs → from_literal.mjs} +0 -0
- /package/build/type/engine/indexable/{to-indexable.d.mts → to_indexable.d.mts} +0 -0
- /package/build/type/engine/indexable/{to-indexable.mjs → to_indexable.mjs} +0 -0
- /package/build/type/engine/indexed/{array-indexer.d.mts → array_indexer.d.mts} +0 -0
- /package/build/type/engine/indexed/{array-indexer.mjs → array_indexer.mjs} +0 -0
- /package/build/type/engine/indexed/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/type/engine/indexed/{from-array.mjs → from_array.mjs} +0 -0
- /package/build/type/engine/{instance-type → instance_type}/index.d.mts +0 -0
- /package/build/type/engine/{instance-type → instance_type}/index.mjs +0 -0
- /package/build/type/engine/intrinsics/{from-literal.d.mts → from_literal.d.mts} +0 -0
- /package/build/type/engine/intrinsics/{from-literal.mjs → from_literal.mjs} +0 -0
- /package/build/type/engine/keyof/{from-any.d.mts → from_any.d.mts} +0 -0
- /package/build/type/engine/keyof/{from-any.mjs → from_any.mjs} +0 -0
- /package/build/type/engine/keyof/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/type/engine/keyof/{from-array.mjs → from_array.mjs} +0 -0
- /package/build/type/engine/keyof/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/type/engine/keyof/{from-object.mjs → from_object.mjs} +0 -0
- /package/build/type/engine/keyof/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/type/engine/keyof/{from-record.mjs → from_record.mjs} +0 -0
- /package/build/type/engine/keyof/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/type/engine/keyof/{from-tuple.mjs → from_tuple.mjs} +0 -0
- /package/build/type/engine/{non-nullable → non_nullable}/index.d.mts +0 -0
- /package/build/type/engine/{non-nullable → non_nullable}/index.mjs +0 -0
- /package/build/type/engine/object/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/type/engine/object/{from-object.mjs → from_object.mjs} +0 -0
- /package/build/type/engine/partial/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/type/engine/partial/{from-object.mjs → from_object.mjs} +0 -0
- /package/build/type/engine/{readonly-object/from-array.d.mts → readonly_object/from_array.d.mts} +0 -0
- /package/build/type/engine/{readonly-object/from-array.mjs → readonly_object/from_array.mjs} +0 -0
- /package/build/type/engine/{readonly-object/from-object.d.mts → readonly_object/from_object.d.mts} +0 -0
- /package/build/type/engine/{readonly-object/from-object.mjs → readonly_object/from_object.mjs} +0 -0
- /package/build/type/engine/{readonly-object/from-tuple.d.mts → readonly_object/from_tuple.d.mts} +0 -0
- /package/build/type/engine/{readonly-object/from-tuple.mjs → readonly_object/from_tuple.mjs} +0 -0
- /package/build/type/engine/{readonly-object → readonly_object}/index.d.mts +0 -0
- /package/build/type/engine/{readonly-object → readonly_object}/index.mjs +0 -0
- /package/build/type/engine/record/{from-key-any.d.mts → from_key_any.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-boolean.d.mts → from_key_boolean.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-boolean.mjs → from_key_boolean.mjs} +0 -0
- /package/build/type/engine/record/{from-key-integer.d.mts → from_key_integer.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-literal.d.mts → from_key_literal.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-literal.mjs → from_key_literal.mjs} +0 -0
- /package/build/type/engine/record/{from-key-number.d.mts → from_key_number.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-string.d.mts → from_key_string.d.mts} +0 -0
- /package/build/type/engine/record/{from-key-union.d.mts → from_key_union.d.mts} +0 -0
- /package/build/type/engine/record/{record-create.d.mts → record_create.d.mts} +0 -0
- /package/build/type/engine/record/{record-create.mjs → record_create.mjs} +0 -0
- /package/build/type/engine/required/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/type/engine/required/{from-object.mjs → from_object.mjs} +0 -0
- /package/build/type/engine/{return-type → return_type}/index.d.mts +0 -0
- /package/build/type/engine/{return-type → return_type}/index.mjs +0 -0
- /package/build/type/engine/{template-literal → template_literal}/create.d.mts +0 -0
- /package/build/type/engine/{template-literal → template_literal}/create.mjs +0 -0
- /package/build/type/engine/{template-literal/is-finite.d.mts → template_literal/is_finite.d.mts} +0 -0
- /package/build/type/engine/{template-literal/is-finite.mjs → template_literal/is_finite.mjs} +0 -0
- /package/build/type/engine/{template-literal/is-pattern.d.mts → template_literal/is_pattern.d.mts} +0 -0
- /package/build/type/engine/{template-literal/is-pattern.mjs → template_literal/is_pattern.mjs} +0 -0
- /package/build/type/engine/{template-literal → template_literal}/static.d.mts +0 -0
- /package/build/type/engine/{template-literal → template_literal}/static.mjs +0 -0
- /package/build/type/engine/tuple/{to-object.d.mts → to_object.d.mts} +0 -0
- /package/build/type/engine/tuple/{to-object.mjs → to_object.mjs} +0 -0
- /package/build/type/types/{async-iterator.d.mts → async_iterator.d.mts} +0 -0
- /package/build/type/types/{async-iterator.mjs → async_iterator.mjs} +0 -0
- /package/build/value/clean/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/clean/{from-base.d.mts → from_base.d.mts} +0 -0
- /package/build/value/clean/{from-base.mjs → from_base.mjs} +0 -0
- /package/build/value/clean/{from-cyclic.d.mts → from_cyclic.d.mts} +0 -0
- /package/build/value/clean/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/clean/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/clean/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/clean/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/clean/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/clean/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/clean/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/codec/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/codec/{from-cyclic.d.mts → from_cyclic.d.mts} +0 -0
- /package/build/value/codec/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/codec/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/codec/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/codec/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/codec/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/codec/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/codec/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/convert/{from-additional.d.mts → from_additional.d.mts} +0 -0
- /package/build/value/convert/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/convert/{from-base.d.mts → from_base.d.mts} +0 -0
- /package/build/value/convert/{from-base.mjs → from_base.mjs} +0 -0
- /package/build/value/convert/{from-bigint.d.mts → from_bigint.d.mts} +0 -0
- /package/build/value/convert/{from-bigint.mjs → from_bigint.mjs} +0 -0
- /package/build/value/convert/{from-boolean.d.mts → from_boolean.d.mts} +0 -0
- /package/build/value/convert/{from-boolean.mjs → from_boolean.mjs} +0 -0
- /package/build/value/convert/{from-cyclic.d.mts → from_cyclic.d.mts} +0 -0
- /package/build/value/convert/{from-enum.d.mts → from_enum.d.mts} +0 -0
- /package/build/value/convert/{from-integer.d.mts → from_integer.d.mts} +0 -0
- /package/build/value/convert/{from-integer.mjs → from_integer.mjs} +0 -0
- /package/build/value/convert/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/convert/{from-literal.d.mts → from_literal.d.mts} +0 -0
- /package/build/value/convert/{from-literal.mjs → from_literal.mjs} +0 -0
- /package/build/value/convert/{from-null.d.mts → from_null.d.mts} +0 -0
- /package/build/value/convert/{from-null.mjs → from_null.mjs} +0 -0
- /package/build/value/convert/{from-number.d.mts → from_number.d.mts} +0 -0
- /package/build/value/convert/{from-number.mjs → from_number.mjs} +0 -0
- /package/build/value/convert/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/convert/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/convert/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/convert/{from-string.d.mts → from_string.d.mts} +0 -0
- /package/build/value/convert/{from-string.mjs → from_string.mjs} +0 -0
- /package/build/value/convert/{from-template-literal.d.mts → from_template_literal.d.mts} +0 -0
- /package/build/value/convert/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/convert/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/convert/{from-undefined.d.mts → from_undefined.d.mts} +0 -0
- /package/build/value/convert/{from-undefined.mjs → from_undefined.mjs} +0 -0
- /package/build/value/convert/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/convert/{from-void.d.mts → from_void.d.mts} +0 -0
- /package/build/value/convert/{from-void.mjs → from_void.mjs} +0 -0
- /package/build/value/convert/try/{try-result.d.mts → try_result.d.mts} +0 -0
- /package/build/value/convert/try/{try-result.mjs → try_result.mjs} +0 -0
- /package/build/value/create/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/create/{from-async-iterator.d.mts → from_async_iterator.d.mts} +0 -0
- /package/build/value/create/{from-async-iterator.mjs → from_async_iterator.mjs} +0 -0
- /package/build/value/create/{from-base.d.mts → from_base.d.mts} +0 -0
- /package/build/value/create/{from-base.mjs → from_base.mjs} +0 -0
- /package/build/value/create/{from-bigint.d.mts → from_bigint.d.mts} +0 -0
- /package/build/value/create/{from-bigint.mjs → from_bigint.mjs} +0 -0
- /package/build/value/create/{from-boolean.d.mts → from_boolean.d.mts} +0 -0
- /package/build/value/create/{from-boolean.mjs → from_boolean.mjs} +0 -0
- /package/build/value/create/{from-constructor.d.mts → from_constructor.d.mts} +0 -0
- /package/build/value/create/{from-cyclic.d.mts → from_cyclic.d.mts} +0 -0
- /package/build/value/create/{from-default.d.mts → from_default.d.mts} +0 -0
- /package/build/value/create/{from-default.mjs → from_default.mjs} +0 -0
- /package/build/value/create/{from-enum.d.mts → from_enum.d.mts} +0 -0
- /package/build/value/create/{from-function.d.mts → from_function.d.mts} +0 -0
- /package/build/value/create/{from-integer.d.mts → from_integer.d.mts} +0 -0
- /package/build/value/create/{from-integer.mjs → from_integer.mjs} +0 -0
- /package/build/value/create/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/create/{from-iterator.d.mts → from_iterator.d.mts} +0 -0
- /package/build/value/create/{from-iterator.mjs → from_iterator.mjs} +0 -0
- /package/build/value/create/{from-literal.d.mts → from_literal.d.mts} +0 -0
- /package/build/value/create/{from-literal.mjs → from_literal.mjs} +0 -0
- /package/build/value/create/{from-never.d.mts → from_never.d.mts} +0 -0
- /package/build/value/create/{from-never.mjs → from_never.mjs} +0 -0
- /package/build/value/create/{from-null.d.mts → from_null.d.mts} +0 -0
- /package/build/value/create/{from-null.mjs → from_null.mjs} +0 -0
- /package/build/value/create/{from-number.d.mts → from_number.d.mts} +0 -0
- /package/build/value/create/{from-number.mjs → from_number.mjs} +0 -0
- /package/build/value/create/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/create/{from-promise.d.mts → from_promise.d.mts} +0 -0
- /package/build/value/create/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/create/{from-record.mjs → from_record.mjs} +0 -0
- /package/build/value/create/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/create/{from-string.d.mts → from_string.d.mts} +0 -0
- /package/build/value/create/{from-string.mjs → from_string.mjs} +0 -0
- /package/build/value/create/{from-symbol.d.mts → from_symbol.d.mts} +0 -0
- /package/build/value/create/{from-symbol.mjs → from_symbol.mjs} +0 -0
- /package/build/value/create/{from-template-literal.d.mts → from_template_literal.d.mts} +0 -0
- /package/build/value/create/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/create/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/create/{from-undefined.d.mts → from_undefined.d.mts} +0 -0
- /package/build/value/create/{from-undefined.mjs → from_undefined.mjs} +0 -0
- /package/build/value/create/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/create/{from-void.d.mts → from_void.d.mts} +0 -0
- /package/build/value/create/{from-void.mjs → from_void.mjs} +0 -0
- /package/build/value/default/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/default/{from-base.d.mts → from_base.d.mts} +0 -0
- /package/build/value/default/{from-base.mjs → from_base.mjs} +0 -0
- /package/build/value/default/{from-cyclic.d.mts → from_cyclic.d.mts} +0 -0
- /package/build/value/default/{from-default.d.mts → from_default.d.mts} +0 -0
- /package/build/value/default/{from-default.mjs → from_default.mjs} +0 -0
- /package/build/value/default/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/default/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/default/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/default/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/default/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/default/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/default/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/mutate/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/mutate/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/mutate/{from-unknown.d.mts → from_unknown.d.mts} +0 -0
- /package/build/value/mutate/{from-unknown.mjs → from_unknown.mjs} +0 -0
- /package/build/value/mutate/{from-value.d.mts → from_value.d.mts} +0 -0
- /package/build/value/repair/{from-array.d.mts → from_array.d.mts} +0 -0
- /package/build/value/repair/{from-base.d.mts → from_base.d.mts} +0 -0
- /package/build/value/repair/{from-enum.d.mts → from_enum.d.mts} +0 -0
- /package/build/value/repair/{from-intersect.d.mts → from_intersect.d.mts} +0 -0
- /package/build/value/repair/{from-object.d.mts → from_object.d.mts} +0 -0
- /package/build/value/repair/{from-record.d.mts → from_record.d.mts} +0 -0
- /package/build/value/repair/{from-ref.d.mts → from_ref.d.mts} +0 -0
- /package/build/value/repair/{from-template-literal.d.mts → from_template_literal.d.mts} +0 -0
- /package/build/value/repair/{from-tuple.d.mts → from_tuple.d.mts} +0 -0
- /package/build/value/repair/{from-type.d.mts → from_type.d.mts} +0 -0
- /package/build/value/repair/{from-union.d.mts → from_union.d.mts} +0 -0
- /package/build/value/repair/{from-unknown.d.mts → from_unknown.d.mts} +0 -0
- /package/build/value/repair/{from-unknown.mjs → from_unknown.mjs} +0 -0
- /package/build/value/shared/{optional-undefined.d.mts → optional_undefined.d.mts} +0 -0
- /package/build/value/shared/{optional-undefined.mjs → optional_undefined.mjs} +0 -0
- /package/build/value/shared/{union-priority-sort.d.mts → union_priority_sort.d.mts} +0 -0
- /package/build/value/shared/{union-priority-sort.mjs → union_priority_sort.mjs} +0 -0
- /package/build/value/shared/{union-score-select.d.mts → union_score_select.d.mts} +0 -0
- /package/build/value/shared/{union-score-select.mjs → union_score_select.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../../types/properties.mjs';
|
|
3
|
-
import { type TFromType } from './
|
|
3
|
+
import { type TFromType } from './from_type.mjs';
|
|
4
4
|
import { type TCyclicTarget } from '../cyclic/target.mjs';
|
|
5
5
|
export type TFromCyclic<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends string[] = TFromType<Target>> = Result;
|
|
6
6
|
export declare function FromCyclic<Defs extends TProperties, Ref extends string>(defs: Defs, ref: Ref): TFromCyclic<Defs, Ref>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TEnumValue } from '../../types/enum.mjs';
|
|
3
|
-
import { type TEnumValuesToVariants } from '../enum/
|
|
4
|
-
import { type TFromUnion } from './
|
|
3
|
+
import { type TEnumValuesToVariants } from '../enum/enum_to_union.mjs';
|
|
4
|
+
import { type TFromUnion } from './from_union.mjs';
|
|
5
5
|
export type TFromEnum<Values extends TEnumValue[], Variants extends TSchema[] = TEnumValuesToVariants<Values>, Result extends string[] = TFromUnion<Variants>> = Result;
|
|
6
6
|
export declare function FromEnum<Values extends TEnumValue[]>(values: [...Values]): TFromEnum<Values>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { EnumValuesToVariants } from '../enum/
|
|
3
|
-
import { FromUnion } from './
|
|
2
|
+
import { EnumValuesToVariants } from '../enum/enum_to_union.mjs';
|
|
3
|
+
import { FromUnion } from './from_union.mjs';
|
|
4
4
|
export function FromEnum(values) {
|
|
5
5
|
const variants = EnumValuesToVariants(values);
|
|
6
6
|
const result = FromUnion(variants);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TEvaluateIntersect } from '../evaluate/evaluate.mjs';
|
|
3
|
-
import { type TFromType } from './
|
|
3
|
+
import { type TFromType } from './from_type.mjs';
|
|
4
4
|
export type TFromIntersect<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends string[] = TFromType<Evaluated>> = Result;
|
|
5
5
|
export declare function FromIntersect<Types extends TSchema[]>(types: [...Types]): TFromIntersect<Types>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { EvaluateIntersect } from '../evaluate/evaluate.mjs';
|
|
3
|
-
import { FromType } from './
|
|
3
|
+
import { FromType } from './from_type.mjs';
|
|
4
4
|
export function FromIntersect(types) {
|
|
5
5
|
const evaluated = EvaluateIntersect(types);
|
|
6
6
|
const result = FromType(evaluated);
|
package/build/type/engine/indexable/{from-template-literal.d.mts → from_template_literal.d.mts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
|
-
import { type TTemplateLiteralDecode } from '../
|
|
3
|
-
import { type TFromType } from './
|
|
2
|
+
import { type TTemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
3
|
+
import { type TFromType } from './from_type.mjs';
|
|
4
4
|
export type TFromTemplateLiteral<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends string[] = TFromType<Decoded>> = Result;
|
|
5
5
|
export declare function FromTemplateLiteral<Pattern extends string>(pattern: Pattern): TFromTemplateLiteral<Pattern>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { TemplateLiteralDecode } from '../
|
|
3
|
-
import { FromType } from './
|
|
2
|
+
import { TemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
3
|
+
import { FromType } from './from_type.mjs';
|
|
4
4
|
export function FromTemplateLiteral(pattern) {
|
|
5
5
|
const decoded = TemplateLiteralDecode(pattern);
|
|
6
6
|
const result = FromType(decoded);
|
|
@@ -4,14 +4,14 @@ import { type TEnum, type TEnumValue } from '../../types/enum.mjs';
|
|
|
4
4
|
import { type TIntersect } from '../../types/intersect.mjs';
|
|
5
5
|
import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
|
|
6
6
|
import { type TProperties } from '../../types/properties.mjs';
|
|
7
|
-
import { type TTemplateLiteral } from '../../types/
|
|
7
|
+
import { type TTemplateLiteral } from '../../types/template_literal.mjs';
|
|
8
8
|
import { type TUnion } from '../../types/union.mjs';
|
|
9
|
-
import { type TFromCyclic } from './
|
|
10
|
-
import { type TFromEnum } from './
|
|
11
|
-
import { type TFromIntersect } from './
|
|
12
|
-
import { type TFromLiteral } from './
|
|
13
|
-
import { type TFromTemplateLiteral } from './
|
|
14
|
-
import { type TFromUnion } from './
|
|
9
|
+
import { type TFromCyclic } from './from_cyclic.mjs';
|
|
10
|
+
import { type TFromEnum } from './from_enum.mjs';
|
|
11
|
+
import { type TFromIntersect } from './from_intersect.mjs';
|
|
12
|
+
import { type TFromLiteral } from './from_literal.mjs';
|
|
13
|
+
import { type TFromTemplateLiteral } from './from_template_literal.mjs';
|
|
14
|
+
import { type TFromUnion } from './from_union.mjs';
|
|
15
15
|
export type TFromType<Indexer extends TSchema, Result extends string[] = (Indexer extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Indexer extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<Values> : Indexer extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect<Types> : Indexer extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral<Value> : Indexer extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Pattern> : Indexer extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : [
|
|
16
16
|
])> = Result;
|
|
17
17
|
export declare function FromType<Indexer extends TSchema>(type: Indexer): TFromType<Indexer>;
|
|
@@ -3,14 +3,14 @@ import { IsCyclic } from '../../types/cyclic.mjs';
|
|
|
3
3
|
import { IsEnum } from '../../types/enum.mjs';
|
|
4
4
|
import { IsIntersect } from '../../types/intersect.mjs';
|
|
5
5
|
import { IsLiteral } from '../../types/literal.mjs';
|
|
6
|
-
import { IsTemplateLiteral } from '../../types/
|
|
6
|
+
import { IsTemplateLiteral } from '../../types/template_literal.mjs';
|
|
7
7
|
import { IsUnion } from '../../types/union.mjs';
|
|
8
|
-
import { FromCyclic } from './
|
|
9
|
-
import { FromEnum } from './
|
|
10
|
-
import { FromIntersect } from './
|
|
11
|
-
import { FromLiteral } from './
|
|
12
|
-
import { FromTemplateLiteral } from './
|
|
13
|
-
import { FromUnion } from './
|
|
8
|
+
import { FromCyclic } from './from_cyclic.mjs';
|
|
9
|
+
import { FromEnum } from './from_enum.mjs';
|
|
10
|
+
import { FromIntersect } from './from_intersect.mjs';
|
|
11
|
+
import { FromLiteral } from './from_literal.mjs';
|
|
12
|
+
import { FromTemplateLiteral } from './from_template_literal.mjs';
|
|
13
|
+
import { FromUnion } from './from_union.mjs';
|
|
14
14
|
export function FromType(type) {
|
|
15
15
|
return (IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) :
|
|
16
16
|
IsEnum(type) ? FromEnum(type.enum) :
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
|
-
import { type TFromType } from './
|
|
2
|
+
import { type TFromType } from './from_type.mjs';
|
|
3
3
|
export type TFromUnion<Types extends TSchema[], Result extends string[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, ...TFromType<Left>]> : Result);
|
|
4
4
|
export declare function FromUnion<Types extends TSchema[]>(types: [...Types]): TFromUnion<Types>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
|
-
import { type TFromType } from './
|
|
2
|
+
import { type TFromType } from './from_type.mjs';
|
|
3
3
|
export type TToIndexableKeys<Indexer extends TSchema, Result extends string[] = TFromType<Indexer>> = Result;
|
|
4
4
|
/**
|
|
5
5
|
* Transforms a type meant as an Indexer into string[] array which is used by Indexable types
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { FromType } from './
|
|
2
|
+
import { FromType } from './from_type.mjs';
|
|
3
3
|
/**
|
|
4
4
|
* Transforms a type meant as an Indexer into string[] array which is used by Indexable types
|
|
5
5
|
* like Index, Pick and Omit to select from property keys. This function should only be used
|
|
@@ -4,8 +4,8 @@ import { type TNumber } from '../../types/number.mjs';
|
|
|
4
4
|
import { type TNever } from '../../types/never.mjs';
|
|
5
5
|
import { type TPropertyKeys } from '../../types/properties.mjs';
|
|
6
6
|
import { type TEvaluateUnion } from '../evaluate/evaluate.mjs';
|
|
7
|
-
import { type TToIndexableKeys } from '../indexable/
|
|
8
|
-
import { type TExpandThis } from '../this/
|
|
7
|
+
import { type TToIndexableKeys } from '../indexable/to_indexable_keys.mjs';
|
|
8
|
+
import { type TExpandThis } from '../this/expand_this.mjs';
|
|
9
9
|
type TIndexProperty<Properties extends TProperties, Key extends string, CanonicalKey extends string = keyof Properties extends string | number ? `${keyof Properties}` : never, SelectedType extends TSchema = Key extends CanonicalKey ? Properties[Key] : TNever, Result extends TSchema = TExpandThis<Properties, SelectedType>> = Result;
|
|
10
10
|
type TIndexProperties<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TIndexProperties<Properties, Right, [...Result, TIndexProperty<Properties, Left>]> : Result);
|
|
11
11
|
type TFromIndexer<Properties extends TProperties, Indexer extends TSchema, Keys extends string[] = TToIndexableKeys<Indexer>, Variants extends TSchema[] = TIndexProperties<Properties, Keys>, Result extends TSchema = TEvaluateUnion<Variants>> = Result;
|
|
@@ -3,9 +3,9 @@ import { IsNumber } from '../../types/number.mjs';
|
|
|
3
3
|
import { Never } from '../../types/never.mjs';
|
|
4
4
|
import { PropertyKeys } from '../../types/properties.mjs';
|
|
5
5
|
import { EvaluateUnion } from '../evaluate/evaluate.mjs';
|
|
6
|
-
import { ToIndexableKeys } from '../indexable/
|
|
6
|
+
import { ToIndexableKeys } from '../indexable/to_indexable_keys.mjs';
|
|
7
7
|
import { IntegerKey } from '../../types/record.mjs';
|
|
8
|
-
import { ExpandThis } from '../this/
|
|
8
|
+
import { ExpandThis } from '../this/expand_this.mjs';
|
|
9
9
|
function IndexProperty(properties, key) {
|
|
10
10
|
const selectedType = key in properties ? properties[key] : Never();
|
|
11
11
|
const result = ExpandThis(properties, selectedType);
|
|
@@ -4,7 +4,7 @@ import { type TNumber } from '../../types/number.mjs';
|
|
|
4
4
|
import { type TInteger } from '../../types/integer.mjs';
|
|
5
5
|
import { type TEvaluateUnionFast } from '../evaluate/evaluate.mjs';
|
|
6
6
|
import { type TExtends, ExtendsResult } from '../../extends/index.mjs';
|
|
7
|
-
import { type TFormatArrayIndexer } from './
|
|
7
|
+
import { type TFormatArrayIndexer } from './array_indexer.mjs';
|
|
8
8
|
type TIndexElementsWithIndexer<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TExtends<{}, TLiteral<Left['length']>, Indexer> extends ExtendsResult.TExtendsTrueLike ? TIndexElementsWithIndexer<Left, Indexer, [Right, ...Result]> : TIndexElementsWithIndexer<Left, Indexer, Result> : Result);
|
|
9
9
|
type TFromTupleWithIndexer<Types extends TSchema[], Indexer extends TSchema, ArrayIndexer extends TSchema = TFormatArrayIndexer<Indexer>, Elements extends TSchema[] = TIndexElementsWithIndexer<Types, ArrayIndexer>, Result extends TSchema = TEvaluateUnionFast<Elements>> = Result;
|
|
10
10
|
type TFromTupleWithoutIndexer<Types extends TSchema[], Result extends TSchema = TEvaluateUnionFast<Types>> = Result;
|
|
@@ -6,7 +6,7 @@ import { IsNumber } from '../../types/number.mjs';
|
|
|
6
6
|
import { IsInteger } from '../../types/integer.mjs';
|
|
7
7
|
import { EvaluateUnionFast } from '../evaluate/evaluate.mjs';
|
|
8
8
|
import { Extends, ExtendsResult } from '../../extends/index.mjs';
|
|
9
|
-
import { FormatArrayIndexer } from './
|
|
9
|
+
import { FormatArrayIndexer } from './array_indexer.mjs';
|
|
10
10
|
function IndexElementsWithIndexer(types, indexer) {
|
|
11
11
|
return types.reduceRight((result, right, index) => {
|
|
12
12
|
const check = Extends({}, Literal(index), indexer);
|
|
@@ -4,8 +4,8 @@ import { type TNever } from '../../types/never.mjs';
|
|
|
4
4
|
import { type TProperties } from '../../types/properties.mjs';
|
|
5
5
|
import { type TObject } from '../../types/object.mjs';
|
|
6
6
|
import { type TTuple } from '../../types/tuple.mjs';
|
|
7
|
-
import { type TFromArray } from './
|
|
8
|
-
import { type TFromObject } from './
|
|
9
|
-
import { type TFromTuple } from './
|
|
7
|
+
import { type TFromArray } from './from_array.mjs';
|
|
8
|
+
import { type TFromObject } from './from_object.mjs';
|
|
9
|
+
import { type TFromTuple } from './from_tuple.mjs';
|
|
10
10
|
export type TFromType<Type extends TSchema, Indexer extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray<Type, Indexer> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties, Indexer> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types, Indexer> : TNever);
|
|
11
11
|
export declare function FromType<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer): TFromType<Type, Indexer>;
|
|
@@ -3,9 +3,9 @@ import { IsArray } from '../../types/array.mjs';
|
|
|
3
3
|
import { Never } from '../../types/never.mjs';
|
|
4
4
|
import { IsObject } from '../../types/object.mjs';
|
|
5
5
|
import { IsTuple } from '../../types/tuple.mjs';
|
|
6
|
-
import { FromArray } from './
|
|
7
|
-
import { FromObject } from './
|
|
8
|
-
import { FromTuple } from './
|
|
6
|
+
import { FromArray } from './from_array.mjs';
|
|
7
|
+
import { FromObject } from './from_object.mjs';
|
|
8
|
+
import { FromTuple } from './from_tuple.mjs';
|
|
9
9
|
export function FromType(type, indexer) {
|
|
10
10
|
return (IsArray(type) ? FromArray(type.items, indexer) :
|
|
11
11
|
IsObject(type) ? FromObject(type.properties, indexer) :
|
|
@@ -6,7 +6,7 @@ import { type TUnion } from '../../types/union.mjs';
|
|
|
6
6
|
import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
|
|
7
7
|
import { type TIndexDeferred } from '../../action/indexed.mjs';
|
|
8
8
|
import { type TCollapseToObject } from '../object/index.mjs';
|
|
9
|
-
import { type TFromType } from './
|
|
9
|
+
import { type TFromType } from './from_type.mjs';
|
|
10
10
|
type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic | TIntersect | TUnion ? TCollapseToObject<Type> : Type)> = Result;
|
|
11
11
|
export type TIndexAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType<TNormalizeType<Type>, Indexer> : TIndexDeferred<Type, Indexer>> = Result;
|
|
12
12
|
export declare function IndexAction<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options: TSchemaOptions): TIndexAction<Type, Indexer>;
|
|
@@ -6,7 +6,7 @@ import { IsUnion } from '../../types/union.mjs';
|
|
|
6
6
|
import { InstantiateType, CanInstantiate } from '../instantiate.mjs';
|
|
7
7
|
import { IndexDeferred } from '../../action/indexed.mjs';
|
|
8
8
|
import { CollapseToObject } from '../object/index.mjs';
|
|
9
|
-
import { FromType } from './
|
|
9
|
+
import { FromType } from './from_type.mjs';
|
|
10
10
|
function NormalizeType(type) {
|
|
11
11
|
const result = (IsCyclic(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) :
|
|
12
12
|
type);
|
|
@@ -2,7 +2,7 @@ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
|
|
|
2
2
|
import { type TProperties } from '../../types/properties.mjs';
|
|
3
3
|
import { type TConstructor } from '../../types/constructor.mjs';
|
|
4
4
|
import { type TNever } from '../../types/never.mjs';
|
|
5
|
-
import { type TInstanceTypeDeferred } from '../../action/
|
|
5
|
+
import { type TInstanceTypeDeferred } from '../../action/instance_type.mjs';
|
|
6
6
|
import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
|
|
7
7
|
type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
|
|
8
8
|
export type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>> = Result;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Memory } from '../../../system/memory/index.mjs';
|
|
3
3
|
import { IsConstructor } from '../../types/constructor.mjs';
|
|
4
4
|
import { Never } from '../../types/never.mjs';
|
|
5
|
-
import { InstanceTypeDeferred } from '../../action/
|
|
5
|
+
import { InstanceTypeDeferred } from '../../action/instance_type.mjs';
|
|
6
6
|
import { InstantiateType, CanInstantiate } from '../instantiate.mjs';
|
|
7
7
|
function InstanceTypeOperation(type) {
|
|
8
8
|
return (IsConstructor(type)
|
|
@@ -3,7 +3,7 @@ import { type TOptional, type TOptionalAdd, type TOptionalRemove } from '../type
|
|
|
3
3
|
import { type TReadonly, type TReadonlyAdd, type TReadonlyRemove } from '../types/_readonly.mjs';
|
|
4
4
|
import { type TSchema } from '../types/schema.mjs';
|
|
5
5
|
import { type TArray } from '../types/array.mjs';
|
|
6
|
-
import { type TAsyncIterator } from '../types/
|
|
6
|
+
import { type TAsyncIterator } from '../types/async_iterator.mjs';
|
|
7
7
|
import { type TConstructor } from '../types/constructor.mjs';
|
|
8
8
|
import { type TDeferred } from '../types/deferred.mjs';
|
|
9
9
|
import { type TFunction } from '../types/function.mjs';
|
|
@@ -25,29 +25,29 @@ import { type TAwaitedInstantiate } from './awaited/instantiate.mjs';
|
|
|
25
25
|
import { type TCallInstantiate } from './call/instantiate.mjs';
|
|
26
26
|
import { type TCapitalizeInstantiate } from './intrinsics/instantiate.mjs';
|
|
27
27
|
import { type TConditionalInstantiate } from './conditional/index.mjs';
|
|
28
|
-
import { type TConstructorParametersInstantiate } from './
|
|
28
|
+
import { type TConstructorParametersInstantiate } from './constructor_parameters/instantiate.mjs';
|
|
29
29
|
import { type TEvaluateInstantiate } from './evaluate/instantiate.mjs';
|
|
30
30
|
import { type TExcludeInstantiate } from './exclude/instantiate.mjs';
|
|
31
31
|
import { type TExtractInstantiate } from './extract/instantiate.mjs';
|
|
32
32
|
import { type TIndexInstantiate } from './indexed/instantiate.mjs';
|
|
33
|
-
import { type TInstanceTypeInstantiate } from './
|
|
33
|
+
import { type TInstanceTypeInstantiate } from './instance_type/instantiate.mjs';
|
|
34
34
|
import { type TInterfaceInstantiate } from './interface/instantiate.mjs';
|
|
35
35
|
import { type TKeyOfInstantiate } from './keyof/instantiate.mjs';
|
|
36
36
|
import { type TLowercaseInstantiate } from './intrinsics/instantiate.mjs';
|
|
37
37
|
import { type TMappedInstantiate } from './mapped/instantiate.mjs';
|
|
38
38
|
import { type TModuleInstantiate } from './module/instantiate.mjs';
|
|
39
|
-
import { type TNonNullableInstantiate } from './
|
|
39
|
+
import { type TNonNullableInstantiate } from './non_nullable/instantiate.mjs';
|
|
40
40
|
import { type TOmitInstantiate } from './omit/instantiate.mjs';
|
|
41
41
|
import { type TOptionsInstantiate } from './options/instantiate.mjs';
|
|
42
42
|
import { type TParametersInstantiate } from './parameters/instantiate.mjs';
|
|
43
43
|
import { type TPartialInstantiate } from './partial/instantiate.mjs';
|
|
44
44
|
import { type TPickInstantiate } from './pick/instantiate.mjs';
|
|
45
|
-
import { type TReadonlyObjectInstantiate } from './
|
|
45
|
+
import { type TReadonlyObjectInstantiate } from './readonly_object/instantiate.mjs';
|
|
46
46
|
import { type TRecordInstantiate } from './record/instantiate.mjs';
|
|
47
47
|
import { type TRefInstantiate } from './ref/instantiate.mjs';
|
|
48
48
|
import { type TRequiredInstantiate } from './required/instantiate.mjs';
|
|
49
|
-
import { type TReturnTypeInstantiate } from './
|
|
50
|
-
import { type TTemplateLiteralInstantiate } from './
|
|
49
|
+
import { type TReturnTypeInstantiate } from './return_type/instantiate.mjs';
|
|
50
|
+
import { type TTemplateLiteralInstantiate } from './template_literal/instantiate.mjs';
|
|
51
51
|
import { type TUncapitalizeInstantiate } from './intrinsics/instantiate.mjs';
|
|
52
52
|
import { type TUppercaseInstantiate } from './intrinsics/instantiate.mjs';
|
|
53
53
|
import { type TRestSpread } from './rest/index.mjs';
|
|
@@ -12,7 +12,7 @@ import { IsReadonly, ReadonlyAdd, ReadonlyRemove } from '../types/_readonly.mjs'
|
|
|
12
12
|
// ------------------------------------------------------------------
|
|
13
13
|
import { IsBase } from '../types/base.mjs';
|
|
14
14
|
import { _Array_, IsArray, ArrayOptions } from '../types/array.mjs';
|
|
15
|
-
import { AsyncIterator, IsAsyncIterator, AsyncIteratorOptions } from '../types/
|
|
15
|
+
import { AsyncIterator, IsAsyncIterator, AsyncIteratorOptions } from '../types/async_iterator.mjs';
|
|
16
16
|
import { Constructor, IsConstructor, ConstructorOptions } from '../types/constructor.mjs';
|
|
17
17
|
import { Deferred, IsDeferred } from '../types/deferred.mjs';
|
|
18
18
|
import { _Function_, IsFunction, FunctionOptions } from '../types/function.mjs';
|
|
@@ -38,29 +38,29 @@ import { AwaitedInstantiate } from './awaited/instantiate.mjs';
|
|
|
38
38
|
import { CallInstantiate } from './call/instantiate.mjs';
|
|
39
39
|
import { CapitalizeInstantiate } from './intrinsics/instantiate.mjs';
|
|
40
40
|
import { ConditionalInstantiate } from './conditional/index.mjs';
|
|
41
|
-
import { ConstructorParametersInstantiate } from './
|
|
41
|
+
import { ConstructorParametersInstantiate } from './constructor_parameters/instantiate.mjs';
|
|
42
42
|
import { EvaluateInstantiate } from './evaluate/instantiate.mjs';
|
|
43
43
|
import { ExcludeInstantiate } from './exclude/instantiate.mjs';
|
|
44
44
|
import { ExtractInstantiate } from './extract/instantiate.mjs';
|
|
45
45
|
import { IndexInstantiate } from './indexed/instantiate.mjs';
|
|
46
|
-
import { InstanceTypeInstantiate } from './
|
|
46
|
+
import { InstanceTypeInstantiate } from './instance_type/instantiate.mjs';
|
|
47
47
|
import { InterfaceInstantiate } from './interface/instantiate.mjs';
|
|
48
48
|
import { KeyOfInstantiate } from './keyof/instantiate.mjs';
|
|
49
49
|
import { LowercaseInstantiate } from './intrinsics/instantiate.mjs';
|
|
50
50
|
import { MappedInstantiate } from './mapped/instantiate.mjs';
|
|
51
51
|
import { ModuleInstantiate } from './module/instantiate.mjs';
|
|
52
|
-
import { NonNullableInstantiate } from './
|
|
52
|
+
import { NonNullableInstantiate } from './non_nullable/instantiate.mjs';
|
|
53
53
|
import { OmitInstantiate } from './omit/instantiate.mjs';
|
|
54
54
|
import { OptionsInstantiate } from './options/instantiate.mjs';
|
|
55
55
|
import { ParametersInstantiate } from './parameters/instantiate.mjs';
|
|
56
56
|
import { PartialInstantiate } from './partial/instantiate.mjs';
|
|
57
57
|
import { PickInstantiate } from './pick/instantiate.mjs';
|
|
58
|
-
import { ReadonlyObjectInstantiate } from './
|
|
58
|
+
import { ReadonlyObjectInstantiate } from './readonly_object/instantiate.mjs';
|
|
59
59
|
import { RecordInstantiate } from './record/instantiate.mjs';
|
|
60
60
|
import { RefInstantiate } from './ref/instantiate.mjs';
|
|
61
61
|
import { RequiredInstantiate } from './required/instantiate.mjs';
|
|
62
|
-
import { ReturnTypeInstantiate } from './
|
|
63
|
-
import { TemplateLiteralInstantiate } from './
|
|
62
|
+
import { ReturnTypeInstantiate } from './return_type/instantiate.mjs';
|
|
63
|
+
import { TemplateLiteralInstantiate } from './template_literal/instantiate.mjs';
|
|
64
64
|
import { UncapitalizeInstantiate } from './intrinsics/instantiate.mjs';
|
|
65
65
|
import { UppercaseInstantiate } from './intrinsics/instantiate.mjs';
|
|
66
66
|
import { RestSpread } from './rest/index.mjs';
|
package/build/type/engine/intrinsics/{from-template-literal.d.mts → from_template_literal.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TMappingType, type TMappingFunc } from './mapping.mjs';
|
|
3
|
-
import { type TTemplateLiteralDecode } from '../
|
|
4
|
-
import { type TFromType } from './
|
|
3
|
+
import { type TTemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
4
|
+
import { type TFromType } from './from_type.mjs';
|
|
5
5
|
export type TFromTemplateLiteral<Mapping extends TMappingType, Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema = TFromType<Mapping, Decoded>> = Result;
|
|
6
6
|
export declare function FromTemplateLiteral(mapping: TMappingFunc, pattern: string): TSchema;
|
package/build/type/engine/intrinsics/{from-template-literal.mjs → from_template_literal.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { TemplateLiteralDecode } from '../
|
|
3
|
-
import { FromType } from './
|
|
2
|
+
import { TemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
3
|
+
import { FromType } from './from_type.mjs';
|
|
4
4
|
export function FromTemplateLiteral(mapping, pattern) {
|
|
5
5
|
const decoded = TemplateLiteralDecode(pattern);
|
|
6
6
|
const result = FromType(mapping, decoded);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
|
|
3
|
-
import { type TTemplateLiteral } from '../../types/
|
|
3
|
+
import { type TTemplateLiteral } from '../../types/template_literal.mjs';
|
|
4
4
|
import { type TUnion } from '../../types/union.mjs';
|
|
5
5
|
import { type TMappingType, type TMappingFunc } from './mapping.mjs';
|
|
6
|
-
import { type TFromLiteral } from './
|
|
7
|
-
import { type TFromTemplateLiteral } from './
|
|
8
|
-
import { type TFromUnion } from './
|
|
6
|
+
import { type TFromLiteral } from './from_literal.mjs';
|
|
7
|
+
import { type TFromTemplateLiteral } from './from_template_literal.mjs';
|
|
8
|
+
import { type TFromUnion } from './from_union.mjs';
|
|
9
9
|
export type TFromType<Mapping extends TMappingType, Type extends TSchema> = (Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral<Mapping, Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Mapping, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Mapping, Types> : Type);
|
|
10
10
|
export declare function FromType(mapping: TMappingFunc, type: TSchema): TSchema;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsLiteral } from '../../types/literal.mjs';
|
|
3
|
-
import { IsTemplateLiteral } from '../../types/
|
|
3
|
+
import { IsTemplateLiteral } from '../../types/template_literal.mjs';
|
|
4
4
|
import { IsUnion } from '../../types/union.mjs';
|
|
5
|
-
import { FromLiteral } from './
|
|
6
|
-
import { FromTemplateLiteral } from './
|
|
7
|
-
import { FromUnion } from './
|
|
5
|
+
import { FromLiteral } from './from_literal.mjs';
|
|
6
|
+
import { FromTemplateLiteral } from './from_template_literal.mjs';
|
|
7
|
+
import { FromUnion } from './from_union.mjs';
|
|
8
8
|
export function FromType(mapping, type) {
|
|
9
9
|
return (IsLiteral(type) ? FromLiteral(mapping, type.const) :
|
|
10
10
|
IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) :
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/schema.mjs';
|
|
2
2
|
import { type TUnion } from '../../types/union.mjs';
|
|
3
3
|
import { type TMappingType, type TMappingFunc } from './mapping.mjs';
|
|
4
|
-
import { type TFromType } from './
|
|
4
|
+
import { type TFromType } from './from_type.mjs';
|
|
5
5
|
export type TFromUnion<Mapping extends TMappingType, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Mapping, Right, [...Result, TFromType<Mapping, Left>]> : TUnion<Result>);
|
|
6
6
|
export declare function FromUnion(mapping: TMappingFunc, types: TSchema[]): TSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Union } from '../../types/union.mjs';
|
|
3
|
-
import { FromType } from './
|
|
3
|
+
import { FromType } from './from_type.mjs';
|
|
4
4
|
export function FromUnion(mapping, types) {
|
|
5
5
|
const result = types.map(type => FromType(mapping, type));
|
|
6
6
|
return Union(result);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../../types/properties.mjs';
|
|
3
3
|
import { type TMappingType } from './mapping.mjs';
|
|
4
|
-
import { type TFromType } from './
|
|
4
|
+
import { type TFromType } from './from_type.mjs';
|
|
5
5
|
import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
|
|
6
6
|
import { type TCapitalizeDeferred } from '../../action/capitalize.mjs';
|
|
7
7
|
import { type TLowercaseDeferred } from '../../action/lowercase.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Memory } from '../../../system/memory/index.mjs';
|
|
3
|
-
import { FromType } from './
|
|
3
|
+
import { FromType } from './from_type.mjs';
|
|
4
4
|
import { InstantiateType, CanInstantiate } from '../instantiate.mjs';
|
|
5
5
|
import { CapitalizeDeferred } from '../../action/capitalize.mjs';
|
|
6
6
|
import { LowercaseDeferred } from '../../action/lowercase.mjs';
|
|
@@ -6,10 +6,10 @@ import { type TNever } from '../../types/never.mjs';
|
|
|
6
6
|
import { type TObject } from '../../types/object.mjs';
|
|
7
7
|
import { type TRecord } from '../../types/record.mjs';
|
|
8
8
|
import { type TTuple } from '../../types/tuple.mjs';
|
|
9
|
-
import { type TFromAny } from './
|
|
10
|
-
import { type TFromArray } from './
|
|
11
|
-
import { type TFromObject } from './
|
|
12
|
-
import { type TFromRecord } from './
|
|
13
|
-
import { type TFromTuple } from './
|
|
9
|
+
import { type TFromAny } from './from_any.mjs';
|
|
10
|
+
import { type TFromArray } from './from_array.mjs';
|
|
11
|
+
import { type TFromObject } from './from_object.mjs';
|
|
12
|
+
import { type TFromRecord } from './from_record.mjs';
|
|
13
|
+
import { type TFromTuple } from './from_tuple.mjs';
|
|
14
14
|
export type TFromType<Type extends TSchema> = (Type extends TAny ? TFromAny : Type extends TArray<infer Type extends TSchema> ? TFromArray<Type> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties> : Type extends TRecord ? TFromRecord<Type> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types> : TNever);
|
|
15
15
|
export declare function FromType<Type extends TSchema>(type: Type): TFromType<Type>;
|
|
@@ -8,11 +8,11 @@ import { IsTuple } from '../../types/tuple.mjs';
|
|
|
8
8
|
// ------------------------------------------------------------------
|
|
9
9
|
// Computed
|
|
10
10
|
// ------------------------------------------------------------------
|
|
11
|
-
import { FromAny } from './
|
|
12
|
-
import { FromArray } from './
|
|
13
|
-
import { FromObject } from './
|
|
14
|
-
import { FromRecord } from './
|
|
15
|
-
import { FromTuple } from './
|
|
11
|
+
import { FromAny } from './from_any.mjs';
|
|
12
|
+
import { FromArray } from './from_array.mjs';
|
|
13
|
+
import { FromObject } from './from_object.mjs';
|
|
14
|
+
import { FromRecord } from './from_record.mjs';
|
|
15
|
+
import { FromTuple } from './from_tuple.mjs';
|
|
16
16
|
export function FromType(type) {
|
|
17
17
|
return (IsAny(type) ? FromAny() :
|
|
18
18
|
IsArray(type) ? FromArray(type.items) :
|
|
@@ -6,7 +6,7 @@ import { type TUnion } from '../../types/union.mjs';
|
|
|
6
6
|
import { type TKeyOfDeferred } from '../../action/keyof.mjs';
|
|
7
7
|
import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
|
|
8
8
|
import { type TCollapseToObject } from '../object/index.mjs';
|
|
9
|
-
import { type TFromType } from './
|
|
9
|
+
import { type TFromType } from './from_type.mjs';
|
|
10
10
|
type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic | TIntersect | TUnion ? TCollapseToObject<Type> : Type)> = Result;
|
|
11
11
|
export type TKeyOfAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TNormalizeType<Type>> : TKeyOfDeferred<Type>> = Result;
|
|
12
12
|
export declare function KeyOfAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TKeyOfAction<Type>;
|
|
@@ -9,7 +9,7 @@ import { CollapseToObject } from '../object/index.mjs';
|
|
|
9
9
|
// ------------------------------------------------------------------
|
|
10
10
|
// Computed
|
|
11
11
|
// ------------------------------------------------------------------
|
|
12
|
-
import { FromType } from './
|
|
12
|
+
import { FromType } from './from_type.mjs';
|
|
13
13
|
function NormalizeType(type) {
|
|
14
14
|
const result = (IsCyclic(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type);
|
|
15
15
|
return result;
|
|
@@ -3,7 +3,7 @@ import { type TProperties } from '../../types/properties.mjs';
|
|
|
3
3
|
import { type TIdentifier } from '../../types/identifier.mjs';
|
|
4
4
|
import { type TMappedDeferred } from '../../action/mapped.mjs';
|
|
5
5
|
import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
|
|
6
|
-
import { type TMappedOperation } from './
|
|
6
|
+
import { type TMappedOperation } from './mapped_operation.mjs';
|
|
7
7
|
export type TMappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TMappedOperation<Context, State, Identifier, Type, As, Property> : TMappedDeferred<Identifier, Type, As, Property>> = Result;
|
|
8
8
|
export declare function MappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(context: Context, state: State, identifier: Identifier, type: Type, as: As, property: Property, options: TSchemaOptions): TMappedAction<Context, State, Identifier, Type, As, Property>;
|
|
9
9
|
export type TMappedInstantiate<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, InstaniatedType extends TSchema = TInstantiateType<Context, State, Type>> = TMappedAction<Context, State, Identifier, InstaniatedType, As, Property>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Memory } from '../../../system/memory/index.mjs';
|
|
3
3
|
import { MappedDeferred } from '../../action/mapped.mjs';
|
|
4
4
|
import { InstantiateType, CanInstantiate } from '../instantiate.mjs';
|
|
5
|
-
import { MappedOperation } from './
|
|
5
|
+
import { MappedOperation } from './mapped_operation.mjs';
|
|
6
6
|
export function MappedAction(context, state, identifier, type, as, property, options) {
|
|
7
7
|
const result = CanInstantiate([type])
|
|
8
8
|
? Memory.Update(MappedOperation(context, state, identifier, type, as, property), {}, options)
|
|
@@ -4,11 +4,11 @@ import { type TLiteral } from '../../types/literal.mjs';
|
|
|
4
4
|
import { type TObject } from '../../types/object.mjs';
|
|
5
5
|
import { type TProperties } from '../../types/properties.mjs';
|
|
6
6
|
import { type TIdentifier } from '../../types/identifier.mjs';
|
|
7
|
-
import { type TTemplateLiteral } from '../../types/
|
|
8
|
-
import { type TTemplateLiteralDecode } from '../
|
|
7
|
+
import { type TTemplateLiteral } from '../../types/template_literal.mjs';
|
|
8
|
+
import { type TTemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
9
9
|
import { type TState, type TInstantiateType } from '../instantiate.mjs';
|
|
10
10
|
import { type TEvaluateIntersect } from '../evaluate/index.mjs';
|
|
11
|
-
import { type TMappedVariants } from './
|
|
11
|
+
import { type TMappedVariants } from './mapped_variants.mjs';
|
|
12
12
|
type TCanonicalAs<InstantiatedAs extends TSchema, Result extends TSchema = InstantiatedAs extends TTemplateLiteral<infer Pattern extends string> ? TTemplateLiteralDecode<Pattern> : InstantiatedAs> = Result;
|
|
13
13
|
type TMappedVariant<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variant extends TSchema, As extends TSchema, Property extends TSchema, VariantContext extends TProperties = Memory.TAssign<Context, {
|
|
14
14
|
[_ in Identifier['name']]: Variant;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { Memory } from '../../../system/memory/index.mjs';
|
|
4
4
|
import { IsLiteralNumber, IsLiteralString } from '../../types/literal.mjs';
|
|
5
5
|
import { Object } from '../../types/object.mjs';
|
|
6
|
-
import { IsTemplateLiteral } from '../../types/
|
|
7
|
-
import { TemplateLiteralDecode } from '../
|
|
6
|
+
import { IsTemplateLiteral } from '../../types/template_literal.mjs';
|
|
7
|
+
import { TemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
8
8
|
import { InstantiateType } from '../instantiate.mjs';
|
|
9
9
|
import { EvaluateIntersect } from '../evaluate/index.mjs';
|
|
10
|
-
import { MappedVariants } from './
|
|
10
|
+
import { MappedVariants } from './mapped_variants.mjs';
|
|
11
11
|
function CanonicalAs(instantiatedAs) {
|
|
12
12
|
const result = IsTemplateLiteral(instantiatedAs)
|
|
13
13
|
? TemplateLiteralDecode(instantiatedAs.pattern)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type TSchema } from '../../types/index.mjs';
|
|
2
2
|
import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
|
|
3
3
|
import { type TEnum, type TEnumValue } from '../../types/enum.mjs';
|
|
4
|
-
import { type TTemplateLiteral } from '../../types/
|
|
4
|
+
import { type TTemplateLiteral } from '../../types/template_literal.mjs';
|
|
5
5
|
import { type TUnion } from '../../types/union.mjs';
|
|
6
6
|
import { type TEnumValuesToVariants } from '../enum/index.mjs';
|
|
7
|
-
import { type TTemplateLiteralDecode } from '../
|
|
7
|
+
import { type TTemplateLiteralDecode } from '../template_literal/decode.mjs';
|
|
8
8
|
type TFromTemplateLiteral<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema[] = TFromType<Decoded>> = Result;
|
|
9
9
|
type TFromUnion<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, ...TFromType<Left>]> : Result);
|
|
10
10
|
type TFromLiteral<Value extends TLiteralValue, Result extends TSchema[] = Value extends number ? [TLiteral<`${Value}`>] : [TLiteral<Value>]> = Result;
|