typebox 1.1.32 → 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/system/locale/_config.d.mts +1 -1
- package/build/system/locale/ar_001.d.mts +1 -1
- package/build/system/locale/bn_BD.d.mts +1 -1
- package/build/system/locale/cs_CZ.d.mts +1 -1
- package/build/system/locale/de_DE.d.mts +1 -1
- package/build/system/locale/el_GR.d.mts +1 -1
- package/build/system/locale/en_US.d.mts +1 -1
- package/build/system/locale/es_419.d.mts +1 -1
- package/build/system/locale/es_AR.d.mts +1 -1
- package/build/system/locale/es_ES.d.mts +1 -1
- package/build/system/locale/es_MX.d.mts +1 -1
- package/build/system/locale/fa_IR.d.mts +1 -1
- package/build/system/locale/fil_PH.d.mts +1 -1
- package/build/system/locale/fr_CA.d.mts +1 -1
- package/build/system/locale/fr_FR.d.mts +1 -1
- package/build/system/locale/ha_NG.d.mts +1 -1
- package/build/system/locale/hi_IN.d.mts +1 -1
- package/build/system/locale/hu_HU.d.mts +1 -1
- package/build/system/locale/id_ID.d.mts +1 -1
- package/build/system/locale/it_IT.d.mts +1 -1
- package/build/system/locale/ja_JP.d.mts +1 -1
- package/build/system/locale/ko_KR.d.mts +1 -1
- package/build/system/locale/ms_MY.d.mts +1 -1
- package/build/system/locale/nl_NL.d.mts +1 -1
- package/build/system/locale/pl_PL.d.mts +1 -1
- package/build/system/locale/pt_BR.d.mts +1 -1
- package/build/system/locale/pt_PT.d.mts +1 -1
- package/build/system/locale/ro_RO.d.mts +1 -1
- package/build/system/locale/ru_RU.d.mts +1 -1
- package/build/system/locale/sv_SE.d.mts +1 -1
- package/build/system/locale/sw_TZ.d.mts +1 -1
- package/build/system/locale/th_TH.d.mts +1 -1
- package/build/system/locale/tr_TR.d.mts +1 -1
- package/build/system/locale/uk_UA.d.mts +1 -1
- package/build/system/locale/ur_PK.d.mts +1 -1
- package/build/system/locale/vi_VN.d.mts +1 -1
- package/build/system/locale/yo_NG.d.mts +1 -1
- package/build/system/locale/zh_Hans.d.mts +1 -1
- package/build/system/locale/zh_Hant.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/{distribute-arguments.mjs → distribute_arguments.mjs} +1 -7
- 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/candidates.d.mts +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/evaluate/flatten.d.mts +1 -1
- package/build/type/engine/evaluate/narrow.d.mts +3 -3
- 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-literal.d.mts → from_literal.d.mts} +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 +9 -9
- package/build/type/engine/instantiate.mjs +9 -9
- 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/ref/instantiate.d.mts +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 +3 -3
- 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} +7 -7
- 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 +2 -2
- package/build/type/extends/literal.mjs +2 -2
- 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/result.d.mts +1 -1
- 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/script/token/internal/guard.d.mts +1 -1
- package/build/type/script/token/internal/guard.mjs +1 -1
- package/build/type/script/token/internal/take.mjs +5 -9
- package/build/type/script/token/until.mjs +4 -7
- package/build/type/types/array.d.mts +2 -1
- package/build/type/types/array.mjs +2 -1
- package/build/type/types/enum.d.mts +2 -2
- package/build/type/types/enum.mjs +2 -2
- package/build/type/types/function.mjs +1 -1
- package/build/type/types/index.d.mts +2 -2
- package/build/type/types/index.mjs +2 -2
- package/build/type/types/object.mjs +1 -1
- 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-literal.d.mts → from_literal.d.mts} +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/{clean/from-cyclic.d.mts → default/from_cyclic.d.mts} +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.d.mts +2 -0
- 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/value/default/from-intersect.d.mts +0 -2
- /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/{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.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/{convert/from-cyclic.d.mts → clean/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/{default/from-cyclic.d.mts → convert/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.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-default.d.mts → from_default.d.mts} +0 -0
- /package/build/value/default/{from-default.mjs → from_default.mjs} +0 -0
- /package/build/value/{repair/from-intersect.d.mts → default/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-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
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsNumber } from '../types/number.mjs';
|
|
3
|
-
import { ExtendsRight } from './
|
|
3
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
4
4
|
import * as Result from './result.mjs';
|
|
5
5
|
export function ExtendsNumber(inferred, left, right) {
|
|
6
6
|
return (IsNumber(right)
|
|
@@ -6,8 +6,8 @@ import { type TOptional } from '../types/_optional.mjs';
|
|
|
6
6
|
import { type TInfer } from '../types/infer.mjs';
|
|
7
7
|
import { type TNever } from '../types/never.mjs';
|
|
8
8
|
import { type TObject } from '../types/object.mjs';
|
|
9
|
-
import { type TExtendsLeft } from './
|
|
10
|
-
import { type TExtendsRight } from './
|
|
9
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
10
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
11
11
|
import { type TUnionToTuple } from '../engine/helpers/union.mjs';
|
|
12
12
|
import * as Result from './result.mjs';
|
|
13
13
|
type TExtendsPropertyOptional<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse : Result.TExtendsTrue<Inferred>);
|
|
@@ -7,8 +7,8 @@ import { IsOptional } from '../types/_optional.mjs';
|
|
|
7
7
|
import { IsInfer } from '../types/infer.mjs';
|
|
8
8
|
import { IsNever } from '../types/never.mjs';
|
|
9
9
|
import { IsObject, Object } from '../types/object.mjs';
|
|
10
|
-
import { ExtendsLeft } from './
|
|
11
|
-
import { ExtendsRight } from './
|
|
10
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
11
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
12
12
|
import * as Result from './result.mjs';
|
|
13
13
|
function ExtendsPropertyOptional(inferred, left, right) {
|
|
14
14
|
return (IsOptional(left)
|
|
@@ -2,7 +2,7 @@ import { type TInfer } from '../types/infer.mjs';
|
|
|
2
2
|
import { type TSchema } from '../types/schema.mjs';
|
|
3
3
|
import { type TOptional } from '../types/_optional.mjs';
|
|
4
4
|
import { type TProperties } from '../types/properties.mjs';
|
|
5
|
-
import { type TExtendsLeft } from './
|
|
5
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
6
6
|
import * as Result from './result.mjs';
|
|
7
7
|
type TParameterCompare<Inferred extends TProperties, Left extends TSchema, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[], CheckLeft extends TSchema = Right extends TInfer ? Left : Right, CheckRight extends TSchema = Right extends TInfer ? Right : Left, IsLeftOptional extends boolean = Left extends TOptional ? true : false, IsRightOptional extends boolean = Right extends TOptional ? true : false> = ([
|
|
8
8
|
IsLeftOptional,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Guard } from '../../guard/index.mjs';
|
|
3
3
|
import { IsInfer } from '../types/infer.mjs';
|
|
4
4
|
import { IsOptional } from '../types/_optional.mjs';
|
|
5
|
-
import { ExtendsLeft } from './
|
|
5
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
6
6
|
import * as Result from './result.mjs';
|
|
7
7
|
function ParameterCompare(inferred, left, leftRest, right, rightRest) {
|
|
8
8
|
// Parameter extends Right on Left, except when infer Right
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema } from '../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TPromise } from '../types/promise.mjs';
|
|
4
|
-
import { type TExtendsRight } from './
|
|
5
|
-
import { type TExtendsLeft } from './
|
|
4
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
5
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
6
6
|
export type TExtendsPromise<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TPromise<infer Type extends TSchema> ? TExtendsLeft<Inferred, Left, Type> : TExtendsRight<Inferred, TPromise<Left>, Right>);
|
|
7
7
|
export declare function ExtendsPromise<Inferred extends TProperties, Left extends TSchema, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsPromise<Inferred, Left, Right>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Promise, IsPromise } from '../types/promise.mjs';
|
|
3
|
-
import { ExtendsRight } from './
|
|
4
|
-
import { ExtendsLeft } from './
|
|
3
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
4
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
5
5
|
export function ExtendsPromise(inferred, left, right) {
|
|
6
6
|
return (IsPromise(right)
|
|
7
7
|
? ExtendsLeft(inferred, left, right.item)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TProperties } from '../types/properties.mjs';
|
|
1
|
+
import { type TProperties } from '../types/properties.mjs';
|
|
2
2
|
export type TResult = TExtendsUnion | TExtendsTrue | TExtendsFalse;
|
|
3
3
|
export interface TExtendsUnion<Inferred extends TProperties = TProperties> {
|
|
4
4
|
'~kind': 'ExtendsUnion';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema } from '../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TVoid } from '../types/void.mjs';
|
|
4
|
-
import { type TExtendsLeft } from './
|
|
4
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
export type TExtendsReturnType<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TVoid ? Result.TExtendsTrue<Inferred> : TExtendsLeft<Inferred, Left, Right>);
|
|
7
7
|
export declare function ExtendsReturnType<Inferred extends TProperties, Left extends TSchema, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsReturnType<Inferred, Left, Right>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsVoid } from '../types/void.mjs';
|
|
3
|
-
import { ExtendsLeft } from './
|
|
3
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
4
4
|
import * as Result from './result.mjs';
|
|
5
5
|
export function ExtendsReturnType(inferred, left, right) {
|
|
6
6
|
return (IsVoid(right)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema } from '../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TString } from '../types/string.mjs';
|
|
4
|
-
import { type TExtendsRight } from './
|
|
4
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
export type TExtendsString<Inferred extends TProperties, Left extends TString, Right extends TSchema> = (Right extends TString ? Result.TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
7
7
|
export declare function ExtendsString<Inferred extends TProperties, Left extends TString, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsString<Inferred, Left, Right>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsString } from '../types/string.mjs';
|
|
3
|
-
import { ExtendsRight } from './
|
|
3
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
4
4
|
import * as Result from './result.mjs';
|
|
5
5
|
export function ExtendsString(inferred, left, right) {
|
|
6
6
|
return (IsString(right)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema } from '../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TSymbol } from '../types/symbol.mjs';
|
|
4
|
-
import { type TExtendsRight } from './
|
|
4
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
export type TExtendsSymbol<Inferred extends TProperties, Left extends TSymbol, Right extends TSchema> = (Right extends TSymbol ? Result.TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
7
7
|
export declare function ExtendsSymbol<Inferred extends TProperties, Left extends TSymbol, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsSymbol<Inferred, Left, Right>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsSymbol } from '../types/symbol.mjs';
|
|
3
|
-
import { ExtendsRight } from './
|
|
3
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
4
4
|
import * as Result from './result.mjs';
|
|
5
5
|
export function ExtendsSymbol(inferred, left, right) {
|
|
6
6
|
return (IsSymbol(right)
|
|
@@ -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 TExtendsLeft } from './
|
|
4
|
-
import { type TTemplateLiteralDecode } from '../engine/
|
|
3
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
4
|
+
import { type TTemplateLiteralDecode } from '../engine/template_literal/decode.mjs';
|
|
5
5
|
export type TExtendsTemplateLiteral<Inferred extends TProperties, Left extends string, Right extends TSchema, Decoded extends TSchema = TTemplateLiteralDecode<Left>> = TExtendsLeft<Inferred, Decoded, Right>;
|
|
6
6
|
export declare function ExtendsTemplateLiteral<Inferred extends TProperties, Left extends string, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsTemplateLiteral<Inferred, Left, Right>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import { ExtendsLeft } from './
|
|
3
|
-
import { TemplateLiteralDecode } from '../engine/
|
|
2
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
3
|
+
import { TemplateLiteralDecode } from '../engine/template_literal/decode.mjs';
|
|
4
4
|
export function ExtendsTemplateLiteral(inferred, left, right) {
|
|
5
5
|
const decoded = TemplateLiteralDecode(left);
|
|
6
6
|
return ExtendsLeft(inferred, decoded, right);
|
|
@@ -2,8 +2,8 @@ import { type TSchema } from '../types/schema.mjs';
|
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TArray } from '../types/array.mjs';
|
|
4
4
|
import { type TTuple } from '../types/tuple.mjs';
|
|
5
|
-
import { type TExtendsLeft } from './
|
|
6
|
-
import { type TExtendsRight } from './
|
|
5
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
6
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
7
7
|
import * as Result from './result.mjs';
|
|
8
8
|
import { type TInstantiateElements } from '../engine/instantiate.mjs';
|
|
9
9
|
import { type TTryRestInferable, type TTryInferable, type TInferable, type TInferTupleResult, type TInferUnionResult } from './inference.mjs';
|
|
@@ -3,8 +3,8 @@ import { Guard } from '../../guard/index.mjs';
|
|
|
3
3
|
import { IsSchema } from '../types/schema.mjs';
|
|
4
4
|
import { IsArray } from '../types/array.mjs';
|
|
5
5
|
import { IsTuple, Tuple } from '../types/tuple.mjs';
|
|
6
|
-
import { ExtendsLeft } from './
|
|
7
|
-
import { ExtendsRight } from './
|
|
6
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
7
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
8
8
|
import * as Result from './result.mjs';
|
|
9
9
|
import { InstantiateElements } from '../engine/instantiate.mjs';
|
|
10
10
|
// ----------------------------------------------------------------------------
|
|
@@ -2,7 +2,7 @@ import { type TSchema } from '../types/schema.mjs';
|
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TUndefined } from '../types/undefined.mjs';
|
|
4
4
|
import { type TVoid } from '../types/void.mjs';
|
|
5
|
-
import { type TExtendsRight } from './
|
|
5
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
6
6
|
import * as Result from './result.mjs';
|
|
7
7
|
export type TExtendsUndefined<Inferred extends TProperties, Left extends TUndefined, Right extends TSchema> = (Right extends TVoid ? Result.TExtendsTrue<Inferred> : Right extends TUndefined ? Result.TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
8
8
|
export declare function ExtendsUndefined<Inferred extends TProperties, Left extends TUndefined, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsUndefined<Inferred, Left, Right>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsUndefined } from '../types/undefined.mjs';
|
|
3
3
|
import { IsVoid } from '../types/void.mjs';
|
|
4
|
-
import { ExtendsRight } from './
|
|
4
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
export function ExtendsUndefined(inferred, left, right) {
|
|
7
7
|
return (IsVoid(right) ? Result.ExtendsTrue(inferred) :
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TProperties } from '../types/properties.mjs';
|
|
2
2
|
import { type TSchema } from '../types/schema.mjs';
|
|
3
3
|
import { type TUnion } from '../types/union.mjs';
|
|
4
|
-
import { type TExtendsLeft } from './
|
|
4
|
+
import { type TExtendsLeft } from './extends_left.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
import { type TInferable, type TTryInferable, type TInferUnionResult } from './inference.mjs';
|
|
7
7
|
type TExtendsUnionSome<Inferred extends TProperties, Type extends TSchema, UnionTypes extends TSchema[]> = (UnionTypes extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Type, Head> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? Result.TExtendsTrue<Inferred> : TExtendsUnionSome<Inferred, Type, Tail> : Result.TExtendsFalse);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Guard } from '../../guard/index.mjs';
|
|
3
3
|
import { IsUnion } from '../types/union.mjs';
|
|
4
|
-
import { ExtendsLeft } from './
|
|
4
|
+
import { ExtendsLeft } from './extends_left.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
// ----------------------------------------------------------------------------
|
|
7
7
|
// Inference
|
|
@@ -3,7 +3,7 @@ import { type TProperties } from '../types/properties.mjs';
|
|
|
3
3
|
import { type TAny } from '../types/any.mjs';
|
|
4
4
|
import { type TUnknown } from '../types/unknown.mjs';
|
|
5
5
|
import { type TInfer } from '../types/infer.mjs';
|
|
6
|
-
import { type TExtendsRight } from './
|
|
6
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
7
7
|
import * as Result from './result.mjs';
|
|
8
8
|
export type TExtendsUnknown<Inferred extends TProperties, Left extends TUnknown, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : Right extends TAny ? Result.TExtendsTrue<Inferred> : Right extends TUnknown ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse);
|
|
9
9
|
export declare function ExtendsUnknown<Inferred extends TProperties, Left extends TUnknown, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsUnknown<Inferred, Left, Right>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { IsAny } from '../types/any.mjs';
|
|
3
3
|
import { IsUnknown } from '../types/unknown.mjs';
|
|
4
4
|
import { IsInfer } from '../types/infer.mjs';
|
|
5
|
-
import { ExtendsRight } from './
|
|
5
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
6
6
|
import * as Result from './result.mjs';
|
|
7
7
|
export function ExtendsUnknown(inferred, left, right) {
|
|
8
8
|
return (IsInfer(right) ? ExtendsRight(inferred, left, right) :
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TSchema } from '../types/schema.mjs';
|
|
2
2
|
import { type TProperties } from '../types/properties.mjs';
|
|
3
3
|
import { type TVoid } from '../types/void.mjs';
|
|
4
|
-
import { type TExtendsRight } from './
|
|
4
|
+
import { type TExtendsRight } from './extends_right.mjs';
|
|
5
5
|
import * as Result from './result.mjs';
|
|
6
6
|
export type TExtendsVoid<Inferred extends TProperties, Left extends TVoid, Right extends TSchema> = (Right extends TVoid ? Result.TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
7
7
|
export declare function ExtendsVoid<Inferred extends TProperties, Left extends TVoid, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtendsVoid<Inferred, Left, Right>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { IsVoid } from '../types/void.mjs';
|
|
3
|
-
import { ExtendsRight } from './
|
|
3
|
+
import { ExtendsRight } from './extends_right.mjs';
|
|
4
4
|
import * as Result from './result.mjs';
|
|
5
5
|
export function ExtendsVoid(inferred, left, right) {
|
|
6
6
|
return (IsVoid(right)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { IsArray, IsEqual, IsString } from '../../../../guard/guard.mjs';
|
|
1
|
+
export { IsArray, IsEqual, IsString, TakeLeft } from '../../../../guard/guard.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// deno-coverage-ignore-start - parsebox tested
|
|
2
|
-
export { IsArray, IsEqual, IsString } from '../../../../guard/guard.mjs';
|
|
2
|
+
export { IsArray, IsEqual, IsString, TakeLeft } from '../../../../guard/guard.mjs';
|
|
3
3
|
// ------------------------------------------------------------------
|
|
4
4
|
// Internal Guards to ensure Token is portable.
|
|
5
5
|
// ------------------------------------------------------------------
|
|
@@ -12,15 +12,11 @@ export function Take(variants, input) {
|
|
|
12
12
|
// ----------------------------------------------------------------
|
|
13
13
|
// Symmetric
|
|
14
14
|
// ----------------------------------------------------------------
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
// return IsEqual(result.length, 2) ? result : Take(right, input)
|
|
21
|
-
// })()
|
|
22
|
-
// : []
|
|
23
|
-
// ) as never
|
|
15
|
+
// return Guard.TakeLeft(variants, (valueLeft, valueRight) =>
|
|
16
|
+
// Match(TakeVariant(valueLeft, input), (take, rest) =>
|
|
17
|
+
// [take, rest],
|
|
18
|
+
// () => Take(valueRight, input)),
|
|
19
|
+
// () => []) as never
|
|
24
20
|
// ----------------------------------------------------------------
|
|
25
21
|
// Inline
|
|
26
22
|
// ----------------------------------------------------------------
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
// deno-coverage-ignore-start - parsebox tested
|
|
2
2
|
// deno-fmt-ignore-file
|
|
3
3
|
import { Match } from './internal/match.mjs';
|
|
4
|
-
import { IsEqual,
|
|
4
|
+
import { IsEqual, TakeLeft } from './internal/guard.mjs';
|
|
5
5
|
function TakeOne(input) {
|
|
6
6
|
const result = IsEqual(input, '') ? [] : [input.slice(0, 1), input.slice(1)];
|
|
7
7
|
return result;
|
|
8
8
|
}
|
|
9
9
|
function IsInputMatchSentinal(end, input) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
? true
|
|
14
|
-
: IsInputMatchSentinal(right, input)
|
|
15
|
-
: false);
|
|
10
|
+
return TakeLeft(end, (left, right) => input.startsWith(left)
|
|
11
|
+
? true
|
|
12
|
+
: IsInputMatchSentinal(right, input), () => false);
|
|
16
13
|
}
|
|
17
14
|
/** Match Input until but not including End. No match if End not found. */
|
|
18
15
|
export function Until(end, input, result = '') {
|
|
@@ -10,7 +10,8 @@ export interface TArray<Type extends TSchema = TSchema> extends TSchema {
|
|
|
10
10
|
items: Type;
|
|
11
11
|
}
|
|
12
12
|
/** Creates an Array type. */
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function _Array_<Type extends TSchema>(items: Type, options?: TArrayOptions): TArray<Type>;
|
|
14
|
+
export { _Array_ as Array };
|
|
14
15
|
/** Returns true if the given value is a TArray. */
|
|
15
16
|
export declare function IsArray(value: unknown): value is TArray;
|
|
16
17
|
/** Extracts options from a TArray. */
|
|
@@ -5,9 +5,10 @@ import { IsKind } from './schema.mjs';
|
|
|
5
5
|
// Factory
|
|
6
6
|
// ------------------------------------------------------------------
|
|
7
7
|
/** Creates an Array type. */
|
|
8
|
-
export function
|
|
8
|
+
export function _Array_(items, options) {
|
|
9
9
|
return Memory.Create({ '~kind': 'Array' }, { type: 'array', items }, options);
|
|
10
10
|
}
|
|
11
|
+
export { _Array_ as Array }; // Prevent Collision With Global Scope
|
|
11
12
|
// ------------------------------------------------------------------
|
|
12
13
|
// Guard
|
|
13
14
|
// ------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
|
-
import { type TTypeScriptEnumLike } from '../engine/enum/
|
|
3
|
-
import { type TTypeScriptEnumToEnumValues } from '../engine/enum/
|
|
2
|
+
import { type TTypeScriptEnumLike } from '../engine/enum/typescript_enum_to_enum_values.mjs';
|
|
3
|
+
import { type TTypeScriptEnumToEnumValues } from '../engine/enum/typescript_enum_to_enum_values.mjs';
|
|
4
4
|
export type StaticEnum<Values extends TEnumValue[]> = (Values[number]);
|
|
5
5
|
export type TEnumValue = string | number | null;
|
|
6
6
|
/** Represents an Enum type. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
2
|
import { Memory } from '../../system/memory/index.mjs';
|
|
3
3
|
import { IsKind } from './schema.mjs';
|
|
4
|
-
import { IsTypeScriptEnumLike } from '../engine/enum/
|
|
5
|
-
import { TypeScriptEnumToEnumValues } from '../engine/enum/
|
|
4
|
+
import { IsTypeScriptEnumLike } from '../engine/enum/typescript_enum_to_enum_values.mjs';
|
|
5
|
+
import { TypeScriptEnumToEnumValues } from '../engine/enum/typescript_enum_to_enum_values.mjs';
|
|
6
6
|
/** Creates an Enum type. */
|
|
7
7
|
export function Enum(value, options) {
|
|
8
8
|
const values = IsTypeScriptEnumLike(value) ? TypeScriptEnumToEnumValues(value) : value;
|
|
@@ -8,7 +8,7 @@ import { IsKind } from './schema.mjs';
|
|
|
8
8
|
export function _Function_(parameters, returnType, options = {}) {
|
|
9
9
|
return Memory.Create({ ['~kind']: 'Function' }, { type: 'function', parameters, returnType }, options);
|
|
10
10
|
}
|
|
11
|
-
export { _Function_ as Function };
|
|
11
|
+
export { _Function_ as Function }; // Prevent Collision With Global Scope
|
|
12
12
|
// ------------------------------------------------------------------
|
|
13
13
|
// Guard
|
|
14
14
|
// ------------------------------------------------------------------
|
|
@@ -5,7 +5,7 @@ export * from './_readonly.mjs';
|
|
|
5
5
|
export * from './_refine.mjs';
|
|
6
6
|
export * from './any.mjs';
|
|
7
7
|
export * from './array.mjs';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './async_iterator.mjs';
|
|
9
9
|
export * from './base.mjs';
|
|
10
10
|
export * from './bigint.mjs';
|
|
11
11
|
export * from './boolean.mjs';
|
|
@@ -38,7 +38,7 @@ export * from './schema.mjs';
|
|
|
38
38
|
export * from './static.mjs';
|
|
39
39
|
export * from './string.mjs';
|
|
40
40
|
export * from './symbol.mjs';
|
|
41
|
-
export * from './
|
|
41
|
+
export * from './template_literal.mjs';
|
|
42
42
|
export * from './this.mjs';
|
|
43
43
|
export * from './tuple.mjs';
|
|
44
44
|
export * from './undefined.mjs';
|
|
@@ -11,7 +11,7 @@ export * from './_refine.mjs';
|
|
|
11
11
|
// ------------------------------------------------------------------
|
|
12
12
|
export * from './any.mjs';
|
|
13
13
|
export * from './array.mjs';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './async_iterator.mjs';
|
|
15
15
|
export * from './base.mjs';
|
|
16
16
|
export * from './bigint.mjs';
|
|
17
17
|
export * from './boolean.mjs';
|
|
@@ -44,7 +44,7 @@ export * from './schema.mjs';
|
|
|
44
44
|
export * from './static.mjs';
|
|
45
45
|
export * from './string.mjs';
|
|
46
46
|
export * from './symbol.mjs';
|
|
47
|
-
export * from './
|
|
47
|
+
export * from './template_literal.mjs';
|
|
48
48
|
export * from './this.mjs';
|
|
49
49
|
export * from './tuple.mjs';
|
|
50
50
|
export * from './undefined.mjs';
|
|
@@ -11,7 +11,7 @@ export function _Object_(properties, options = {}) {
|
|
|
11
11
|
const required = requiredKeys.length > 0 ? { required: requiredKeys } : {};
|
|
12
12
|
return Memory.Create({ '~kind': 'Object' }, { type: 'object', ...required, properties }, options);
|
|
13
13
|
}
|
|
14
|
-
export { _Object_ as Object }; //
|
|
14
|
+
export { _Object_ as Object }; // Prevent Collision With Global Scope
|
|
15
15
|
// ------------------------------------------------------------------
|
|
16
16
|
// Guard
|
|
17
17
|
// ------------------------------------------------------------------
|
|
@@ -5,8 +5,8 @@ import { type TInteger } from './integer.mjs';
|
|
|
5
5
|
import { type TNumber } from './number.mjs';
|
|
6
6
|
import { type TString } from './string.mjs';
|
|
7
7
|
import { type TDeferred } from './deferred.mjs';
|
|
8
|
-
import { type TTemplateLiteralStatic } from '../engine/
|
|
9
|
-
import { type TTemplateLiteralDecodeUnsafe } from '../engine/
|
|
8
|
+
import { type TTemplateLiteralStatic } from '../engine/template_literal/index.mjs';
|
|
9
|
+
import { type TTemplateLiteralDecodeUnsafe } from '../engine/template_literal/decode.mjs';
|
|
10
10
|
import { type TRecordAction } from '../engine/record/instantiate.mjs';
|
|
11
11
|
type StaticPropertyKey<Key extends string, Result extends PropertyKey = (Key extends TStringKey ? string : Key extends TIntegerKey ? number : Key extends TNumberKey ? number : Key extends `^${string}$` ? TTemplateLiteralStatic<Key> : string)> = Result;
|
|
12
12
|
export type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record<PropertyKey, unknown> = Record<StaticKey, StaticValue>> = Result;
|
|
@@ -6,8 +6,8 @@ import { Integer, IntegerPattern } from './integer.mjs';
|
|
|
6
6
|
import { Number, NumberPattern } from './number.mjs';
|
|
7
7
|
import { String, StringPattern } from './string.mjs';
|
|
8
8
|
import { Deferred } from './deferred.mjs';
|
|
9
|
-
import { TemplateLiteralDecodeUnsafe } from '../engine/
|
|
10
|
-
import { CreateRecord } from '../engine/record/
|
|
9
|
+
import { TemplateLiteralDecodeUnsafe } from '../engine/template_literal/decode.mjs';
|
|
10
|
+
import { CreateRecord } from '../engine/record/record_create.mjs';
|
|
11
11
|
import { RecordAction } from '../engine/record/instantiate.mjs';
|
|
12
12
|
export const IntegerKey = `^${IntegerPattern}$`;
|
|
13
13
|
export const NumberKey = `^${NumberPattern}$`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StaticCodec, TCodec } from './_codec.mjs';
|
|
2
2
|
import type { StaticAny, TAny } from './any.mjs';
|
|
3
3
|
import type { StaticArray, TArray } from './array.mjs';
|
|
4
|
-
import type { StaticAsyncIterator, TAsyncIterator } from './
|
|
4
|
+
import type { StaticAsyncIterator, TAsyncIterator } from './async_iterator.mjs';
|
|
5
5
|
import type { StaticBase, Base } from './base.mjs';
|
|
6
6
|
import type { StaticBigInt, TBigInt } from './bigint.mjs';
|
|
7
7
|
import type { StaticBoolean, TBoolean } from './boolean.mjs';
|
|
@@ -24,7 +24,7 @@ import type { StaticRef, TRef } from './ref.mjs';
|
|
|
24
24
|
import type { TSchema } from './schema.mjs';
|
|
25
25
|
import type { StaticString, TString } from './string.mjs';
|
|
26
26
|
import type { StaticSymbol, TSymbol } from './symbol.mjs';
|
|
27
|
-
import type { StaticTemplateLiteral, TTemplateLiteral } from './
|
|
27
|
+
import type { StaticTemplateLiteral, TTemplateLiteral } from './template_literal.mjs';
|
|
28
28
|
import type { StaticThis, TThis } from './this.mjs';
|
|
29
29
|
import type { StaticTuple, TTuple } from './tuple.mjs';
|
|
30
30
|
import type { StaticUndefined, TUndefined } from './undefined.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type TSchema, type TSchemaOptions } from './schema.mjs';
|
|
2
2
|
import { type TDeferred } from './deferred.mjs';
|
|
3
3
|
import { type TParseTemplateIntoTypes } from '../engine/patterns/template.mjs';
|
|
4
|
-
import { type TTemplateLiteralStatic } from '../engine/
|
|
5
|
-
import { type TTemplateLiteralAction } from '../engine/
|
|
4
|
+
import { type TTemplateLiteralStatic } from '../engine/template_literal/static.mjs';
|
|
5
|
+
import { type TTemplateLiteralAction } from '../engine/template_literal/instantiate.mjs';
|
|
6
6
|
export type StaticTemplateLiteral<Pattern extends string> = (TTemplateLiteralStatic<Pattern>);
|
|
7
7
|
/** Represents a TemplateLiteral type. */
|
|
8
8
|
export interface TTemplateLiteral<Pattern extends string = string> extends TSchema {
|
|
@@ -5,7 +5,7 @@ import { Guard } from '../../guard/index.mjs';
|
|
|
5
5
|
import { IsSchema, IsKind } from './schema.mjs';
|
|
6
6
|
import { Deferred } from './deferred.mjs';
|
|
7
7
|
import { ParseTemplateIntoTypes } from '../engine/patterns/template.mjs';
|
|
8
|
-
import { TemplateLiteralAction } from '../engine/
|
|
8
|
+
import { TemplateLiteralAction } from '../engine/template_literal/instantiate.mjs';
|
|
9
9
|
/** Creates a deferred TemplateLiteral action. */
|
|
10
10
|
export function TemplateLiteralDeferred(types, options = {}) {
|
|
11
11
|
return Deferred('TemplateLiteral', [types], options);
|
package/build/typebox.d.mts
CHANGED
|
@@ -4,26 +4,26 @@ export { Script, type TScript } from './type/script/index.mjs';
|
|
|
4
4
|
export { Awaited, type TAwaited, type TAwaitedDeferred } from './type/action/awaited.mjs';
|
|
5
5
|
export { Capitalize, type TCapitalize, type TCapitalizeDeferred } from './type/action/capitalize.mjs';
|
|
6
6
|
export { Conditional, type TConditional, type TConditionalDeferred } from './type/action/conditional.mjs';
|
|
7
|
-
export { ConstructorParameters, type TConstructorParameters, type TConstructorParametersDeferred } from './type/action/
|
|
7
|
+
export { ConstructorParameters, type TConstructorParameters, type TConstructorParametersDeferred } from './type/action/constructor_parameters.mjs';
|
|
8
8
|
export { Evaluate, type TEvaluate, type TEvaluateDeferred } from './type/action/evaluate.mjs';
|
|
9
9
|
export { Exclude, type TExclude, type TExcludeDeferred } from './type/action/exclude.mjs';
|
|
10
10
|
export { Extract, type TExtract, type TExtractDeferred } from './type/action/extract.mjs';
|
|
11
11
|
export { Index, type TIndex, type TIndexDeferred } from './type/action/index.mjs';
|
|
12
|
-
export { InstanceType, type TInstanceType, type TInstanceTypeDeferred } from './type/action/
|
|
12
|
+
export { InstanceType, type TInstanceType, type TInstanceTypeDeferred } from './type/action/instance_type.mjs';
|
|
13
13
|
export { Interface, type TInterface, type TInterfaceDeferred } from './type/action/interface.mjs';
|
|
14
14
|
export { KeyOf, type TKeyOf, type TKeyOfDeferred } from './type/action/keyof.mjs';
|
|
15
15
|
export { Lowercase, type TLowercase, type TLowercaseDeferred } from './type/action/lowercase.mjs';
|
|
16
16
|
export { Mapped, type TMapped, type TMappedDeferred } from './type/action/mapped.mjs';
|
|
17
17
|
export { Module, type TModule, type TModuleDeferred } from './type/action/module.mjs';
|
|
18
|
-
export { NonNullable, type TNonNullable, type TNonNullableDeferred } from './type/action/
|
|
18
|
+
export { NonNullable, type TNonNullable, type TNonNullableDeferred } from './type/action/non_nullable.mjs';
|
|
19
19
|
export { Omit, type TOmit, type TOmitDeferred } from './type/action/omit.mjs';
|
|
20
20
|
export { Options, type TOptions } from './type/action/options.mjs';
|
|
21
21
|
export { Parameters, type TParameters, type TParametersDeferred } from './type/action/parameters.mjs';
|
|
22
22
|
export { Partial, type TPartial, type TPartialDeferred } from './type/action/partial.mjs';
|
|
23
23
|
export { Pick, type TPick, type TPickDeferred } from './type/action/pick.mjs';
|
|
24
|
-
export { ReadonlyObject, ReadonlyType, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/
|
|
24
|
+
export { ReadonlyObject, ReadonlyType, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
|
|
25
25
|
export { Required, type TRequired, type TRequiredDeferred } from './type/action/required.mjs';
|
|
26
|
-
export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/
|
|
26
|
+
export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/return_type.mjs';
|
|
27
27
|
export { type TUncapitalize, type TUncapitalizeDeferred, Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
28
28
|
export { type TUppercase, type TUppercaseDeferred, Uppercase } from './type/action/uppercase.mjs';
|
|
29
29
|
export { Codec, Decode, DecodeBuilder, Encode, EncodeBuilder, IsCodec, type TCodec } from './type/types/_codec.mjs';
|
|
@@ -33,7 +33,7 @@ export { IsReadonly, Readonly, type TReadonly } from './type/types/_readonly.mjs
|
|
|
33
33
|
export { IsRefine, Refine, type TRefine, type TRefineCheckCallback, type TRefineErrorCallback, type TRefinement } from './type/types/_refine.mjs';
|
|
34
34
|
export { Any, IsAny, type TAny } from './type/types/any.mjs';
|
|
35
35
|
export { Array, IsArray, type TArray } from './type/types/array.mjs';
|
|
36
|
-
export { AsyncIterator, IsAsyncIterator, type TAsyncIterator } from './type/types/
|
|
36
|
+
export { AsyncIterator, IsAsyncIterator, type TAsyncIterator } from './type/types/async_iterator.mjs';
|
|
37
37
|
export { Base, IsBase } from './type/types/base.mjs';
|
|
38
38
|
export { BigInt, IsBigInt, type TBigInt } from './type/types/bigint.mjs';
|
|
39
39
|
export { Boolean, IsBoolean, type TBoolean } from './type/types/boolean.mjs';
|
|
@@ -63,7 +63,7 @@ export { IsKind, IsSchema, type TArrayOptions, type TFormat, type TIntersectOpti
|
|
|
63
63
|
export { type Static, type StaticDecode, type StaticEncode, type StaticParse } from './type/types/static.mjs';
|
|
64
64
|
export { IsString, String, type TString } from './type/types/string.mjs';
|
|
65
65
|
export { IsSymbol, Symbol, type TSymbol } from './type/types/symbol.mjs';
|
|
66
|
-
export { IsTemplateLiteral, TemplateLiteral, type TTemplateLiteral } from './type/types/
|
|
66
|
+
export { IsTemplateLiteral, TemplateLiteral, type TTemplateLiteral } from './type/types/template_literal.mjs';
|
|
67
67
|
export { IsThis, This, type TThis } from './type/types/this.mjs';
|
|
68
68
|
export { IsTuple, type TTuple, Tuple } from './type/types/tuple.mjs';
|
|
69
69
|
export { IsUndefined, type TUndefined, Undefined } from './type/types/undefined.mjs';
|