type-plus 8.0.0-beta.6 → 8.0.0-beta.8
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/{esm/type_plus → cjs/$type}/$resolve_options.d.ts +2 -2
- package/cjs/$type/$resolve_options.d.ts.map +1 -0
- package/cjs/$type/$resolve_options.js.map +1 -0
- package/cjs/$type/$type.d.ts +34 -0
- package/cjs/$type/$type.d.ts.map +1 -0
- package/cjs/{type_plus → $type}/$type.js.map +1 -1
- package/{esm/type_plus → cjs/$type}/branch/$branch.d.ts +3 -3
- package/cjs/$type/branch/$branch.d.ts.map +1 -0
- package/cjs/$type/branch/$branch.js.map +1 -0
- package/{esm/type_plus → cjs/$type}/branch/$input_options.d.ts +2 -1
- package/cjs/$type/branch/$input_options.d.ts.map +1 -0
- package/cjs/$type/branch/$input_options.js.map +1 -0
- package/cjs/$type/branch/$resolve_branch.d.ts +22 -0
- package/cjs/$type/branch/$resolve_branch.d.ts.map +1 -0
- package/cjs/$type/branch/$resolve_branch.js.map +1 -0
- package/cjs/$type/branch/$selection.d.ts +161 -0
- package/cjs/$type/branch/$selection.d.ts.map +1 -0
- package/cjs/$type/branch/$selection.js.map +1 -0
- package/cjs/$type/distributive/$distributive.d.ts +27 -0
- package/cjs/$type/distributive/$distributive.d.ts.map +1 -0
- package/cjs/$type/distributive/$distributive.js.map +1 -0
- package/cjs/$type/errors/$error.d.ts +23 -0
- package/cjs/$type/errors/$error.d.ts.map +1 -0
- package/cjs/{type_plus → $type/errors}/$error.js.map +1 -1
- package/{esm/type_plus → cjs/$type/errors}/$infer_error.d.ts +7 -6
- package/cjs/$type/errors/$infer_error.d.ts.map +1 -0
- package/cjs/$type/errors/$infer_error.js.map +1 -0
- package/{esm/type → cjs/$type/errors}/failed.d.ts +4 -0
- package/cjs/$type/errors/failed.d.ts.map +1 -0
- package/cjs/{type → $type/errors}/failed.js.map +1 -1
- package/cjs/$type/exact/$exact.d.ts +27 -0
- package/cjs/$type/exact/$exact.d.ts.map +1 -0
- package/cjs/{type_plus/branch → $type/exact}/$exact.js.map +1 -1
- package/cjs/$type/special/$any.d.ts +36 -0
- package/cjs/$type/special/$any.d.ts.map +1 -0
- package/cjs/{any/any.js → $type/special/$any.js} +1 -1
- package/cjs/$type/special/$any.js.map +1 -0
- package/cjs/$type/special/$never.d.ts +52 -0
- package/cjs/$type/special/$never.d.ts.map +1 -0
- package/cjs/$type/special/$never.js +3 -0
- package/cjs/$type/special/$never.js.map +1 -0
- package/cjs/$type/special/$special.d.ts +31 -0
- package/cjs/$type/special/$special.d.ts.map +1 -0
- package/cjs/$type/special/$special.js +3 -0
- package/cjs/$type/special/$special.js.map +1 -0
- package/cjs/$type/special/$unknown.d.ts +37 -0
- package/cjs/$type/special/$unknown.d.ts.map +1 -0
- package/cjs/$type/special/$unknown.js +3 -0
- package/cjs/$type/special/$unknown.js.map +1 -0
- package/cjs/$type/special/$void.d.ts +46 -0
- package/cjs/$type/special/$void.d.ts.map +1 -0
- package/cjs/{never/never.js → $type/special/$void.js} +1 -1
- package/cjs/$type/special/$void.js.map +1 -0
- package/cjs/$type/utils/$merge_options.d.ts +14 -0
- package/cjs/$type/utils/$merge_options.d.ts.map +1 -0
- package/cjs/$type/utils/$merge_options.js.map +1 -0
- package/cjs/any/is_any.d.ts +23 -20
- package/cjs/any/is_any.d.ts.map +1 -1
- package/cjs/any/is_not_any.d.ts +15 -14
- package/cjs/any/is_not_any.d.ts.map +1 -1
- package/cjs/array/array.reverse.d.ts +1 -1
- package/cjs/array/array.reverse.d.ts.map +1 -1
- package/cjs/array/array.some.d.ts +1 -1
- package/cjs/array/array.some.d.ts.map +1 -1
- package/cjs/array/array_plus.common_prop_keys.d.ts +1 -1
- package/cjs/array/array_plus.common_prop_keys.d.ts.map +1 -1
- package/cjs/array/array_plus.filter.d.ts +2 -2
- package/cjs/array/array_plus.filter.d.ts.map +1 -1
- package/cjs/array/array_plus.find.d.ts +2 -2
- package/cjs/array/array_plus.find.d.ts.map +1 -1
- package/cjs/array/array_plus.index_at.d.ts +16 -10
- package/cjs/array/array_plus.index_at.d.ts.map +1 -1
- package/cjs/array/array_plus.index_at.js.map +1 -1
- package/cjs/array/array_plus.is_readonly.d.ts +3 -3
- package/cjs/array/array_plus.is_readonly.d.ts.map +1 -1
- package/cjs/array/head.d.ts +3 -3
- package/cjs/array/head.d.ts.map +1 -1
- package/cjs/array/is_array.d.ts +23 -19
- package/cjs/array/is_array.d.ts.map +1 -1
- package/cjs/array/is_not_array.d.ts +23 -19
- package/cjs/array/is_not_array.d.ts.map +1 -1
- package/cjs/array/last.d.ts +5 -3
- package/cjs/array/last.d.ts.map +1 -1
- package/cjs/array/literal_array.js +1 -2
- package/cjs/array/literal_array.js.map +1 -1
- package/cjs/array/reduce_while.js +1 -2
- package/cjs/array/reduce_while.js.map +1 -1
- package/cjs/assertion/assert_type.d.ts +1 -1
- package/cjs/assertion/assert_type.d.ts.map +1 -1
- package/cjs/assertion/assert_type.js +1 -4
- package/cjs/assertion/assert_type.js.map +1 -1
- package/cjs/bigint/is_bigint.d.ts +20 -16
- package/cjs/bigint/is_bigint.d.ts.map +1 -1
- package/cjs/bigint/is_bigint_literal.d.ts +18 -13
- package/cjs/bigint/is_bigint_literal.d.ts.map +1 -1
- package/cjs/bigint/is_not_bigint.d.ts +20 -16
- package/cjs/bigint/is_not_bigint.d.ts.map +1 -1
- package/cjs/bigint/is_not_bigint_literal.d.ts +19 -13
- package/cjs/bigint/is_not_bigint_literal.d.ts.map +1 -1
- package/cjs/binary/_binary.d.ts +2 -1
- package/cjs/binary/_binary.d.ts.map +1 -1
- package/cjs/binary/_binary.js +3 -0
- package/cjs/binary/_binary.js.map +1 -1
- package/cjs/binary/bit.d.ts +26 -0
- package/cjs/binary/bit.d.ts.map +1 -0
- package/cjs/binary/{Bit.js → bit.js} +1 -1
- package/cjs/binary/bit.js.map +1 -0
- package/cjs/boolean/is_boolean.d.ts +20 -16
- package/cjs/boolean/is_boolean.d.ts.map +1 -1
- package/cjs/boolean/is_false.d.ts +15 -9
- package/cjs/boolean/is_false.d.ts.map +1 -1
- package/cjs/boolean/is_not_boolean.d.ts +21 -16
- package/cjs/boolean/is_not_boolean.d.ts.map +1 -1
- package/cjs/boolean/is_not_false.d.ts +16 -9
- package/cjs/boolean/is_not_false.d.ts.map +1 -1
- package/cjs/boolean/is_not_true.d.ts +15 -9
- package/cjs/boolean/is_not_true.d.ts.map +1 -1
- package/cjs/boolean/is_true.d.ts +15 -9
- package/cjs/boolean/is_true.d.ts.map +1 -1
- package/cjs/class/isConstructor.js +2 -3
- package/cjs/class/isConstructor.js.map +1 -1
- package/cjs/equal/equal.d.ts +189 -74
- package/cjs/equal/equal.d.ts.map +1 -1
- package/cjs/equal/identity_equal.d.ts +5 -1
- package/cjs/equal/identity_equal.d.ts.map +1 -1
- package/cjs/equal/is_equal.d.ts +102 -0
- package/cjs/equal/is_equal.d.ts.map +1 -0
- package/cjs/equal/is_equal.js +3 -0
- package/cjs/equal/is_equal.js.map +1 -0
- package/cjs/function/extract_function.d.ts.map +1 -1
- package/cjs/function/extract_function.js +1 -2
- package/cjs/function/extract_function.js.map +1 -1
- package/cjs/function/is_function.d.ts +28 -5
- package/cjs/function/is_function.d.ts.map +1 -1
- package/cjs/function/is_not_function.d.ts +1 -1
- package/cjs/function/is_not_function.d.ts.map +1 -1
- package/cjs/function/is_not_strict_function.d.ts +15 -13
- package/cjs/function/is_not_strict_function.d.ts.map +1 -1
- package/cjs/function/is_strict_function.d.ts +22 -17
- package/cjs/function/is_strict_function.d.ts.map +1 -1
- package/cjs/functional/Maybe.d.ts +1 -1
- package/cjs/functional/Maybe.d.ts.map +1 -1
- package/cjs/functional/Maybe.js +2 -3
- package/cjs/functional/Maybe.js.map +1 -1
- package/cjs/functional/compose.d.ts.map +1 -1
- package/cjs/functional/compose.js +2 -5
- package/cjs/functional/compose.js.map +1 -1
- package/cjs/functional/context.js +1 -2
- package/cjs/functional/context.js.map +1 -1
- package/cjs/index.d.ts +21 -22
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/json.js +1 -1
- package/cjs/json.js.map +1 -1
- package/cjs/logical/logical.d.ts +35 -0
- package/cjs/logical/logical.d.ts.map +1 -0
- package/cjs/{predicates → logical}/logical.js.map +1 -1
- package/cjs/math/abs.d.ts +1 -1
- package/cjs/math/abs.d.ts.map +1 -1
- package/cjs/math/numeric_struct.d.ts.map +1 -1
- package/cjs/mix_types/box.d.ts +2 -2
- package/cjs/mix_types/box.d.ts.map +1 -1
- package/cjs/mix_types/is_any_or_never.d.ts +2 -3
- package/cjs/mix_types/is_any_or_never.d.ts.map +1 -1
- package/cjs/mix_types/merge.d.ts +18 -6
- package/cjs/mix_types/merge.d.ts.map +1 -1
- package/cjs/mix_types/merge.js +1 -2
- package/cjs/mix_types/merge.js.map +1 -1
- package/cjs/never/is_never.d.ts +16 -15
- package/cjs/never/is_never.d.ts.map +1 -1
- package/cjs/never/is_not_never.d.ts +16 -15
- package/cjs/never/is_not_never.d.ts.map +1 -1
- package/cjs/nodejs/isNodeError.js +1 -2
- package/cjs/nodejs/isNodeError.js.map +1 -1
- package/cjs/nominal/brand.js +1 -2
- package/cjs/nominal/brand.js.map +1 -1
- package/cjs/nominal/flavor.js +1 -2
- package/cjs/nominal/flavor.js.map +1 -1
- package/cjs/nominal/nominal_match.js +1 -2
- package/cjs/nominal/nominal_match.js.map +1 -1
- package/cjs/null/is_not_null.d.ts +15 -9
- package/cjs/null/is_not_null.d.ts.map +1 -1
- package/cjs/null/is_null.d.ts +15 -9
- package/cjs/null/is_null.d.ts.map +1 -1
- package/cjs/number/is_not_number.d.ts +20 -16
- package/cjs/number/is_not_number.d.ts.map +1 -1
- package/cjs/number/is_not_number_literal.d.ts +18 -13
- package/cjs/number/is_not_number_literal.d.ts.map +1 -1
- package/cjs/number/is_number.d.ts +20 -16
- package/cjs/number/is_number.d.ts.map +1 -1
- package/cjs/number/is_number_literal.d.ts +18 -13
- package/cjs/number/is_number_literal.d.ts.map +1 -1
- package/cjs/numeric/is_integer.d.ts +18 -12
- package/cjs/numeric/is_integer.d.ts.map +1 -1
- package/cjs/numeric/is_negative.d.ts +19 -13
- package/cjs/numeric/is_negative.d.ts.map +1 -1
- package/cjs/numeric/is_not_integer.d.ts +13 -7
- package/cjs/numeric/is_not_integer.d.ts.map +1 -1
- package/cjs/numeric/is_not_negative.d.ts +15 -9
- package/cjs/numeric/is_not_negative.d.ts.map +1 -1
- package/cjs/numeric/is_not_numeric.d.ts +1 -1
- package/cjs/numeric/is_not_numeric.d.ts.map +1 -1
- package/cjs/numeric/is_not_positive.d.ts +13 -7
- package/cjs/numeric/is_not_positive.d.ts.map +1 -1
- package/cjs/numeric/is_numeric.d.ts +28 -5
- package/cjs/numeric/is_numeric.d.ts.map +1 -1
- package/cjs/numeric/is_positive.d.ts +19 -13
- package/cjs/numeric/is_positive.d.ts.map +1 -1
- package/cjs/object/ANotB.d.ts +1 -1
- package/cjs/object/ANotB.d.ts.map +1 -1
- package/cjs/object/adjust_exact_optional_props.d.ts +6 -3
- package/cjs/object/adjust_exact_optional_props.d.ts.map +1 -1
- package/cjs/object/everyKey.js +1 -2
- package/cjs/object/everyKey.js.map +1 -1
- package/cjs/object/facade.js +1 -2
- package/cjs/object/facade.js.map +1 -1
- package/cjs/object/filterKey.js +1 -2
- package/cjs/object/filterKey.js.map +1 -1
- package/cjs/object/findKey.js +1 -2
- package/cjs/object/findKey.js.map +1 -1
- package/cjs/object/forEachKey.js +1 -2
- package/cjs/object/forEachKey.js.map +1 -1
- package/cjs/object/getField.js +1 -2
- package/cjs/object/getField.js.map +1 -1
- package/cjs/object/hasKey.js +1 -2
- package/cjs/object/hasKey.js.map +1 -1
- package/cjs/object/hasProperty.js +1 -2
- package/cjs/object/hasProperty.js.map +1 -1
- package/cjs/object/index.d.ts +6 -6
- package/cjs/object/index.d.ts.map +1 -1
- package/cjs/object/index.js.map +1 -1
- package/cjs/object/is_not_object.d.ts +23 -19
- package/cjs/object/is_not_object.d.ts.map +1 -1
- package/cjs/object/is_object.d.ts +23 -19
- package/cjs/object/is_object.d.ts.map +1 -1
- package/cjs/object/left_join.d.ts +1 -1
- package/cjs/object/left_join.d.ts.map +1 -1
- package/cjs/object/mapKey.js +1 -2
- package/cjs/object/mapKey.js.map +1 -1
- package/cjs/object/mapProperties.js +1 -2
- package/cjs/object/mapProperties.js.map +1 -1
- package/cjs/object/merge.d.ts +54 -48
- package/cjs/object/merge.d.ts.map +1 -1
- package/cjs/object/omit.js +1 -2
- package/cjs/object/omit.js.map +1 -1
- package/cjs/object/pick.js +1 -2
- package/cjs/object/pick.js.map +1 -1
- package/cjs/object/properties.d.ts +29 -4
- package/cjs/object/properties.d.ts.map +1 -1
- package/cjs/object/properties.js +1 -0
- package/cjs/object/properties.js.map +1 -1
- package/cjs/object/record.js +1 -2
- package/cjs/object/record.js.map +1 -1
- package/cjs/object/reduceKey.js +2 -2
- package/cjs/object/reduceKey.js.map +1 -1
- package/cjs/object/replaceProperty.js +1 -2
- package/cjs/object/replaceProperty.js.map +1 -1
- package/cjs/object/someKey.js +1 -2
- package/cjs/object/someKey.js.map +1 -1
- package/cjs/object/split.js +1 -2
- package/cjs/object/split.js.map +1 -1
- package/cjs/object/typeOverrideIncompatible.d.ts.map +1 -1
- package/cjs/object/typeOverrideIncompatible.js +1 -2
- package/cjs/object/typeOverrideIncompatible.js.map +1 -1
- package/cjs/predicates/CanAssign.js +1 -2
- package/cjs/predicates/CanAssign.js.map +1 -1
- package/cjs/predicates/assignable.d.ts +23 -25
- package/cjs/predicates/assignable.d.ts.map +1 -1
- package/cjs/predicates/index.d.ts +1 -1
- package/cjs/predicates/index.d.ts.map +1 -1
- package/cjs/predicates/index.js.map +1 -1
- package/cjs/predicates/not_assignable.d.ts +24 -26
- package/cjs/predicates/not_assignable.d.ts.map +1 -1
- package/cjs/promise/MaybePromise.js +2 -2
- package/cjs/promise/MaybePromise.js.map +1 -1
- package/cjs/promise/index.d.ts +1 -1
- package/cjs/promise/index.d.ts.map +1 -1
- package/cjs/promise/index.js +1 -1
- package/cjs/promise/index.js.map +1 -1
- package/cjs/promise/isPromise.js +2 -3
- package/cjs/promise/isPromise.js.map +1 -1
- package/cjs/promise/mapSeries.js +1 -2
- package/cjs/promise/mapSeries.js.map +1 -1
- package/cjs/string/$extract_manipulated_string.d.ts.map +1 -1
- package/cjs/string/_string_type.d.ts.map +1 -1
- package/cjs/string/is_not_string.d.ts +20 -17
- package/cjs/string/is_not_string.d.ts.map +1 -1
- package/cjs/string/is_not_string_literal.d.ts +25 -22
- package/cjs/string/is_not_string_literal.d.ts.map +1 -1
- package/cjs/string/is_not_template_literal.d.ts +18 -13
- package/cjs/string/is_not_template_literal.d.ts.map +1 -1
- package/cjs/string/is_string.d.ts +20 -16
- package/cjs/string/is_string.d.ts.map +1 -1
- package/cjs/string/is_string_literal.d.ts +25 -22
- package/cjs/string/is_string_literal.d.ts.map +1 -1
- package/cjs/string/is_template_literal.d.ts +18 -13
- package/cjs/string/is_template_literal.d.ts.map +1 -1
- package/cjs/symbol/is_not_symbol.d.ts +15 -9
- package/cjs/symbol/is_not_symbol.d.ts.map +1 -1
- package/cjs/symbol/is_symbol.d.ts +15 -9
- package/cjs/symbol/is_symbol.d.ts.map +1 -1
- package/cjs/testing/stub.d.ts +2 -3
- package/cjs/testing/stub.d.ts.map +1 -1
- package/cjs/testing/stub.js +1 -2
- package/cjs/testing/stub.js.map +1 -1
- package/cjs/testing/test_type.d.ts +1 -1
- package/cjs/testing/test_type.d.ts.map +1 -1
- package/cjs/tuple/drop.js +1 -2
- package/cjs/tuple/drop.js.map +1 -1
- package/cjs/tuple/is_not_tuple.d.ts +18 -13
- package/cjs/tuple/is_not_tuple.d.ts.map +1 -1
- package/cjs/tuple/is_tuple.d.ts +18 -13
- package/cjs/tuple/is_tuple.d.ts.map +1 -1
- package/cjs/tuple/tuple_plus.common_prop_keys.d.ts +1 -1
- package/cjs/tuple/tuple_plus.common_prop_keys.d.ts.map +1 -1
- package/cjs/tuple/tuple_plus.drop_match.d.ts +1 -1
- package/cjs/tuple/tuple_plus.drop_match.d.ts.map +1 -1
- package/cjs/tuple/tuple_plus.find.d.ts +1 -1
- package/cjs/tuple/tuple_plus.find.d.ts.map +1 -1
- package/cjs/type-guard/is_type.d.ts +3 -3
- package/cjs/type-guard/is_type.d.ts.map +1 -1
- package/cjs/type-guard/is_type.js +1 -2
- package/cjs/type-guard/is_type.js.map +1 -1
- package/cjs/undefined/has_undefined.d.ts +4 -5
- package/cjs/undefined/has_undefined.d.ts.map +1 -1
- package/cjs/undefined/is_not_undefined.d.ts +15 -9
- package/cjs/undefined/is_not_undefined.d.ts.map +1 -1
- package/cjs/undefined/is_undefined.d.ts +15 -9
- package/cjs/undefined/is_undefined.d.ts.map +1 -1
- package/cjs/union/union_to_intersection.js +1 -2
- package/cjs/union/union_to_intersection.js.map +1 -1
- package/cjs/unknown/is_not_unknown.d.ts +15 -14
- package/cjs/unknown/is_not_unknown.d.ts.map +1 -1
- package/cjs/unknown/is_unknown.d.ts +15 -14
- package/cjs/unknown/is_unknown.d.ts.map +1 -1
- package/cjs/unknown/not_unknown_or.d.ts +1 -1
- package/cjs/unknown/not_unknown_or.d.ts.map +1 -1
- package/cjs/utils/Widen.d.ts +9 -2
- package/cjs/utils/Widen.d.ts.map +1 -1
- package/cjs/utils/as.d.ts +1 -1
- package/cjs/utils/as.d.ts.map +1 -1
- package/cjs/utils/as.js +3 -4
- package/cjs/utils/as.js.map +1 -1
- package/cjs/utils/excessive.d.ts +12 -0
- package/cjs/utils/excessive.d.ts.map +1 -0
- package/cjs/utils/excessive.js +3 -0
- package/cjs/utils/excessive.js.map +1 -0
- package/cjs/utils/inspect.js +1 -2
- package/cjs/utils/inspect.js.map +1 -1
- package/cjs/{type → utils}/no_infer.d.ts +9 -7
- package/cjs/utils/no_infer.d.ts.map +1 -0
- package/cjs/{type → utils}/no_infer.js.map +1 -1
- package/cjs/void/is_not_void.d.ts +17 -10
- package/cjs/void/is_not_void.d.ts.map +1 -1
- package/cjs/void/is_void.d.ts +17 -10
- package/cjs/void/is_void.d.ts.map +1 -1
- package/{cjs/type_plus → esm/$type}/$resolve_options.d.ts +2 -2
- package/esm/$type/$resolve_options.d.ts.map +1 -0
- package/esm/$type/$resolve_options.js.map +1 -0
- package/esm/$type/$type.d.ts +34 -0
- package/esm/$type/$type.d.ts.map +1 -0
- package/esm/{type_plus → $type}/$type.js.map +1 -1
- package/{cjs/type_plus → esm/$type}/branch/$branch.d.ts +3 -3
- package/esm/$type/branch/$branch.d.ts.map +1 -0
- package/esm/$type/branch/$branch.js.map +1 -0
- package/{cjs/type_plus → esm/$type}/branch/$input_options.d.ts +2 -1
- package/esm/$type/branch/$input_options.d.ts.map +1 -0
- package/esm/$type/branch/$input_options.js.map +1 -0
- package/esm/$type/branch/$resolve_branch.d.ts +22 -0
- package/esm/$type/branch/$resolve_branch.d.ts.map +1 -0
- package/esm/$type/branch/$resolve_branch.js.map +1 -0
- package/esm/$type/branch/$selection.d.ts +161 -0
- package/esm/$type/branch/$selection.d.ts.map +1 -0
- package/esm/$type/branch/$selection.js.map +1 -0
- package/esm/$type/distributive/$distributive.d.ts +27 -0
- package/esm/$type/distributive/$distributive.d.ts.map +1 -0
- package/esm/$type/distributive/$distributive.js.map +1 -0
- package/esm/$type/errors/$error.d.ts +23 -0
- package/esm/$type/errors/$error.d.ts.map +1 -0
- package/esm/{type_plus → $type/errors}/$error.js.map +1 -1
- package/{cjs/type_plus → esm/$type/errors}/$infer_error.d.ts +7 -6
- package/esm/$type/errors/$infer_error.d.ts.map +1 -0
- package/esm/$type/errors/$infer_error.js.map +1 -0
- package/{cjs/type → esm/$type/errors}/failed.d.ts +4 -0
- package/esm/$type/errors/failed.d.ts.map +1 -0
- package/esm/{type → $type/errors}/failed.js.map +1 -1
- package/esm/$type/exact/$exact.d.ts +27 -0
- package/esm/$type/exact/$exact.d.ts.map +1 -0
- package/esm/{type_plus/branch → $type/exact}/$exact.js.map +1 -1
- package/esm/$type/special/$any.d.ts +36 -0
- package/esm/$type/special/$any.d.ts.map +1 -0
- package/esm/$type/special/$any.js +2 -0
- package/esm/$type/special/$any.js.map +1 -0
- package/esm/$type/special/$never.d.ts +52 -0
- package/esm/$type/special/$never.d.ts.map +1 -0
- package/esm/$type/special/$never.js +2 -0
- package/esm/$type/special/$never.js.map +1 -0
- package/esm/$type/special/$special.d.ts +31 -0
- package/esm/$type/special/$special.d.ts.map +1 -0
- package/esm/$type/special/$special.js +2 -0
- package/esm/$type/special/$special.js.map +1 -0
- package/esm/$type/special/$unknown.d.ts +37 -0
- package/esm/$type/special/$unknown.d.ts.map +1 -0
- package/esm/$type/special/$unknown.js +2 -0
- package/esm/$type/special/$unknown.js.map +1 -0
- package/esm/$type/special/$void.d.ts +46 -0
- package/esm/$type/special/$void.d.ts.map +1 -0
- package/esm/$type/special/$void.js +2 -0
- package/esm/$type/special/$void.js.map +1 -0
- package/esm/$type/utils/$merge_options.d.ts +14 -0
- package/esm/$type/utils/$merge_options.d.ts.map +1 -0
- package/esm/$type/utils/$merge_options.js.map +1 -0
- package/esm/any/is_any.d.ts +23 -20
- package/esm/any/is_any.d.ts.map +1 -1
- package/esm/any/is_not_any.d.ts +15 -14
- package/esm/any/is_not_any.d.ts.map +1 -1
- package/esm/array/array.reverse.d.ts +1 -1
- package/esm/array/array.reverse.d.ts.map +1 -1
- package/esm/array/array.some.d.ts +1 -1
- package/esm/array/array.some.d.ts.map +1 -1
- package/esm/array/array_plus.common_prop_keys.d.ts +1 -1
- package/esm/array/array_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/array/array_plus.filter.d.ts +2 -2
- package/esm/array/array_plus.filter.d.ts.map +1 -1
- package/esm/array/array_plus.find.d.ts +2 -2
- package/esm/array/array_plus.find.d.ts.map +1 -1
- package/esm/array/array_plus.index_at.d.ts +16 -10
- package/esm/array/array_plus.index_at.d.ts.map +1 -1
- package/esm/array/array_plus.index_at.js.map +1 -1
- package/esm/array/array_plus.is_readonly.d.ts +3 -3
- package/esm/array/array_plus.is_readonly.d.ts.map +1 -1
- package/esm/array/head.d.ts +3 -3
- package/esm/array/head.d.ts.map +1 -1
- package/esm/array/is_array.d.ts +23 -19
- package/esm/array/is_array.d.ts.map +1 -1
- package/esm/array/is_not_array.d.ts +23 -19
- package/esm/array/is_not_array.d.ts.map +1 -1
- package/esm/array/last.d.ts +5 -3
- package/esm/array/last.d.ts.map +1 -1
- package/esm/assertion/assert_type.d.ts +1 -1
- package/esm/assertion/assert_type.d.ts.map +1 -1
- package/esm/assertion/assert_type.js +0 -2
- package/esm/assertion/assert_type.js.map +1 -1
- package/esm/bigint/is_bigint.d.ts +20 -16
- package/esm/bigint/is_bigint.d.ts.map +1 -1
- package/esm/bigint/is_bigint_literal.d.ts +18 -13
- package/esm/bigint/is_bigint_literal.d.ts.map +1 -1
- package/esm/bigint/is_not_bigint.d.ts +20 -16
- package/esm/bigint/is_not_bigint.d.ts.map +1 -1
- package/esm/bigint/is_not_bigint_literal.d.ts +19 -13
- package/esm/bigint/is_not_bigint_literal.d.ts.map +1 -1
- package/esm/binary/_binary.d.ts +2 -1
- package/esm/binary/_binary.d.ts.map +1 -1
- package/esm/binary/_binary.js +2 -1
- package/esm/binary/_binary.js.map +1 -1
- package/esm/binary/bit.d.ts +26 -0
- package/esm/binary/bit.d.ts.map +1 -0
- package/esm/binary/bit.js +2 -0
- package/esm/binary/bit.js.map +1 -0
- package/esm/boolean/is_boolean.d.ts +20 -16
- package/esm/boolean/is_boolean.d.ts.map +1 -1
- package/esm/boolean/is_false.d.ts +15 -9
- package/esm/boolean/is_false.d.ts.map +1 -1
- package/esm/boolean/is_not_boolean.d.ts +21 -16
- package/esm/boolean/is_not_boolean.d.ts.map +1 -1
- package/esm/boolean/is_not_false.d.ts +16 -9
- package/esm/boolean/is_not_false.d.ts.map +1 -1
- package/esm/boolean/is_not_true.d.ts +15 -9
- package/esm/boolean/is_not_true.d.ts.map +1 -1
- package/esm/boolean/is_true.d.ts +15 -9
- package/esm/boolean/is_true.d.ts.map +1 -1
- package/esm/equal/equal.d.ts +189 -74
- package/esm/equal/equal.d.ts.map +1 -1
- package/esm/equal/identity_equal.d.ts +5 -1
- package/esm/equal/identity_equal.d.ts.map +1 -1
- package/esm/equal/is_equal.d.ts +102 -0
- package/esm/equal/is_equal.d.ts.map +1 -0
- package/esm/equal/is_equal.js +2 -0
- package/esm/equal/is_equal.js.map +1 -0
- package/esm/function/extract_function.d.ts.map +1 -1
- package/esm/function/is_function.d.ts +28 -5
- package/esm/function/is_function.d.ts.map +1 -1
- package/esm/function/is_not_function.d.ts +1 -1
- package/esm/function/is_not_function.d.ts.map +1 -1
- package/esm/function/is_not_strict_function.d.ts +15 -13
- package/esm/function/is_not_strict_function.d.ts.map +1 -1
- package/esm/function/is_strict_function.d.ts +22 -17
- package/esm/function/is_strict_function.d.ts.map +1 -1
- package/esm/functional/Maybe.d.ts +1 -1
- package/esm/functional/Maybe.d.ts.map +1 -1
- package/esm/functional/compose.d.ts.map +1 -1
- package/esm/functional/compose.js +1 -3
- package/esm/functional/compose.js.map +1 -1
- package/esm/index.d.ts +21 -22
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/json.js +1 -1
- package/esm/json.js.map +1 -1
- package/esm/logical/logical.d.ts +35 -0
- package/esm/logical/logical.d.ts.map +1 -0
- package/esm/{predicates → logical}/logical.js.map +1 -1
- package/esm/math/abs.d.ts +1 -1
- package/esm/math/abs.d.ts.map +1 -1
- package/esm/math/numeric_struct.d.ts.map +1 -1
- package/esm/mix_types/box.d.ts +2 -2
- package/esm/mix_types/box.d.ts.map +1 -1
- package/esm/mix_types/is_any_or_never.d.ts +2 -3
- package/esm/mix_types/is_any_or_never.d.ts.map +1 -1
- package/esm/mix_types/merge.d.ts +18 -6
- package/esm/mix_types/merge.d.ts.map +1 -1
- package/esm/mix_types/merge.js.map +1 -1
- package/esm/never/is_never.d.ts +16 -15
- package/esm/never/is_never.d.ts.map +1 -1
- package/esm/never/is_not_never.d.ts +16 -15
- package/esm/never/is_not_never.d.ts.map +1 -1
- package/esm/null/is_not_null.d.ts +15 -9
- package/esm/null/is_not_null.d.ts.map +1 -1
- package/esm/null/is_null.d.ts +15 -9
- package/esm/null/is_null.d.ts.map +1 -1
- package/esm/number/is_not_number.d.ts +20 -16
- package/esm/number/is_not_number.d.ts.map +1 -1
- package/esm/number/is_not_number_literal.d.ts +18 -13
- package/esm/number/is_not_number_literal.d.ts.map +1 -1
- package/esm/number/is_number.d.ts +20 -16
- package/esm/number/is_number.d.ts.map +1 -1
- package/esm/number/is_number_literal.d.ts +18 -13
- package/esm/number/is_number_literal.d.ts.map +1 -1
- package/esm/numeric/is_integer.d.ts +18 -12
- package/esm/numeric/is_integer.d.ts.map +1 -1
- package/esm/numeric/is_negative.d.ts +19 -13
- package/esm/numeric/is_negative.d.ts.map +1 -1
- package/esm/numeric/is_not_integer.d.ts +13 -7
- package/esm/numeric/is_not_integer.d.ts.map +1 -1
- package/esm/numeric/is_not_negative.d.ts +15 -9
- package/esm/numeric/is_not_negative.d.ts.map +1 -1
- package/esm/numeric/is_not_numeric.d.ts +1 -1
- package/esm/numeric/is_not_numeric.d.ts.map +1 -1
- package/esm/numeric/is_not_positive.d.ts +13 -7
- package/esm/numeric/is_not_positive.d.ts.map +1 -1
- package/esm/numeric/is_numeric.d.ts +28 -5
- package/esm/numeric/is_numeric.d.ts.map +1 -1
- package/esm/numeric/is_positive.d.ts +19 -13
- package/esm/numeric/is_positive.d.ts.map +1 -1
- package/esm/object/ANotB.d.ts +1 -1
- package/esm/object/ANotB.d.ts.map +1 -1
- package/esm/object/adjust_exact_optional_props.d.ts +6 -3
- package/esm/object/adjust_exact_optional_props.d.ts.map +1 -1
- package/esm/object/index.d.ts +6 -6
- package/esm/object/index.d.ts.map +1 -1
- package/esm/object/index.js.map +1 -1
- package/esm/object/is_not_object.d.ts +23 -19
- package/esm/object/is_not_object.d.ts.map +1 -1
- package/esm/object/is_object.d.ts +23 -19
- package/esm/object/is_object.d.ts.map +1 -1
- package/esm/object/left_join.d.ts +1 -1
- package/esm/object/left_join.d.ts.map +1 -1
- package/esm/object/merge.d.ts +54 -48
- package/esm/object/merge.d.ts.map +1 -1
- package/esm/object/properties.d.ts +29 -4
- package/esm/object/properties.d.ts.map +1 -1
- package/esm/object/properties.js +1 -0
- package/esm/object/properties.js.map +1 -1
- package/esm/object/typeOverrideIncompatible.d.ts.map +1 -1
- package/esm/predicates/assignable.d.ts +23 -25
- package/esm/predicates/assignable.d.ts.map +1 -1
- package/esm/predicates/index.d.ts +1 -1
- package/esm/predicates/index.d.ts.map +1 -1
- package/esm/predicates/index.js.map +1 -1
- package/esm/predicates/not_assignable.d.ts +24 -26
- package/esm/predicates/not_assignable.d.ts.map +1 -1
- package/esm/promise/index.d.ts +1 -1
- package/esm/promise/index.d.ts.map +1 -1
- package/esm/promise/index.js +1 -1
- package/esm/promise/index.js.map +1 -1
- package/esm/promise/isPromise.js +1 -1
- package/esm/promise/isPromise.js.map +1 -1
- package/esm/string/$extract_manipulated_string.d.ts.map +1 -1
- package/esm/string/_string_type.d.ts.map +1 -1
- package/esm/string/is_not_string.d.ts +20 -17
- package/esm/string/is_not_string.d.ts.map +1 -1
- package/esm/string/is_not_string_literal.d.ts +25 -22
- package/esm/string/is_not_string_literal.d.ts.map +1 -1
- package/esm/string/is_not_template_literal.d.ts +18 -13
- package/esm/string/is_not_template_literal.d.ts.map +1 -1
- package/esm/string/is_string.d.ts +20 -16
- package/esm/string/is_string.d.ts.map +1 -1
- package/esm/string/is_string_literal.d.ts +25 -22
- package/esm/string/is_string_literal.d.ts.map +1 -1
- package/esm/string/is_template_literal.d.ts +18 -13
- package/esm/string/is_template_literal.d.ts.map +1 -1
- package/esm/symbol/is_not_symbol.d.ts +15 -9
- package/esm/symbol/is_not_symbol.d.ts.map +1 -1
- package/esm/symbol/is_symbol.d.ts +15 -9
- package/esm/symbol/is_symbol.d.ts.map +1 -1
- package/esm/testing/stub.d.ts +2 -3
- package/esm/testing/stub.d.ts.map +1 -1
- package/esm/testing/stub.js.map +1 -1
- package/esm/testing/test_type.d.ts +1 -1
- package/esm/testing/test_type.d.ts.map +1 -1
- package/esm/tuple/is_not_tuple.d.ts +18 -13
- package/esm/tuple/is_not_tuple.d.ts.map +1 -1
- package/esm/tuple/is_tuple.d.ts +18 -13
- package/esm/tuple/is_tuple.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.common_prop_keys.d.ts +1 -1
- package/esm/tuple/tuple_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.drop_match.d.ts +1 -1
- package/esm/tuple/tuple_plus.drop_match.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.find.d.ts +1 -1
- package/esm/tuple/tuple_plus.find.d.ts.map +1 -1
- package/esm/type-guard/is_type.d.ts +3 -3
- package/esm/type-guard/is_type.d.ts.map +1 -1
- package/esm/undefined/has_undefined.d.ts +4 -5
- package/esm/undefined/has_undefined.d.ts.map +1 -1
- package/esm/undefined/is_not_undefined.d.ts +15 -9
- package/esm/undefined/is_not_undefined.d.ts.map +1 -1
- package/esm/undefined/is_undefined.d.ts +15 -9
- package/esm/undefined/is_undefined.d.ts.map +1 -1
- package/esm/unknown/is_not_unknown.d.ts +15 -14
- package/esm/unknown/is_not_unknown.d.ts.map +1 -1
- package/esm/unknown/is_unknown.d.ts +15 -14
- package/esm/unknown/is_unknown.d.ts.map +1 -1
- package/esm/unknown/not_unknown_or.d.ts +1 -1
- package/esm/unknown/not_unknown_or.d.ts.map +1 -1
- package/esm/utils/Widen.d.ts +9 -2
- package/esm/utils/Widen.d.ts.map +1 -1
- package/esm/utils/as.d.ts +1 -1
- package/esm/utils/as.d.ts.map +1 -1
- package/esm/utils/excessive.d.ts +12 -0
- package/esm/utils/excessive.d.ts.map +1 -0
- package/esm/utils/excessive.js +2 -0
- package/esm/utils/excessive.js.map +1 -0
- package/esm/{type → utils}/no_infer.d.ts +9 -7
- package/esm/utils/no_infer.d.ts.map +1 -0
- package/esm/{type → utils}/no_infer.js.map +1 -1
- package/esm/void/is_not_void.d.ts +17 -10
- package/esm/void/is_not_void.d.ts.map +1 -1
- package/esm/void/is_void.d.ts +17 -10
- package/esm/void/is_void.d.ts.map +1 -1
- package/package.json +18 -22
- package/readme.md +74 -74
- package/src/{type_plus → $type}/$resolve_options.ts +4 -2
- package/src/$type/$type.ts +37 -0
- package/src/{type_plus → $type}/branch/$branch.ts +4 -2
- package/src/{type_plus → $type}/branch/$input_options.ts +2 -1
- package/src/$type/branch/$resolve_branch.ts +46 -0
- package/src/$type/branch/$selection.ts +170 -0
- package/src/$type/branch/readme.md +78 -0
- package/src/$type/distributive/$distributive.ts +34 -0
- package/src/$type/distributive/readme.md +26 -0
- package/src/$type/errors/$error.ts +20 -0
- package/src/{type_plus → $type/errors}/$infer_error.ts +7 -8
- package/src/{type → $type/errors}/failed.ts +4 -0
- package/src/$type/errors/readme.md +60 -0
- package/src/$type/exact/$exact.ts +34 -0
- package/src/$type/exact/readme.md +27 -0
- package/src/$type/readme.md +23 -0
- package/src/$type/special/$any.ts +34 -0
- package/src/$type/special/$never.ts +51 -0
- package/src/$type/special/$special.ts +40 -0
- package/src/$type/special/$unknown.ts +35 -0
- package/src/$type/special/$void.ts +44 -0
- package/src/$type/special/readme.md +51 -0
- package/src/$type/utils/$merge_options.ts +11 -0
- package/src/$type/utils/readme.md +10 -0
- package/src/any/is_any.ts +23 -20
- package/src/any/is_not_any.ts +15 -14
- package/src/any/readme.md +30 -19
- package/src/array/array.reverse.ts +2 -5
- package/src/array/array.some.ts +1 -1
- package/src/array/array_plus.common_prop_keys.ts +1 -1
- package/src/array/array_plus.filter.ts +2 -2
- package/src/array/array_plus.find.ts +2 -2
- package/src/array/array_plus.index_at.ts +23 -29
- package/src/array/array_plus.is_readonly.ts +3 -3
- package/src/array/head.ts +3 -3
- package/src/array/is_array.ts +30 -23
- package/src/array/is_not_array.ts +30 -23
- package/src/array/last.ts +6 -14
- package/src/array/readme.md +3 -3
- package/src/assertion/assert_type.ts +1 -3
- package/src/bigint/is_bigint.ts +28 -21
- package/src/bigint/is_bigint_literal.ts +25 -17
- package/src/bigint/is_not_bigint.ts +27 -20
- package/src/bigint/is_not_bigint_literal.ts +26 -17
- package/src/bigint/readme.md +25 -8
- package/src/binary/_binary.ts +2 -1
- package/src/binary/bit.ts +29 -0
- package/src/binary/readme.md +11 -0
- package/src/boolean/is_boolean.ts +30 -23
- package/src/boolean/is_false.ts +18 -9
- package/src/boolean/is_not_boolean.ts +30 -22
- package/src/boolean/is_not_false.ts +19 -9
- package/src/boolean/is_not_true.ts +18 -9
- package/src/boolean/is_true.ts +18 -9
- package/src/equal/equal.ts +307 -89
- package/src/equal/identity_equal.ts +3 -7
- package/src/equal/is_equal.ts +150 -0
- package/src/equal/readme.md +20 -1
- package/src/function/is_function.ts +37 -5
- package/src/function/is_not_function.ts +1 -1
- package/src/function/is_not_strict_function.ts +16 -14
- package/src/function/is_strict_function.ts +29 -21
- package/src/functional/Maybe.ts +1 -1
- package/src/functional/compose.ts +1 -3
- package/src/index.ts +21 -22
- package/src/json.ts +1 -1
- package/src/logical/logical.ts +52 -0
- package/src/logical/readme.md +53 -0
- package/src/math/abs.ts +1 -1
- package/src/math/numeric_struct.ts +6 -6
- package/src/mix_types/box.ts +2 -2
- package/src/mix_types/is_any_or_never.ts +2 -3
- package/src/mix_types/merge.ts +22 -17
- package/src/never/is_never.ts +16 -15
- package/src/never/is_not_never.ts +16 -15
- package/src/null/is_not_null.ts +18 -9
- package/src/null/is_null.ts +18 -9
- package/src/number/is_not_number.ts +27 -20
- package/src/number/is_not_number_literal.ts +25 -17
- package/src/number/is_number.ts +27 -20
- package/src/number/is_number_literal.ts +25 -17
- package/src/numeric/is_integer.ts +29 -30
- package/src/numeric/is_negative.ts +29 -20
- package/src/numeric/is_not_integer.ts +19 -10
- package/src/numeric/is_not_negative.ts +25 -13
- package/src/numeric/is_not_numeric.ts +1 -1
- package/src/numeric/is_not_positive.ts +19 -9
- package/src/numeric/is_numeric.ts +37 -5
- package/src/numeric/is_positive.ts +29 -21
- package/src/object/ANotB.ts +1 -1
- package/src/object/adjust_exact_optional_props.ts +10 -1
- package/src/object/index.ts +6 -6
- package/src/object/is_not_object.ts +29 -22
- package/src/object/is_object.ts +29 -22
- package/src/object/left_join.ts +1 -1
- package/src/object/merge.ts +53 -49
- package/src/object/properties.ts +35 -2
- package/src/predicates/assignable.ts +23 -25
- package/src/predicates/index.ts +1 -1
- package/src/predicates/not_assignable.ts +24 -26
- package/src/promise/index.ts +1 -1
- package/src/promise/isPromise.ts +1 -1
- package/src/string/$extract_manipulated_string.ts +32 -28
- package/src/string/_string_type.ts +9 -8
- package/src/string/is_not_string.ts +29 -23
- package/src/string/is_not_string_literal.ts +36 -30
- package/src/string/is_not_template_literal.ts +24 -16
- package/src/string/is_string.ts +27 -20
- package/src/string/is_string_literal.ts +36 -30
- package/src/string/is_template_literal.ts +24 -16
- package/src/symbol/is_not_symbol.ts +18 -9
- package/src/symbol/is_symbol.ts +18 -9
- package/src/testing/stub.ts +0 -1
- package/src/testing/test_type.ts +1 -1
- package/src/tuple/is_not_tuple.ts +26 -17
- package/src/tuple/is_tuple.ts +25 -17
- package/src/tuple/tuple_plus.common_prop_keys.ts +1 -1
- package/src/tuple/tuple_plus.drop_match.ts +1 -1
- package/src/tuple/tuple_plus.find.ts +1 -1
- package/src/type-guard/is_type.ts +1 -1
- package/src/undefined/has_undefined.ts +5 -6
- package/src/undefined/is_not_undefined.ts +18 -9
- package/src/undefined/is_undefined.ts +18 -9
- package/src/unknown/is_not_unknown.ts +15 -14
- package/src/unknown/is_unknown.ts +15 -14
- package/src/unknown/not_unknown_or.ts +1 -1
- package/src/utils/Widen.ts +9 -2
- package/src/utils/excessive.ts +11 -0
- package/src/{type → utils}/no_infer.ts +13 -7
- package/src/utils/readme.md +17 -0
- package/src/void/is_not_void.ts +20 -10
- package/src/void/is_void.ts +20 -10
- package/cjs/any/any.d.ts +0 -49
- package/cjs/any/any.d.ts.map +0 -1
- package/cjs/any/any.js.map +0 -1
- package/cjs/binary/Bit.d.ts +0 -6
- package/cjs/binary/Bit.d.ts.map +0 -1
- package/cjs/binary/Bit.js.map +0 -1
- package/cjs/binary/index.d.ts +0 -3
- package/cjs/binary/index.d.ts.map +0 -1
- package/cjs/binary/index.js +0 -6
- package/cjs/binary/index.js.map +0 -1
- package/cjs/never/never.d.ts +0 -75
- package/cjs/never/never.d.ts.map +0 -1
- package/cjs/never/never.js.map +0 -1
- package/cjs/predicates/logical.d.ts +0 -5
- package/cjs/predicates/logical.d.ts.map +0 -1
- package/cjs/type/failed.d.ts.map +0 -1
- package/cjs/type/no_infer.d.ts.map +0 -1
- package/cjs/type_plus/$equality.d.ts +0 -12
- package/cjs/type_plus/$equality.d.ts.map +0 -1
- package/cjs/type_plus/$equality.js +0 -3
- package/cjs/type_plus/$equality.js.map +0 -1
- package/cjs/type_plus/$error.d.ts +0 -8
- package/cjs/type_plus/$error.d.ts.map +0 -1
- package/cjs/type_plus/$infer_error.d.ts.map +0 -1
- package/cjs/type_plus/$infer_error.js.map +0 -1
- package/cjs/type_plus/$merge_options.d.ts +0 -11
- package/cjs/type_plus/$merge_options.d.ts.map +0 -1
- package/cjs/type_plus/$merge_options.js.map +0 -1
- package/cjs/type_plus/$resolve_options.d.ts.map +0 -1
- package/cjs/type_plus/$resolve_options.js.map +0 -1
- package/cjs/type_plus/$special_type.d.ts +0 -19
- package/cjs/type_plus/$special_type.d.ts.map +0 -1
- package/cjs/type_plus/$special_type.js +0 -3
- package/cjs/type_plus/$special_type.js.map +0 -1
- package/cjs/type_plus/$type.d.ts +0 -11
- package/cjs/type_plus/$type.d.ts.map +0 -1
- package/cjs/type_plus/branch/$branch.d.ts.map +0 -1
- package/cjs/type_plus/branch/$branch.js.map +0 -1
- package/cjs/type_plus/branch/$distributive.d.ts +0 -19
- package/cjs/type_plus/branch/$distributive.d.ts.map +0 -1
- package/cjs/type_plus/branch/$distributive.js.map +0 -1
- package/cjs/type_plus/branch/$exact.d.ts +0 -21
- package/cjs/type_plus/branch/$exact.d.ts.map +0 -1
- package/cjs/type_plus/branch/$input_options.d.ts.map +0 -1
- package/cjs/type_plus/branch/$input_options.js.map +0 -1
- package/cjs/type_plus/branch/$is_distributive.d.ts +0 -6
- package/cjs/type_plus/branch/$is_distributive.d.ts.map +0 -1
- package/cjs/type_plus/branch/$is_distributive.js +0 -3
- package/cjs/type_plus/branch/$is_distributive.js.map +0 -1
- package/cjs/type_plus/branch/$override.d.ts +0 -21
- package/cjs/type_plus/branch/$override.d.ts.map +0 -1
- package/cjs/type_plus/branch/$override.js +0 -3
- package/cjs/type_plus/branch/$override.js.map +0 -1
- package/cjs/type_plus/branch/$resolve_branch.d.ts +0 -29
- package/cjs/type_plus/branch/$resolve_branch.d.ts.map +0 -1
- package/cjs/type_plus/branch/$resolve_branch.js.map +0 -1
- package/cjs/type_plus/branch/$select.d.ts +0 -77
- package/cjs/type_plus/branch/$select.d.ts.map +0 -1
- package/cjs/type_plus/branch/$select.js +0 -3
- package/cjs/type_plus/branch/$select.js.map +0 -1
- package/cjs/type_plus/branch/$select_invert.d.ts +0 -75
- package/cjs/type_plus/branch/$select_invert.d.ts.map +0 -1
- package/cjs/type_plus/branch/$select_invert.js +0 -3
- package/cjs/type_plus/branch/$select_invert.js.map +0 -1
- package/cjs/type_plus/branch/$select_invert_strict.d.ts +0 -75
- package/cjs/type_plus/branch/$select_invert_strict.d.ts.map +0 -1
- package/cjs/type_plus/branch/$select_invert_strict.js +0 -3
- package/cjs/type_plus/branch/$select_invert_strict.js.map +0 -1
- package/cjs/type_plus/branch/$select_strict.d.ts +0 -76
- package/cjs/type_plus/branch/$select_strict.d.ts.map +0 -1
- package/cjs/type_plus/branch/$select_strict.js +0 -3
- package/cjs/type_plus/branch/$select_strict.js.map +0 -1
- package/cjs/type_plus/branch/$selection.d.ts +0 -127
- package/cjs/type_plus/branch/$selection.d.ts.map +0 -1
- package/cjs/type_plus/branch/$selection.js.map +0 -1
- package/cjs/type_plus/branch/$selection_options.d.ts +0 -37
- package/cjs/type_plus/branch/$selection_options.d.ts.map +0 -1
- package/cjs/type_plus/branch/$selection_options.js +0 -3
- package/cjs/type_plus/branch/$selection_options.js.map +0 -1
- package/cjs/unknown/unknown.d.ts +0 -55
- package/cjs/unknown/unknown.d.ts.map +0 -1
- package/cjs/unknown/unknown.js +0 -3
- package/cjs/unknown/unknown.js.map +0 -1
- package/esm/any/any.d.ts +0 -49
- package/esm/any/any.d.ts.map +0 -1
- package/esm/any/any.js +0 -2
- package/esm/any/any.js.map +0 -1
- package/esm/binary/Bit.d.ts +0 -6
- package/esm/binary/Bit.d.ts.map +0 -1
- package/esm/binary/Bit.js +0 -2
- package/esm/binary/Bit.js.map +0 -1
- package/esm/binary/index.d.ts +0 -3
- package/esm/binary/index.d.ts.map +0 -1
- package/esm/binary/index.js +0 -3
- package/esm/binary/index.js.map +0 -1
- package/esm/never/never.d.ts +0 -75
- package/esm/never/never.d.ts.map +0 -1
- package/esm/never/never.js +0 -2
- package/esm/never/never.js.map +0 -1
- package/esm/predicates/logical.d.ts +0 -5
- package/esm/predicates/logical.d.ts.map +0 -1
- package/esm/type/failed.d.ts.map +0 -1
- package/esm/type/no_infer.d.ts.map +0 -1
- package/esm/type_plus/$equality.d.ts +0 -12
- package/esm/type_plus/$equality.d.ts.map +0 -1
- package/esm/type_plus/$equality.js +0 -2
- package/esm/type_plus/$equality.js.map +0 -1
- package/esm/type_plus/$error.d.ts +0 -8
- package/esm/type_plus/$error.d.ts.map +0 -1
- package/esm/type_plus/$infer_error.d.ts.map +0 -1
- package/esm/type_plus/$infer_error.js.map +0 -1
- package/esm/type_plus/$merge_options.d.ts +0 -11
- package/esm/type_plus/$merge_options.d.ts.map +0 -1
- package/esm/type_plus/$merge_options.js.map +0 -1
- package/esm/type_plus/$resolve_options.d.ts.map +0 -1
- package/esm/type_plus/$resolve_options.js.map +0 -1
- package/esm/type_plus/$special_type.d.ts +0 -19
- package/esm/type_plus/$special_type.d.ts.map +0 -1
- package/esm/type_plus/$special_type.js +0 -2
- package/esm/type_plus/$special_type.js.map +0 -1
- package/esm/type_plus/$type.d.ts +0 -11
- package/esm/type_plus/$type.d.ts.map +0 -1
- package/esm/type_plus/branch/$branch.d.ts.map +0 -1
- package/esm/type_plus/branch/$branch.js.map +0 -1
- package/esm/type_plus/branch/$distributive.d.ts +0 -19
- package/esm/type_plus/branch/$distributive.d.ts.map +0 -1
- package/esm/type_plus/branch/$distributive.js.map +0 -1
- package/esm/type_plus/branch/$exact.d.ts +0 -21
- package/esm/type_plus/branch/$exact.d.ts.map +0 -1
- package/esm/type_plus/branch/$input_options.d.ts.map +0 -1
- package/esm/type_plus/branch/$input_options.js.map +0 -1
- package/esm/type_plus/branch/$is_distributive.d.ts +0 -6
- package/esm/type_plus/branch/$is_distributive.d.ts.map +0 -1
- package/esm/type_plus/branch/$is_distributive.js +0 -2
- package/esm/type_plus/branch/$is_distributive.js.map +0 -1
- package/esm/type_plus/branch/$override.d.ts +0 -21
- package/esm/type_plus/branch/$override.d.ts.map +0 -1
- package/esm/type_plus/branch/$override.js +0 -2
- package/esm/type_plus/branch/$override.js.map +0 -1
- package/esm/type_plus/branch/$resolve_branch.d.ts +0 -29
- package/esm/type_plus/branch/$resolve_branch.d.ts.map +0 -1
- package/esm/type_plus/branch/$resolve_branch.js.map +0 -1
- package/esm/type_plus/branch/$select.d.ts +0 -77
- package/esm/type_plus/branch/$select.d.ts.map +0 -1
- package/esm/type_plus/branch/$select.js +0 -2
- package/esm/type_plus/branch/$select.js.map +0 -1
- package/esm/type_plus/branch/$select_invert.d.ts +0 -75
- package/esm/type_plus/branch/$select_invert.d.ts.map +0 -1
- package/esm/type_plus/branch/$select_invert.js +0 -2
- package/esm/type_plus/branch/$select_invert.js.map +0 -1
- package/esm/type_plus/branch/$select_invert_strict.d.ts +0 -75
- package/esm/type_plus/branch/$select_invert_strict.d.ts.map +0 -1
- package/esm/type_plus/branch/$select_invert_strict.js +0 -2
- package/esm/type_plus/branch/$select_invert_strict.js.map +0 -1
- package/esm/type_plus/branch/$select_strict.d.ts +0 -76
- package/esm/type_plus/branch/$select_strict.d.ts.map +0 -1
- package/esm/type_plus/branch/$select_strict.js +0 -2
- package/esm/type_plus/branch/$select_strict.js.map +0 -1
- package/esm/type_plus/branch/$selection.d.ts +0 -127
- package/esm/type_plus/branch/$selection.d.ts.map +0 -1
- package/esm/type_plus/branch/$selection.js.map +0 -1
- package/esm/type_plus/branch/$selection_options.d.ts +0 -37
- package/esm/type_plus/branch/$selection_options.d.ts.map +0 -1
- package/esm/type_plus/branch/$selection_options.js +0 -2
- package/esm/type_plus/branch/$selection_options.js.map +0 -1
- package/esm/unknown/unknown.d.ts +0 -55
- package/esm/unknown/unknown.d.ts.map +0 -1
- package/esm/unknown/unknown.js +0 -2
- package/esm/unknown/unknown.js.map +0 -1
- package/src/any/any.ts +0 -46
- package/src/binary/Bit.ts +0 -6
- package/src/binary/index.ts +0 -2
- package/src/never/never.ts +0 -78
- package/src/predicates/logical.ts +0 -19
- package/src/type/readme.md +0 -36
- package/src/type_plus/$equality.ts +0 -12
- package/src/type_plus/$error.ts +0 -8
- package/src/type_plus/$merge_options.ts +0 -8
- package/src/type_plus/$special_type.ts +0 -26
- package/src/type_plus/$type.ts +0 -10
- package/src/type_plus/branch/$distributive.ts +0 -19
- package/src/type_plus/branch/$exact.ts +0 -28
- package/src/type_plus/branch/$is_distributive.ts +0 -15
- package/src/type_plus/branch/$override.ts +0 -22
- package/src/type_plus/branch/$resolve_branch.ts +0 -71
- package/src/type_plus/branch/$select.ts +0 -89
- package/src/type_plus/branch/$select_invert.ts +0 -83
- package/src/type_plus/branch/$select_invert_strict.ts +0 -83
- package/src/type_plus/branch/$select_strict.ts +0 -88
- package/src/type_plus/branch/$selection.ts +0 -134
- package/src/type_plus/branch/$selection_options.ts +0 -36
- package/src/type_plus/readme.md +0 -25
- package/src/unknown/unknown.ts +0 -57
- /package/cjs/{type_plus → $type}/$resolve_options.js +0 -0
- /package/cjs/{type_plus → $type}/$type.js +0 -0
- /package/cjs/{type_plus → $type}/branch/$branch.js +0 -0
- /package/cjs/{type_plus → $type}/branch/$input_options.js +0 -0
- /package/cjs/{type_plus → $type}/branch/$resolve_branch.js +0 -0
- /package/cjs/{type_plus → $type}/branch/$selection.js +0 -0
- /package/cjs/{type_plus/branch → $type/distributive}/$distributive.js +0 -0
- /package/cjs/{type_plus → $type/errors}/$error.js +0 -0
- /package/cjs/{type_plus → $type/errors}/$infer_error.js +0 -0
- /package/cjs/{type → $type/errors}/failed.js +0 -0
- /package/cjs/{type_plus/branch → $type/exact}/$exact.js +0 -0
- /package/cjs/{type_plus → $type/utils}/$merge_options.js +0 -0
- /package/cjs/{predicates → logical}/logical.js +0 -0
- /package/cjs/{type → utils}/no_infer.js +0 -0
- /package/esm/{type_plus → $type}/$resolve_options.js +0 -0
- /package/esm/{type_plus → $type}/$type.js +0 -0
- /package/esm/{type_plus → $type}/branch/$branch.js +0 -0
- /package/esm/{type_plus → $type}/branch/$input_options.js +0 -0
- /package/esm/{type_plus → $type}/branch/$resolve_branch.js +0 -0
- /package/esm/{type_plus → $type}/branch/$selection.js +0 -0
- /package/esm/{type_plus/branch → $type/distributive}/$distributive.js +0 -0
- /package/esm/{type_plus → $type/errors}/$error.js +0 -0
- /package/esm/{type_plus → $type/errors}/$infer_error.js +0 -0
- /package/esm/{type → $type/errors}/failed.js +0 -0
- /package/esm/{type_plus/branch → $type/exact}/$exact.js +0 -0
- /package/esm/{type_plus → $type/utils}/$merge_options.js +0 -0
- /package/esm/{predicates → logical}/logical.js +0 -0
- /package/esm/{type → utils}/no_infer.js +0 -0
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type { $
|
|
2
|
-
import type { $
|
|
3
|
-
import type { $
|
|
4
|
-
import type { $
|
|
5
|
-
import type { $
|
|
6
|
-
import type { $
|
|
7
|
-
import type { $
|
|
8
|
-
import type { $
|
|
9
|
-
import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js'
|
|
10
|
-
import type { $Unknown } from '../unknown/unknown.js'
|
|
1
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
2
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
3
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
4
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
5
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
6
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
7
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
8
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* 🎭 *predicate*
|
|
@@ -56,18 +54,18 @@ import type { $Unknown } from '../unknown/unknown.js'
|
|
|
56
54
|
* type R = Assignable<never, any, { $never: 1 }> // 1
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
export type Assignable<A, B, $O extends Assignable.$Options = {}> = $
|
|
57
|
+
export type Assignable<A, B, $O extends Assignable.$Options = {}> = $Special<
|
|
60
58
|
B,
|
|
61
59
|
{
|
|
62
|
-
$any: $ResolveBranch
|
|
63
|
-
$unknown: $ResolveBranch
|
|
64
|
-
$never: $ResolveBranch
|
|
65
|
-
$else: $
|
|
60
|
+
$any: $ResolveBranch<$O, [0 extends 1 & A ? $Any : unknown, $Then], A>
|
|
61
|
+
$unknown: $ResolveBranch<$O, [[A, unknown] extends [unknown, A] ? $Unknown : unknown, $Then], A>
|
|
62
|
+
$never: $ResolveBranch<$O, [A, never] extends [never, A] ? [$Never, $Then] : [$Else], A>
|
|
63
|
+
$else: $Special<
|
|
66
64
|
A,
|
|
67
65
|
{
|
|
68
|
-
$any: $ResolveBranch
|
|
69
|
-
$unknown: $ResolveBranch
|
|
70
|
-
$never: $ResolveBranch
|
|
66
|
+
$any: $ResolveBranch<$O, [$Any, $Then], A>
|
|
67
|
+
$unknown: $ResolveBranch<$O, [$Unknown, $Then], A>
|
|
68
|
+
$never: $ResolveBranch<$O, [$Never, $Then], A>
|
|
71
69
|
$else: Assignable.$<A, B, $O>
|
|
72
70
|
}
|
|
73
71
|
>
|
|
@@ -75,9 +73,9 @@ export type Assignable<A, B, $O extends Assignable.$Options = {}> = $SpecialType
|
|
|
75
73
|
>
|
|
76
74
|
|
|
77
75
|
export namespace Assignable {
|
|
78
|
-
export type $Options = $
|
|
79
|
-
export type $Default = $
|
|
80
|
-
export type $Branch<$O extends $
|
|
76
|
+
export type $Options = $Selection.Options & $Distributive.Options & $InputOptions<$Any | $Unknown | $Never>
|
|
77
|
+
export type $Default = $Selection.Predicate & $Distributive.Default
|
|
78
|
+
export type $Branch<$O extends $Distributive.Options = {}> = $Selection.Branch & $O
|
|
81
79
|
|
|
82
80
|
/**
|
|
83
81
|
* 🧰 *type util*
|
|
@@ -89,13 +87,13 @@ export namespace Assignable {
|
|
|
89
87
|
*
|
|
90
88
|
* It is suitable for building custom types.
|
|
91
89
|
*/
|
|
92
|
-
export type $<A, B, $O extends $UtilOptions> = $
|
|
90
|
+
export type $<A, B, $O extends $UtilOptions> = $Distributive.Parse<
|
|
93
91
|
$O,
|
|
94
92
|
{
|
|
95
|
-
$then: A extends B ? $ResolveBranch
|
|
96
|
-
$else: [A] extends [B] ? $ResolveBranch
|
|
93
|
+
$then: A extends B ? $ResolveBranch<$O, [$Then], A> : $ResolveBranch<$O, [$Else], A>
|
|
94
|
+
$else: [A] extends [B] ? $ResolveBranch<$O, [$Then], A> : $ResolveBranch<$O, [$Else], A>
|
|
97
95
|
}
|
|
98
96
|
>
|
|
99
97
|
|
|
100
|
-
export type $UtilOptions = $
|
|
98
|
+
export type $UtilOptions = $Selection.Options & $Distributive.Options
|
|
101
99
|
}
|
package/src/predicates/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export type { And, Not, Or, Xor } from '../logical/logical.js'
|
|
1
2
|
export * from './CanAssign.js'
|
|
2
3
|
export type { Extendable, IsExtend, IsNotExtend, NotExtendable } from './Extends.js'
|
|
3
4
|
export type { If } from './If.js'
|
|
4
5
|
export type { IsEmptyObject } from './IsEmptyObject.js'
|
|
5
6
|
export type { IsLiteral } from './literal.js'
|
|
6
|
-
export type { And, Not, Or, Xor } from './logical.js'
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import type { $
|
|
2
|
-
import type { $
|
|
3
|
-
import type { $
|
|
4
|
-
import type { $
|
|
5
|
-
import type { $
|
|
6
|
-
import type { $
|
|
7
|
-
import type { $
|
|
8
|
-
import type { $
|
|
9
|
-
import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js'
|
|
10
|
-
import type { $Unknown } from '../unknown/unknown.js'
|
|
1
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
2
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
3
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
4
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
5
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
6
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
7
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
8
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* 🎭 *predicate*
|
|
14
12
|
*
|
|
15
|
-
* Validate if `A` is not assignable to `B`.
|
|
13
|
+
* Validate if `A` is not assignable to `B`.]
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
18
16
|
* ```ts
|
|
@@ -56,18 +54,18 @@ import type { $Unknown } from '../unknown/unknown.js'
|
|
|
56
54
|
* type R = NotAssignable<never, any, { $never: 1 }> // 1
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
export type NotAssignable<A, B, $O extends NotAssignable.$Options = {}> = $
|
|
57
|
+
export type NotAssignable<A, B, $O extends NotAssignable.$Options = {}> = $Special<
|
|
60
58
|
B,
|
|
61
59
|
{
|
|
62
|
-
$any: $ResolveBranch
|
|
63
|
-
$unknown: $ResolveBranch
|
|
64
|
-
$never: $ResolveBranch
|
|
65
|
-
$else: $
|
|
60
|
+
$any: $ResolveBranch<$O, [0 extends 1 & A ? $Any : unknown, $Else], A>
|
|
61
|
+
$unknown: $ResolveBranch<$O, [[A, unknown] extends [unknown, A] ? $Unknown : unknown, $Else], A>
|
|
62
|
+
$never: $ResolveBranch<$O, [A, never] extends [never, A] ? [$Never, $Else] : [$Then], A>
|
|
63
|
+
$else: $Special<
|
|
66
64
|
A,
|
|
67
65
|
{
|
|
68
|
-
$any: $ResolveBranch
|
|
69
|
-
$unknown: $ResolveBranch
|
|
70
|
-
$never: $ResolveBranch
|
|
66
|
+
$any: $ResolveBranch<$O, [$Any, $Else], A>
|
|
67
|
+
$unknown: $ResolveBranch<$O, [$Unknown, $Else], A>
|
|
68
|
+
$never: $ResolveBranch<$O, [$Never, $Else], A>
|
|
71
69
|
$else: NotAssignable.$<A, B, $O>
|
|
72
70
|
}
|
|
73
71
|
>
|
|
@@ -75,9 +73,9 @@ export type NotAssignable<A, B, $O extends NotAssignable.$Options = {}> = $Speci
|
|
|
75
73
|
>
|
|
76
74
|
|
|
77
75
|
export namespace NotAssignable {
|
|
78
|
-
export type $Options = $
|
|
79
|
-
export type $Default = $
|
|
80
|
-
export type $Branch<$O extends $
|
|
76
|
+
export type $Options = $Selection.Options & $Distributive.Options & $InputOptions<$Any | $Unknown | $Never>
|
|
77
|
+
export type $Default = $Selection.Predicate & $Distributive.Default
|
|
78
|
+
export type $Branch<$O extends $Distributive.Options = {}> = $Selection.Branch & $O
|
|
81
79
|
|
|
82
80
|
/**
|
|
83
81
|
* 🧰 *type util*
|
|
@@ -89,13 +87,13 @@ export namespace NotAssignable {
|
|
|
89
87
|
*
|
|
90
88
|
* It is suitable for building custom types.
|
|
91
89
|
*/
|
|
92
|
-
export type $<A, B, $O extends $UtilOptions> = $
|
|
90
|
+
export type $<A, B, $O extends $UtilOptions> = $Distributive.Parse<
|
|
93
91
|
$O,
|
|
94
92
|
{
|
|
95
|
-
$then: A extends B ? $ResolveBranch
|
|
96
|
-
$else: [A] extends [B] ? $ResolveBranch
|
|
93
|
+
$then: A extends B ? $ResolveBranch<$O, [$Else], A> : $ResolveBranch<$O, [$Then], A>
|
|
94
|
+
$else: [A] extends [B] ? $ResolveBranch<$O, [$Else], A> : $ResolveBranch<$O, [$Then], A>
|
|
97
95
|
}
|
|
98
96
|
>
|
|
99
97
|
|
|
100
|
-
export type $UtilOptions = $
|
|
98
|
+
export type $UtilOptions = $Selection.Options & $Distributive.Options
|
|
101
99
|
}
|
package/src/promise/index.ts
CHANGED
package/src/promise/isPromise.ts
CHANGED
|
@@ -19,32 +19,36 @@ export type $ExtractManipulatedString<T extends string> = [T, unknown] extends [
|
|
|
19
19
|
>
|
|
20
20
|
|
|
21
21
|
export namespace $ExtractManipulatedString {
|
|
22
|
-
export type _UpperOrElse<N, Else> =
|
|
23
|
-
|
|
24
|
-
?
|
|
25
|
-
?
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
22
|
+
export type _UpperOrElse<N, Else> =
|
|
23
|
+
N extends Uppercase<infer Y>
|
|
24
|
+
? string extends Y
|
|
25
|
+
? Uppercase<any> extends N
|
|
26
|
+
? Y
|
|
27
|
+
: N
|
|
28
|
+
: $ExtractManipulatedString<Y>
|
|
29
|
+
: Else
|
|
30
|
+
export type _LowerOrElse<N, Else> =
|
|
31
|
+
N extends Lowercase<infer Y>
|
|
32
|
+
? string extends Y
|
|
33
|
+
? Lowercase<any> extends N
|
|
34
|
+
? Y
|
|
35
|
+
: N
|
|
36
|
+
: $ExtractManipulatedString<Y>
|
|
37
|
+
: Else
|
|
38
|
+
export type _CapOrElse<N, Else> =
|
|
39
|
+
N extends Capitalize<infer Y>
|
|
40
|
+
? string extends Y
|
|
41
|
+
? Capitalize<any> extends N
|
|
42
|
+
? Y
|
|
43
|
+
: N
|
|
44
|
+
: $ExtractManipulatedString<Y>
|
|
45
|
+
: Else
|
|
46
|
+
export type _UncapOrElse<N, Else> =
|
|
47
|
+
N extends Uncapitalize<infer Y>
|
|
48
|
+
? string extends Y
|
|
49
|
+
? Uncapitalize<any> extends N
|
|
50
|
+
? Y
|
|
51
|
+
: N
|
|
52
|
+
: $ExtractManipulatedString<Y>
|
|
53
|
+
: Else
|
|
50
54
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { $ExtractManipulatedString } from './$extract_manipulated_string.js'
|
|
2
2
|
|
|
3
|
-
export type _StringType<T extends string> =
|
|
4
|
-
|
|
5
|
-
?
|
|
6
|
-
?
|
|
7
|
-
?
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
export type _StringType<T extends string> =
|
|
4
|
+
$ExtractManipulatedString<T> extends infer K
|
|
5
|
+
? K extends string & infer U
|
|
6
|
+
? [K, U] extends [U, K]
|
|
7
|
+
? {} extends { [P in `${K}`]: unknown }
|
|
8
|
+
? 'templateLiteral'
|
|
9
|
+
: 'stringLiteral'
|
|
10
|
+
: 'string'
|
|
11
|
+
: never
|
|
10
12
|
: never
|
|
11
|
-
: never
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import type { $ResolveOptions } from '../$type/$resolve_options.js'
|
|
2
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
3
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
4
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
5
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
6
|
+
import type { $Exact } from '../$type/exact/$exact.js'
|
|
7
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
8
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
9
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
10
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
11
|
+
import type { $Void } from '../$type/special/$void.js'
|
|
12
|
+
import type { $MergeOptions } from '../$type/utils/$merge_options.js'
|
|
1
13
|
import type { NotAssignable } from '../predicates/not_assignable.js'
|
|
2
|
-
import type { $Equality } from '../type_plus/$equality.js'
|
|
3
|
-
import type { $MergeOptions } from '../type_plus/$merge_options.js'
|
|
4
|
-
import type { $ResolveOptions } from '../type_plus/$resolve_options.js'
|
|
5
|
-
import type { $SpecialType } from '../type_plus/$special_type.js'
|
|
6
|
-
import type { $ExactOptions } from '../type_plus/branch/$exact.js'
|
|
7
|
-
import type { $IsDistributive } from '../type_plus/branch/$is_distributive.js'
|
|
8
|
-
import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js'
|
|
9
|
-
import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
10
|
-
import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js'
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* 🎭 *predicate*
|
|
@@ -57,20 +60,23 @@ import type { $SelectionOptions } from '../type_plus/branch/$selection_options.j
|
|
|
57
60
|
* type R = IsNotString<bigint, $IsNotString.$Branch> // $Then
|
|
58
61
|
* ```
|
|
59
62
|
*/
|
|
60
|
-
export type IsNotString<T, $O extends IsNotString.$Options = {}> = $
|
|
63
|
+
export type IsNotString<T, $O extends IsNotString.$Options = {}> = $Special<
|
|
61
64
|
T,
|
|
62
65
|
$MergeOptions<
|
|
63
66
|
$O,
|
|
64
67
|
{
|
|
65
|
-
$then: $ResolveBranch
|
|
68
|
+
$then: $ResolveBranch<$O, [$Then], T>
|
|
66
69
|
$else: IsNotString.$<T, $O>
|
|
67
70
|
}
|
|
68
71
|
>
|
|
69
72
|
>
|
|
70
73
|
|
|
71
74
|
export namespace IsNotString {
|
|
72
|
-
export type $Options = $
|
|
73
|
-
|
|
75
|
+
export type $Options = $Selection.Options &
|
|
76
|
+
$Distributive.Options &
|
|
77
|
+
$Exact.Options &
|
|
78
|
+
$InputOptions<$Any | $Unknown | $Never | $Void>
|
|
79
|
+
export type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>
|
|
74
80
|
|
|
75
81
|
/**
|
|
76
82
|
* 🧰 *type util*
|
|
@@ -81,18 +87,18 @@ export namespace IsNotString {
|
|
|
81
87
|
* It does not check against special types.
|
|
82
88
|
*/
|
|
83
89
|
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true
|
|
84
|
-
? $
|
|
90
|
+
? $Distributive.Parse<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
85
91
|
: NotAssignable.$<T, string, $O>
|
|
86
|
-
export type $UtilOptions = NotAssignable.$UtilOptions & $
|
|
92
|
+
export type $UtilOptions = NotAssignable.$UtilOptions & $Exact.Options
|
|
87
93
|
|
|
88
|
-
export type _D<T, $O extends $
|
|
94
|
+
export type _D<T, $O extends $Selection.Options> = T extends string & infer U
|
|
89
95
|
? U extends string
|
|
90
|
-
? $ResolveBranch
|
|
91
|
-
: $ResolveBranch
|
|
92
|
-
: $ResolveBranch
|
|
93
|
-
export type _N<T, $O extends $
|
|
96
|
+
? $ResolveBranch<$O, [$Then], T>
|
|
97
|
+
: $ResolveBranch<$O, [$Else]>
|
|
98
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
99
|
+
export type _N<T, $O extends $Selection.Options> = [T] extends [string & infer U]
|
|
94
100
|
? U extends string
|
|
95
|
-
? $ResolveBranch
|
|
96
|
-
: $ResolveBranch
|
|
97
|
-
: $ResolveBranch
|
|
101
|
+
? $ResolveBranch<$O, [$Then], T>
|
|
102
|
+
: $ResolveBranch<$O, [$Else]>
|
|
103
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
98
104
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import type { $ResolveOptions } from '../$type/$resolve_options.js'
|
|
2
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
3
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
4
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
5
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
6
|
+
import type { $Exact } from '../$type/exact/$exact.js'
|
|
7
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
8
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
9
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
10
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
11
|
+
import type { $Void } from '../$type/special/$void.js'
|
|
12
|
+
import type { $MergeOptions } from '../$type/utils/$merge_options.js'
|
|
1
13
|
import type { Assignable } from '../predicates/assignable.js'
|
|
2
|
-
import type { $Equality } from '../type_plus/$equality.js'
|
|
3
|
-
import type { $MergeOptions } from '../type_plus/$merge_options.js'
|
|
4
|
-
import type { $ResolveOptions } from '../type_plus/$resolve_options.js'
|
|
5
|
-
import type { $SpecialType } from '../type_plus/$special_type.js'
|
|
6
|
-
import type { $ExactDefault, $ExactOptions } from '../type_plus/branch/$exact.js'
|
|
7
|
-
import type { $IsDistributive } from '../type_plus/branch/$is_distributive.js'
|
|
8
|
-
import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js'
|
|
9
|
-
import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
10
|
-
import type { $SelectionOptions } from '../type_plus/branch/$selection_options.js'
|
|
11
14
|
import type { _StringType } from './_string_type.js'
|
|
12
15
|
|
|
13
16
|
/**
|
|
@@ -68,20 +71,23 @@ import type { _StringType } from './_string_type.js'
|
|
|
68
71
|
* type R = IsNotStringLiteral<string, $IsNotStringLiteral.$Branch> // $Then
|
|
69
72
|
* ```
|
|
70
73
|
*/
|
|
71
|
-
export type IsNotStringLiteral<T, $O extends IsNotStringLiteral.$Options = {}> = $
|
|
74
|
+
export type IsNotStringLiteral<T, $O extends IsNotStringLiteral.$Options = {}> = $Special<
|
|
72
75
|
T,
|
|
73
76
|
$MergeOptions<
|
|
74
77
|
$O,
|
|
75
78
|
{
|
|
76
|
-
$then: $ResolveBranch
|
|
79
|
+
$then: $ResolveBranch<$O, [$Then], T>
|
|
77
80
|
$else: IsNotStringLiteral.$<T, $O>
|
|
78
81
|
}
|
|
79
82
|
>
|
|
80
83
|
>
|
|
81
84
|
|
|
82
85
|
export namespace IsNotStringLiteral {
|
|
83
|
-
export type $Options = $
|
|
84
|
-
|
|
86
|
+
export type $Options = $Selection.Options &
|
|
87
|
+
$Distributive.Options &
|
|
88
|
+
$Exact.Options &
|
|
89
|
+
$InputOptions<$Any | $Unknown | $Never | $Void>
|
|
90
|
+
export type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>
|
|
85
91
|
|
|
86
92
|
/**
|
|
87
93
|
* 🧰 *type util*
|
|
@@ -91,37 +97,37 @@ export namespace IsNotStringLiteral {
|
|
|
91
97
|
* This is a type util for building custom types.
|
|
92
98
|
* It does not check against special types.
|
|
93
99
|
*/
|
|
94
|
-
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $
|
|
95
|
-
? $
|
|
96
|
-
: $
|
|
100
|
+
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $Exact.Default]> extends true
|
|
101
|
+
? $Distributive.Parse<$O, { $then: _ED<T, $O>; $else: _EN<T, $O> }>
|
|
102
|
+
: $Distributive.Parse<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
97
103
|
|
|
98
|
-
export type $UtilOptions = Assignable.$UtilOptions & $
|
|
104
|
+
export type $UtilOptions = Assignable.$UtilOptions & $Exact.Options
|
|
99
105
|
|
|
100
|
-
export type _ED<T, $O extends $
|
|
106
|
+
export type _ED<T, $O extends $Selection.Options> = T extends string ? _E<T, $O> : $ResolveBranch<$O, [$Then], T>
|
|
101
107
|
|
|
102
|
-
export type _EN<T, $O extends $
|
|
108
|
+
export type _EN<T, $O extends $Selection.Options> = [T] extends [string] ? _E<T, $O> : $ResolveBranch<$O, [$Then], T>
|
|
103
109
|
|
|
104
|
-
export type _E<T extends string, $O extends $
|
|
110
|
+
export type _E<T extends string, $O extends $Selection.Options> = T extends string
|
|
105
111
|
? _StringType<T> extends infer R
|
|
106
112
|
? R extends 'stringLiteral'
|
|
107
|
-
? $ResolveBranch
|
|
108
|
-
: $ResolveBranch
|
|
113
|
+
? $ResolveBranch<$O, [$Else]>
|
|
114
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
109
115
|
: never
|
|
110
|
-
: $ResolveBranch
|
|
116
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
111
117
|
|
|
112
|
-
export type _D<T, $O extends $
|
|
118
|
+
export type _D<T, $O extends $Selection.Options> = T extends string & infer U
|
|
113
119
|
? _U<T, U, $O>
|
|
114
|
-
: $ResolveBranch
|
|
120
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
115
121
|
|
|
116
|
-
export type _N<T, $O extends $
|
|
122
|
+
export type _N<T, $O extends $Selection.Options> = [T] extends [string & infer U]
|
|
117
123
|
? _U<T, U, $O>
|
|
118
|
-
: $ResolveBranch
|
|
124
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
119
125
|
|
|
120
|
-
export type _U<T, U, $O extends $
|
|
121
|
-
? $ResolveBranch
|
|
126
|
+
export type _U<T, U, $O extends $Selection.Options> = U extends `${any}`
|
|
127
|
+
? $ResolveBranch<$O, [$Else]>
|
|
122
128
|
: U extends Uppercase<infer N>
|
|
123
129
|
? _D<N, $O>
|
|
124
130
|
: U extends Lowercase<infer N>
|
|
125
131
|
? _D<N, $O>
|
|
126
|
-
: $ResolveBranch
|
|
132
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
127
133
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
2
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
3
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
4
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
5
|
+
import type { $Exact } from '../$type/exact/$exact.js'
|
|
6
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
7
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
8
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
9
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
10
|
+
import type { $Void } from '../$type/special/$void.js'
|
|
11
|
+
import type { $MergeOptions } from '../$type/utils/$merge_options.js'
|
|
1
12
|
import type { Assignable } from '../predicates/assignable.js'
|
|
2
|
-
import type { $Equality } from '../type_plus/$equality.js'
|
|
3
|
-
import type { $MergeOptions } from '../type_plus/$merge_options.js'
|
|
4
|
-
import type { $SpecialType } from '../type_plus/$special_type.js'
|
|
5
|
-
import type { $IsDistributive } from '../type_plus/branch/$is_distributive.js'
|
|
6
|
-
import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js'
|
|
7
|
-
import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
8
13
|
import type { _StringType } from './_string_type.js'
|
|
9
14
|
|
|
10
15
|
/**
|
|
@@ -52,36 +57,39 @@ import type { _StringType } from './_string_type.js'
|
|
|
52
57
|
* type R = IsNotTemplateLiteral<bigint, $IsString.$Branch> // $Then
|
|
53
58
|
* ```
|
|
54
59
|
*/
|
|
55
|
-
export type IsNotTemplateLiteral<T, $O extends IsNotTemplateLiteral.$Options = {}> = $
|
|
60
|
+
export type IsNotTemplateLiteral<T, $O extends IsNotTemplateLiteral.$Options = {}> = $Special<
|
|
56
61
|
T,
|
|
57
62
|
$MergeOptions<
|
|
58
63
|
$O,
|
|
59
64
|
{
|
|
60
|
-
$then: $ResolveBranch
|
|
65
|
+
$then: $ResolveBranch<$O, [$Then], T>
|
|
61
66
|
$else: IsNotTemplateLiteral.$<T, $O>
|
|
62
67
|
}
|
|
63
68
|
>
|
|
64
69
|
>
|
|
65
70
|
|
|
66
71
|
export namespace IsNotTemplateLiteral {
|
|
67
|
-
export type $Options = $
|
|
68
|
-
|
|
72
|
+
export type $Options = $Selection.Options &
|
|
73
|
+
$Distributive.Options &
|
|
74
|
+
$Exact.Options &
|
|
75
|
+
$InputOptions<$Any | $Unknown | $Never | $Void>
|
|
76
|
+
export type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>
|
|
69
77
|
|
|
70
78
|
export type $UtilOptions = Assignable.$UtilOptions
|
|
71
79
|
|
|
72
|
-
export type $<T, $O extends $UtilOptions> = $
|
|
80
|
+
export type $<T, $O extends $UtilOptions> = $Distributive.Parse<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
73
81
|
|
|
74
82
|
type _D<T, $O extends $UtilOptions> = T extends string
|
|
75
83
|
? _StringType<T> extends infer R
|
|
76
84
|
? R extends 'templateLiteral'
|
|
77
|
-
? $ResolveBranch
|
|
78
|
-
: $ResolveBranch
|
|
85
|
+
? $ResolveBranch<$O, [$Else]>
|
|
86
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
79
87
|
: never
|
|
80
|
-
: $ResolveBranch
|
|
88
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
81
89
|
|
|
82
90
|
type _N<T, $O extends $UtilOptions> = _D<T, { $then: $Then; $else: $Else }> extends infer R
|
|
83
91
|
? $Then | $Else extends R
|
|
84
|
-
? $ResolveBranch
|
|
85
|
-
: $ResolveBranch
|
|
92
|
+
? $ResolveBranch<$O, [$Then], T>
|
|
93
|
+
: $ResolveBranch<$O, [R], T>
|
|
86
94
|
: never
|
|
87
95
|
}
|
package/src/string/is_string.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import type { $ResolveOptions } from '../$type/$resolve_options.js'
|
|
2
|
+
import type { $InputOptions } from '../$type/branch/$input_options.js'
|
|
3
|
+
import type { $ResolveBranch } from '../$type/branch/$resolve_branch.js'
|
|
4
|
+
import type { $Else, $Selection, $Then } from '../$type/branch/$selection.js'
|
|
5
|
+
import type { $Distributive } from '../$type/distributive/$distributive.js'
|
|
6
|
+
import type { $Exact } from '../$type/exact/$exact.js'
|
|
7
|
+
import type { $Any } from '../$type/special/$any.js'
|
|
8
|
+
import type { $Never } from '../$type/special/$never.js'
|
|
9
|
+
import type { $Special } from '../$type/special/$special.js'
|
|
10
|
+
import type { $Unknown } from '../$type/special/$unknown.js'
|
|
11
|
+
import type { $Void } from '../$type/special/$void.js'
|
|
12
|
+
import type { $MergeOptions } from '../$type/utils/$merge_options.js'
|
|
1
13
|
import type { Assignable } from '../predicates/assignable.js'
|
|
2
|
-
import type { $Equality } from '../type_plus/$equality.js'
|
|
3
|
-
import type { $MergeOptions } from '../type_plus/$merge_options.js'
|
|
4
|
-
import type { $ResolveOptions } from '../type_plus/$resolve_options.js'
|
|
5
|
-
import type { $SpecialType } from '../type_plus/$special_type.js'
|
|
6
|
-
import type { $ExactOptions } from '../type_plus/branch/$exact.js'
|
|
7
|
-
import type { $IsDistributive } from '../type_plus/branch/$is_distributive.js'
|
|
8
|
-
import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js'
|
|
9
|
-
import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
10
14
|
|
|
11
15
|
/**
|
|
12
16
|
* 🎭 *predicate*
|
|
@@ -56,20 +60,23 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
|
56
60
|
* type R = IsString<bigint, $IsString.$Branch> // $Else
|
|
57
61
|
* ```
|
|
58
62
|
*/
|
|
59
|
-
export type IsString<T, $O extends IsString.$Options = {}> = $
|
|
63
|
+
export type IsString<T, $O extends IsString.$Options = {}> = $Special<
|
|
60
64
|
T,
|
|
61
65
|
$MergeOptions<
|
|
62
66
|
$O,
|
|
63
67
|
{
|
|
64
|
-
$then: $ResolveBranch
|
|
68
|
+
$then: $ResolveBranch<$O, [$Else]>
|
|
65
69
|
$else: IsString.$<T, $O>
|
|
66
70
|
}
|
|
67
71
|
>
|
|
68
72
|
>
|
|
69
73
|
|
|
70
74
|
export namespace IsString {
|
|
71
|
-
export type $Options = $
|
|
72
|
-
|
|
75
|
+
export type $Options = $Selection.Options &
|
|
76
|
+
$Distributive.Options &
|
|
77
|
+
$Exact.Options &
|
|
78
|
+
$InputOptions<$Any | $Unknown | $Never | $Void>
|
|
79
|
+
export type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>
|
|
73
80
|
|
|
74
81
|
/**
|
|
75
82
|
* 🧰 *type util*
|
|
@@ -80,19 +87,19 @@ export namespace IsString {
|
|
|
80
87
|
* It does not check against special types.
|
|
81
88
|
*/
|
|
82
89
|
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true
|
|
83
|
-
? $
|
|
90
|
+
? $Distributive.Parse<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
84
91
|
: Assignable.$<T, string, $O>
|
|
85
92
|
|
|
86
|
-
export type $UtilOptions = Assignable.$UtilOptions & $
|
|
93
|
+
export type $UtilOptions = Assignable.$UtilOptions & $Exact.Options
|
|
87
94
|
|
|
88
95
|
export type _D<T, $O extends $UtilOptions> = T extends string & infer U
|
|
89
96
|
? U extends string
|
|
90
|
-
? $ResolveBranch
|
|
91
|
-
: $ResolveBranch
|
|
92
|
-
: $ResolveBranch
|
|
97
|
+
? $ResolveBranch<$O, [$Else]>
|
|
98
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
99
|
+
: $ResolveBranch<$O, [$Else]>
|
|
93
100
|
export type _N<T, $O extends $UtilOptions> = [T] extends [string & infer U]
|
|
94
101
|
? U extends string
|
|
95
|
-
? $ResolveBranch
|
|
96
|
-
: $ResolveBranch
|
|
97
|
-
: $ResolveBranch
|
|
102
|
+
? $ResolveBranch<$O, [$Else]>
|
|
103
|
+
: $ResolveBranch<$O, [$Then], T>
|
|
104
|
+
: $ResolveBranch<$O, [$Else]>
|
|
98
105
|
}
|