type-plus 8.0.0-beta.2 → 8.0.0-beta.3
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/any/is_any.d.ts.map +1 -1
- package/esm/any/is_not_any.d.ts.map +1 -1
- package/esm/array/array.at.d.ts.map +1 -1
- package/esm/array/array.entries.d.ts +1 -1
- package/esm/array/array.entries.d.ts.map +1 -1
- package/esm/array/array.find_last.d.ts +1 -1
- package/esm/array/array.find_last.d.ts.map +1 -1
- package/esm/array/array.reverse.d.ts.map +1 -1
- package/esm/array/array.some.d.ts +2 -2
- package/esm/array/array.some.d.ts.map +1 -1
- package/esm/array/array_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/array/array_plus.drop_match.d.ts +1 -1
- package/esm/array/array_plus.drop_match.d.ts.map +1 -1
- package/esm/array/array_plus.element_match.d.ts +4 -2
- package/esm/array/array_plus.element_match.d.ts.map +1 -1
- package/esm/array/array_plus.filter.d.ts +4 -4
- package/esm/array/array_plus.filter.d.ts.map +1 -1
- package/esm/array/array_plus.find.d.ts +1 -1
- package/esm/array/array_plus.find.d.ts.map +1 -1
- 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_index_out_of_bound.d.ts.map +1 -1
- package/esm/array/array_plus.is_readonly.d.ts.map +1 -1
- package/esm/array/array_plus.pad_start.d.ts.map +1 -1
- package/esm/array/array_plus.split_at.d.ts +4 -4
- package/esm/array/array_plus.split_at.d.ts.map +1 -1
- package/esm/array/find_first.d.ts.map +1 -1
- package/esm/array/head.d.ts.map +1 -1
- package/esm/array/intersect_of_props.d.ts.map +1 -1
- package/esm/array/is_array.d.ts +2 -2
- package/esm/array/is_array.d.ts.map +1 -1
- package/esm/array/is_not_array.d.ts +2 -2
- package/esm/array/is_not_array.d.ts.map +1 -1
- package/esm/array/last.d.ts.map +1 -1
- package/esm/array/loose_array_type.d.ts.map +1 -1
- package/esm/array/pad_start.d.ts.map +1 -1
- package/esm/array/reverse.d.ts.map +1 -1
- package/esm/array/union_of_props.d.ts.map +1 -1
- package/esm/assertion/assert_type.js +6 -5
- package/esm/assertion/assert_type.js.map +1 -1
- package/esm/bigint/cast.d.ts.map +1 -1
- package/esm/bigint/is_bigint.d.ts +2 -4
- package/esm/bigint/is_bigint.d.ts.map +1 -1
- package/esm/bigint/is_bigint_literal.d.ts +2 -4
- package/esm/bigint/is_bigint_literal.d.ts.map +1 -1
- package/esm/bigint/is_not_bigint.d.ts +2 -4
- package/esm/bigint/is_not_bigint.d.ts.map +1 -1
- package/esm/bigint/is_not_bigint_literal.d.ts +2 -4
- package/esm/bigint/is_not_bigint_literal.d.ts.map +1 -1
- package/esm/boolean/is_boolean.d.ts +2 -8
- package/esm/boolean/is_boolean.d.ts.map +1 -1
- package/esm/boolean/is_false.d.ts.map +1 -1
- package/esm/boolean/is_not_boolean.d.ts +2 -8
- package/esm/boolean/is_not_boolean.d.ts.map +1 -1
- package/esm/boolean/is_not_false.d.ts.map +1 -1
- package/esm/boolean/is_not_true.d.ts.map +1 -1
- package/esm/boolean/is_true.d.ts.map +1 -1
- package/esm/class/isConstructor.js +1 -0
- package/esm/class/isConstructor.js.map +1 -1
- package/esm/equal/equal.d.ts.map +1 -1
- package/esm/equal/identity_equal.d.ts +1 -1
- package/esm/equal/identity_equal.d.ts.map +1 -1
- package/esm/function/extract_function.d.ts.map +1 -1
- package/esm/function/extract_function.js.map +1 -1
- package/esm/function/is_not_strict_function.d.ts +1 -1
- package/esm/function/is_not_strict_function.d.ts.map +1 -1
- package/esm/function/is_strict_function.d.ts.map +1 -1
- package/esm/functional/Maybe.d.ts.map +1 -1
- package/esm/functional/Maybe.js.map +1 -1
- package/esm/functional/compose.d.ts.map +1 -1
- package/esm/functional/compose.js.map +1 -1
- package/esm/functional/context.d.ts.map +1 -1
- package/esm/math/abs.d.ts.map +1 -1
- package/esm/math/math_plus.to_negative.d.ts.map +1 -1
- package/esm/math/max.d.ts.map +1 -1
- package/esm/math/numeric_struct.d.ts.map +1 -1
- package/esm/mix_types/box.d.ts.map +1 -1
- package/esm/mix_types/is_any_or_never.d.ts.map +1 -1
- package/esm/mix_types/merge.d.ts +9 -9
- package/esm/mix_types/merge.d.ts.map +1 -1
- package/esm/mix_types/merge.js +9 -9
- package/esm/mix_types/merge.js.map +1 -1
- package/esm/never/is_never.d.ts.map +1 -1
- package/esm/never/is_not_never.d.ts.map +1 -1
- package/esm/nodejs/isNodeError.d.ts.map +1 -1
- package/esm/nominal/brand.d.ts.map +1 -1
- package/esm/nominal/brand.js +1 -1
- package/esm/nominal/brand.js.map +1 -1
- package/esm/nominal/flavor.d.ts.map +1 -1
- package/esm/nominal/flavor.js +1 -1
- package/esm/nominal/flavor.js.map +1 -1
- package/esm/nominal/nominal_match.d.ts.map +1 -1
- package/esm/nominal/nominal_match.js.map +1 -1
- package/esm/null/is_not_null.d.ts.map +1 -1
- package/esm/null/is_null.d.ts.map +1 -1
- package/esm/number/cast.d.ts.map +1 -1
- package/esm/number/is_not_number.d.ts +2 -4
- package/esm/number/is_not_number.d.ts.map +1 -1
- package/esm/number/is_not_number_literal.d.ts +2 -4
- package/esm/number/is_not_number_literal.d.ts.map +1 -1
- package/esm/number/is_number.d.ts +2 -4
- package/esm/number/is_number.d.ts.map +1 -1
- package/esm/number/is_number_literal.d.ts +2 -4
- package/esm/number/is_number_literal.d.ts.map +1 -1
- package/esm/numeric/is_integer.d.ts +2 -2
- package/esm/numeric/is_integer.d.ts.map +1 -1
- package/esm/numeric/is_negative.d.ts +5 -5
- package/esm/numeric/is_negative.d.ts.map +1 -1
- package/esm/numeric/is_not_integer.d.ts +2 -2
- package/esm/numeric/is_not_integer.d.ts.map +1 -1
- package/esm/numeric/is_not_negative.d.ts +3 -3
- package/esm/numeric/is_not_negative.d.ts.map +1 -1
- package/esm/numeric/is_not_positive.d.ts +3 -3
- package/esm/numeric/is_not_positive.d.ts.map +1 -1
- package/esm/numeric/is_positive.d.ts +3 -3
- package/esm/numeric/is_positive.d.ts.map +1 -1
- package/esm/numeric/numeric_type.d.ts.map +1 -1
- package/esm/object/ANotB.d.ts.map +1 -1
- package/esm/object/IsDisjoint.d.ts.map +1 -1
- package/esm/object/KeysWithDiffType.d.ts.map +1 -1
- package/esm/object/KnownKeys.d.ts.map +1 -1
- package/esm/object/RecursiveIntersect.d.ts +1 -1
- package/esm/object/RecursiveIntersect.d.ts.map +1 -1
- package/esm/object/RecursiveRequired.d.ts.map +1 -1
- package/esm/object/SpreadRecord.d.ts.map +1 -1
- package/esm/object/facade.d.ts.map +1 -1
- package/esm/object/facade.js.map +1 -1
- package/esm/object/getField.d.ts.map +1 -1
- package/esm/object/getField.js.map +1 -1
- package/esm/object/hasKey.js +1 -1
- package/esm/object/hasKey.js.map +1 -1
- package/esm/object/is_not_object.d.ts +1 -3
- package/esm/object/is_not_object.d.ts.map +1 -1
- package/esm/object/is_object.d.ts.map +1 -1
- package/esm/object/left_join.d.ts.map +1 -1
- package/esm/object/merge.d.ts +6 -5
- package/esm/object/merge.d.ts.map +1 -1
- package/esm/object/omit.d.ts +7 -0
- package/esm/object/omit.d.ts.map +1 -1
- package/esm/object/omit.js.map +1 -1
- package/esm/object/optional_key.d.ts.map +1 -1
- package/esm/object/pick.d.ts.map +1 -1
- package/esm/object/pick.js.map +1 -1
- package/esm/object/recursive_partial.d.ts.map +1 -1
- package/esm/object/split.d.ts +1 -7
- package/esm/object/split.d.ts.map +1 -1
- package/esm/object/split.js +1 -1
- package/esm/object/split.js.map +1 -1
- package/esm/object/typeOverrideIncompatible.js.map +1 -1
- package/esm/predicates/CanAssign.d.ts.map +1 -1
- package/esm/predicates/CanAssign.js.map +1 -1
- package/esm/predicates/assignable.d.ts.map +1 -1
- package/esm/predicates/literal.d.ts.map +1 -1
- package/esm/predicates/logical.d.ts.map +1 -1
- package/esm/predicates/not_assignable.d.ts.map +1 -1
- package/esm/primitive.d.ts.map +1 -1
- package/esm/promise/index.d.ts.map +1 -1
- package/esm/promise/mapSeries.js +1 -1
- package/esm/promise/mapSeries.js.map +1 -1
- package/esm/string/$extract_manipulated_string.d.ts +5 -5
- 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 +2 -4
- package/esm/string/is_not_string.d.ts.map +1 -1
- package/esm/string/is_not_string_literal.d.ts +4 -8
- package/esm/string/is_not_string_literal.d.ts.map +1 -1
- package/esm/string/is_not_template_literal.d.ts.map +1 -1
- package/esm/string/is_string.d.ts +2 -4
- package/esm/string/is_string.d.ts.map +1 -1
- package/esm/string/is_string_literal.d.ts +4 -8
- package/esm/string/is_string_literal.d.ts.map +1 -1
- package/esm/string/is_template_literal.d.ts.map +1 -1
- package/esm/string/string.d.ts.map +1 -1
- package/esm/string/string_plus.d.ts.map +1 -1
- package/esm/symbol/is_not_symbol.d.ts.map +1 -1
- package/esm/symbol/is_symbol.d.ts.map +1 -1
- package/esm/testing/test_type.d.ts.map +1 -1
- package/esm/tuple/common_prop_keys.d.ts.map +1 -1
- package/esm/tuple/create_tuple.d.ts.map +1 -1
- package/esm/tuple/drop.d.ts.map +1 -1
- package/esm/tuple/drop.js +1 -1
- package/esm/tuple/drop.js.map +1 -1
- package/esm/tuple/is_not_tuple.d.ts +2 -2
- package/esm/tuple/is_not_tuple.d.ts.map +1 -1
- package/esm/tuple/is_tuple.d.ts +2 -2
- package/esm/tuple/is_tuple.d.ts.map +1 -1
- package/esm/tuple/tail.d.ts +1 -1
- package/esm/tuple/tail.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.map +1 -1
- package/esm/tuple/tuple_plus.filter.d.ts +1 -1
- package/esm/tuple/tuple_plus.filter.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.find.d.ts +2 -2
- package/esm/tuple/tuple_plus.find.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.pad_start.d.ts +1 -4
- package/esm/tuple/tuple_plus.pad_start.d.ts.map +1 -1
- package/esm/type_plus/$equality.d.ts.map +1 -1
- package/esm/type_plus/$infer_error.d.ts.map +1 -1
- package/esm/type_plus/$merge_options.d.ts.map +1 -1
- package/esm/type_plus/$resolve_options.d.ts +1 -1
- package/esm/type_plus/$resolve_options.d.ts.map +1 -1
- package/esm/type_plus/$special_type.d.ts +1 -7
- package/esm/type_plus/$special_type.d.ts.map +1 -1
- package/esm/type_plus/$type.d.ts.map +1 -1
- package/esm/type_plus/branch/$branch.d.ts.map +1 -1
- package/esm/type_plus/branch/$exact.d.ts +4 -1
- package/esm/type_plus/branch/$exact.d.ts.map +1 -1
- package/esm/type_plus/branch/$input_options.d.ts.map +1 -1
- package/esm/type_plus/branch/$is_distributive.d.ts.map +1 -1
- package/esm/type_plus/branch/$resolve_branch.d.ts +8 -9
- package/esm/type_plus/branch/$resolve_branch.d.ts.map +1 -1
- package/esm/type_plus/branch/$select.d.ts +1 -3
- package/esm/type_plus/branch/$select.d.ts.map +1 -1
- package/esm/type_plus/branch/$select_invert.d.ts +1 -3
- package/esm/type_plus/branch/$select_invert.d.ts.map +1 -1
- package/esm/type_plus/branch/$select_invert_strict.d.ts +1 -4
- package/esm/type_plus/branch/$select_invert_strict.d.ts.map +1 -1
- package/esm/type_plus/branch/$select_strict.d.ts +1 -4
- package/esm/type_plus/branch/$select_strict.d.ts.map +1 -1
- package/esm/type_plus/branch/$selection.d.ts.map +1 -1
- package/esm/type_plus/branch/$selection_options.d.ts.map +1 -1
- package/esm/undefined/has_undefined.d.ts +3 -1
- package/esm/undefined/has_undefined.d.ts.map +1 -1
- package/esm/undefined/is_not_undefined.d.ts.map +1 -1
- package/esm/undefined/is_undefined.d.ts.map +1 -1
- package/esm/union/union.d.ts.map +1 -1
- package/esm/union/union_to_intersection.d.ts.map +1 -1
- package/esm/union/union_to_intersection.js.map +1 -1
- package/esm/unknown/is_not_unknown.d.ts.map +1 -1
- package/esm/unknown/is_unknown.d.ts.map +1 -1
- package/esm/unknown/not_unknown_or.d.ts.map +1 -1
- package/esm/unknown/unknown.d.ts.map +1 -1
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/void/is_not_void.d.ts.map +1 -1
- package/esm/void/is_void.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/any/is_any.ts +8 -8
- package/src/any/is_not_any.ts +8 -8
- package/src/array/array.at.ts +22 -19
- package/src/array/array.entries.ts +3 -3
- package/src/array/array.find_last.ts +6 -6
- package/src/array/array.reverse.ts +3 -2
- package/src/array/array.some.ts +4 -4
- package/src/array/array_plus.common_prop_keys.ts +5 -6
- package/src/array/array_plus.drop_match.ts +7 -7
- package/src/array/array_plus.element_match.ts +25 -22
- package/src/array/array_plus.filter.ts +11 -12
- package/src/array/array_plus.find.ts +9 -11
- package/src/array/array_plus.index_at.ts +29 -35
- package/src/array/array_plus.is_index_out_of_bound.ts +1 -1
- package/src/array/array_plus.is_readonly.ts +17 -21
- package/src/array/array_plus.pad_start.ts +3 -7
- package/src/array/array_plus.split_at.ts +17 -19
- package/src/array/find_first.ts +6 -5
- package/src/array/head.ts +9 -8
- package/src/array/intersect_of_props.ts +5 -5
- package/src/array/is_array.ts +31 -32
- package/src/array/is_not_array.ts +32 -32
- package/src/array/last.ts +14 -9
- package/src/array/loose_array_type.ts +2 -2
- package/src/array/pad_start.ts +1 -3
- package/src/array/reverse.ts +8 -8
- package/src/array/union_of_props.ts +2 -2
- package/src/assertion/assert_type.ts +5 -3
- package/src/bigint/cast.ts +2 -2
- package/src/bigint/is_bigint.ts +17 -20
- package/src/bigint/is_bigint_literal.ts +12 -14
- package/src/bigint/is_not_bigint.ts +14 -16
- package/src/bigint/is_not_bigint_literal.ts +17 -16
- package/src/boolean/is_boolean.ts +48 -36
- package/src/boolean/is_false.ts +5 -3
- package/src/boolean/is_not_boolean.ts +23 -25
- package/src/boolean/is_not_false.ts +5 -3
- package/src/boolean/is_not_true.ts +5 -3
- package/src/boolean/is_true.ts +5 -3
- package/src/class/isConstructor.ts +1 -1
- package/src/equal/equal.ts +22 -27
- package/src/equal/identity_equal.ts +5 -3
- package/src/function/extract_function.ts +1 -3
- package/src/function/is_not_strict_function.ts +12 -12
- package/src/function/is_strict_function.ts +12 -14
- package/src/functional/Maybe.ts +1 -3
- package/src/functional/compose.ts +2 -4
- package/src/functional/context.ts +1 -1
- package/src/index.ts +0 -1
- package/src/math/abs.ts +18 -8
- package/src/math/math_plus.to_negative.ts +6 -6
- package/src/math/max.ts +2 -2
- package/src/math/numeric_struct.ts +225 -231
- package/src/mix_types/box.ts +34 -37
- package/src/mix_types/is_any_or_never.ts +6 -6
- package/src/mix_types/merge.ts +24 -28
- package/src/never/is_never.ts +13 -10
- package/src/never/is_not_never.ts +13 -10
- package/src/nodejs/isNodeError.ts +13 -13
- package/src/nominal/brand.ts +3 -4
- package/src/nominal/flavor.ts +3 -4
- package/src/nominal/nominal_match.ts +3 -10
- package/src/null/is_not_null.ts +5 -4
- package/src/null/is_null.ts +9 -8
- package/src/number/cast.ts +6 -6
- package/src/number/is_not_number.ts +15 -17
- package/src/number/is_not_number_literal.ts +17 -16
- package/src/number/is_number.ts +15 -17
- package/src/number/is_number_literal.ts +12 -14
- package/src/numeric/is_integer.ts +33 -27
- package/src/numeric/is_negative.ts +23 -23
- package/src/numeric/is_not_integer.ts +31 -26
- package/src/numeric/is_not_negative.ts +19 -19
- package/src/numeric/is_not_positive.ts +19 -19
- package/src/numeric/is_positive.ts +21 -21
- package/src/numeric/numeric_plus.ts +0 -1
- package/src/numeric/numeric_type.ts +0 -1
- package/src/object/ANotB.ts +2 -2
- package/src/object/IsDisjoint.ts +1 -4
- package/src/object/KeysWithDiffType.ts +2 -2
- package/src/object/KnownKeys.ts +7 -7
- package/src/object/RecursiveIntersect.ts +8 -8
- package/src/object/RecursiveRequired.ts +2 -2
- package/src/object/SpreadRecord.ts +1 -4
- package/src/object/facade.ts +1 -9
- package/src/object/getField.ts +1 -4
- package/src/object/hasKey.ts +1 -1
- package/src/object/is_not_object.ts +23 -16
- package/src/object/is_object.ts +23 -15
- package/src/object/left_join.ts +2 -2
- package/src/object/merge.ts +53 -72
- package/src/object/omit.ts +16 -25
- package/src/object/optional_key.ts +1 -4
- package/src/object/pick.ts +8 -19
- package/src/object/recursive_partial.ts +6 -6
- package/src/object/split.ts +3 -14
- package/src/object/typeOverrideIncompatible.ts +3 -3
- package/src/predicates/CanAssign.ts +9 -5
- package/src/predicates/assignable.ts +23 -24
- package/src/predicates/literal.ts +8 -8
- package/src/predicates/logical.ts +4 -4
- package/src/predicates/not_assignable.ts +23 -22
- package/src/primitive.ts +1 -10
- package/src/promise/index.ts +1 -1
- package/src/promise/mapSeries.ts +1 -1
- package/src/string/$extract_manipulated_string.ts +25 -20
- package/src/string/_string_type.ts +6 -6
- package/src/string/is_not_string.ts +13 -15
- package/src/string/is_not_string_literal.ts +29 -34
- package/src/string/is_not_template_literal.ts +18 -21
- package/src/string/is_string.ts +17 -20
- package/src/string/is_string_literal.ts +29 -34
- package/src/string/is_template_literal.ts +18 -20
- package/src/string/string.ts +2 -2
- package/src/string/string_plus.ts +6 -7
- package/src/symbol/is_not_symbol.ts +5 -3
- package/src/symbol/is_symbol.ts +5 -3
- package/src/testing/test_type.ts +89 -89
- package/src/tuple/common_prop_keys.ts +2 -5
- package/src/tuple/create_tuple.ts +18 -18
- package/src/tuple/drop.ts +20 -22
- package/src/tuple/is_not_tuple.ts +19 -21
- package/src/tuple/is_tuple.ts +23 -26
- package/src/tuple/tail.ts +5 -3
- package/src/tuple/tuple_plus.common_prop_keys.ts +6 -12
- package/src/tuple/tuple_plus.drop_match.ts +11 -11
- package/src/tuple/tuple_plus.filter.ts +5 -12
- package/src/tuple/tuple_plus.find.ts +14 -24
- package/src/tuple/tuple_plus.pad_start.ts +12 -27
- package/src/type_plus/$equality.ts +1 -3
- package/src/type_plus/$infer_error.ts +3 -1
- package/src/type_plus/$merge_options.ts +3 -4
- package/src/type_plus/$resolve_options.ts +6 -5
- package/src/type_plus/$special_type.ts +7 -5
- package/src/type_plus/$type.ts +3 -3
- package/src/type_plus/branch/$branch.ts +1 -2
- package/src/type_plus/branch/$exact.ts +9 -5
- package/src/type_plus/branch/$input_options.ts +1 -2
- package/src/type_plus/branch/$is_distributive.ts +7 -4
- package/src/type_plus/branch/$resolve_branch.ts +29 -39
- package/src/type_plus/branch/$select.ts +15 -16
- package/src/type_plus/branch/$select_invert.ts +11 -16
- package/src/type_plus/branch/$select_invert_strict.ts +14 -19
- package/src/type_plus/branch/$select_strict.ts +11 -13
- package/src/type_plus/branch/$selection.ts +8 -9
- package/src/type_plus/branch/$selection_options.ts +3 -3
- package/src/undefined/has_undefined.ts +4 -3
- package/src/undefined/is_not_undefined.ts +9 -9
- package/src/undefined/is_undefined.ts +9 -8
- package/src/union/union.ts +1 -4
- package/src/union/union_to_intersection.ts +1 -3
- package/src/unknown/is_not_unknown.ts +8 -8
- package/src/unknown/is_unknown.ts +8 -8
- package/src/unknown/not_unknown_or.ts +7 -3
- package/src/unknown/unknown.ts +0 -1
- package/src/utils/index.ts +17 -17
- package/src/void/is_not_void.ts +14 -14
- package/src/void/is_void.ts +14 -14
|
@@ -57,10 +57,12 @@ import type { $SelectionOptions } from '../type_plus/branch/$selection_options.j
|
|
|
57
57
|
* type R = IsNotString<bigint, $IsNotString.$Branch> // $Then
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
export type IsNotString<T, $O extends IsNotString.$Options = {}> = $SpecialType<
|
|
61
|
-
|
|
60
|
+
export type IsNotString<T, $O extends IsNotString.$Options = {}> = $SpecialType<
|
|
61
|
+
T,
|
|
62
|
+
$MergeOptions<
|
|
63
|
+
$O,
|
|
62
64
|
{
|
|
63
|
-
$then: $ResolveBranch<T, $O, [$Then]
|
|
65
|
+
$then: $ResolveBranch<T, $O, [$Then]>
|
|
64
66
|
$else: IsNotString.$<T, $O>
|
|
65
67
|
}
|
|
66
68
|
>
|
|
@@ -78,23 +80,19 @@ export namespace IsNotString {
|
|
|
78
80
|
* This is a type util for building custom types.
|
|
79
81
|
* It does not check against special types.
|
|
80
82
|
*/
|
|
81
|
-
export type $<T, $O extends $UtilOptions> =
|
|
82
|
-
$
|
|
83
|
-
? $IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
83
|
+
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true
|
|
84
|
+
? $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
84
85
|
: NotAssignable.$<T, string, $O>
|
|
85
86
|
export type $UtilOptions = NotAssignable.$UtilOptions & $Exact.$Options
|
|
86
87
|
|
|
87
|
-
export type _D<T, $O extends $SelectionOptions> =
|
|
88
|
-
|
|
89
|
-
? (
|
|
90
|
-
U extends string
|
|
88
|
+
export type _D<T, $O extends $SelectionOptions> = T extends string & infer U
|
|
89
|
+
? U extends string
|
|
91
90
|
? $ResolveBranch<T, $O, [$Then]>
|
|
92
91
|
: $ResolveBranch<T, $O, [$Else]>
|
|
93
|
-
)
|
|
94
92
|
: $ResolveBranch<T, $O, [$Then]>
|
|
95
|
-
export type _N<T, $O extends $SelectionOptions> =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
export type _N<T, $O extends $SelectionOptions> = [T] extends [string & infer U]
|
|
94
|
+
? U extends string
|
|
95
|
+
? $ResolveBranch<T, $O, [$Then]>
|
|
96
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
99
97
|
: $ResolveBranch<T, $O, [$Then]>
|
|
100
98
|
}
|
|
@@ -68,15 +68,16 @@ import type { _StringType } from './_string_type.js'
|
|
|
68
68
|
* type R = IsNotStringLiteral<string, $IsNotStringLiteral.$Branch> // $Then
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
export type IsNotStringLiteral<T, $O extends IsNotStringLiteral.$Options = {}> =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
export type IsNotStringLiteral<T, $O extends IsNotStringLiteral.$Options = {}> = $SpecialType<
|
|
72
|
+
T,
|
|
73
|
+
$MergeOptions<
|
|
74
|
+
$O,
|
|
75
|
+
{
|
|
76
|
+
$then: $ResolveBranch<T, $O, [$Then]>
|
|
77
|
+
$else: IsNotStringLiteral.$<T, $O>
|
|
78
|
+
}
|
|
79
79
|
>
|
|
80
|
+
>
|
|
80
81
|
|
|
81
82
|
export namespace IsNotStringLiteral {
|
|
82
83
|
export type $Options = $Equality.$Options & $Exact.$Options
|
|
@@ -90,43 +91,37 @@ export namespace IsNotStringLiteral {
|
|
|
90
91
|
* This is a type util for building custom types.
|
|
91
92
|
* It does not check against special types.
|
|
92
93
|
*/
|
|
93
|
-
export type $<T, $O extends $UtilOptions> =
|
|
94
|
-
$
|
|
95
|
-
|
|
96
|
-
: $IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
94
|
+
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $Exact.$Default]> extends true
|
|
95
|
+
? $IsDistributive<$O, { $then: _ED<T, $O>; $else: _EN<T, $O> }>
|
|
96
|
+
: $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
97
97
|
|
|
98
98
|
export type $UtilOptions = Assignable.$UtilOptions & $Exact.$Options
|
|
99
99
|
|
|
100
|
-
export type _ED<T, $O extends $SelectionOptions> =
|
|
101
|
-
T extends string ? (_E<T, $O>) : $ResolveBranch<T, $O, [$Then]>
|
|
100
|
+
export type _ED<T, $O extends $SelectionOptions> = T extends string ? _E<T, $O> : $ResolveBranch<T, $O, [$Then]>
|
|
102
101
|
|
|
103
|
-
export type _EN<T, $O extends $SelectionOptions> =
|
|
104
|
-
[T] extends [string] ? (_E<T, $O>) : $ResolveBranch<T, $O, [$Then]>
|
|
102
|
+
export type _EN<T, $O extends $SelectionOptions> = [T] extends [string] ? _E<T, $O> : $ResolveBranch<T, $O, [$Then]>
|
|
105
103
|
|
|
106
|
-
export type _E<T extends string, $O extends $SelectionOptions> =
|
|
107
|
-
T extends string
|
|
104
|
+
export type _E<T extends string, $O extends $SelectionOptions> = T extends string
|
|
108
105
|
? _StringType<T> extends infer R
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
? R extends 'stringLiteral'
|
|
107
|
+
? $ResolveBranch<T, $O, [$Else]>
|
|
108
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
109
|
+
: never
|
|
113
110
|
: $ResolveBranch<T, $O, [$Then]>
|
|
114
111
|
|
|
115
|
-
export type _D<T, $O extends $SelectionOptions> =
|
|
116
|
-
|
|
112
|
+
export type _D<T, $O extends $SelectionOptions> = T extends string & infer U
|
|
113
|
+
? _U<T, U, $O>
|
|
114
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
117
115
|
|
|
118
|
-
export type _N<T, $O extends $SelectionOptions> =
|
|
119
|
-
|
|
116
|
+
export type _N<T, $O extends $SelectionOptions> = [T] extends [string & infer U]
|
|
117
|
+
? _U<T, U, $O>
|
|
118
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
120
119
|
|
|
121
|
-
export type _U<T, U, $O extends $SelectionOptions> =
|
|
122
|
-
U extends `${any}`
|
|
120
|
+
export type _U<T, U, $O extends $SelectionOptions> = U extends `${any}`
|
|
123
121
|
? $ResolveBranch<T, $O, [$Else]>
|
|
124
|
-
:
|
|
125
|
-
U extends Uppercase<infer N>
|
|
122
|
+
: U extends Uppercase<infer N>
|
|
126
123
|
? _D<N, $O>
|
|
127
124
|
: U extends Lowercase<infer N>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
)
|
|
131
|
-
|
|
125
|
+
? _D<N, $O>
|
|
126
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
132
127
|
}
|
|
@@ -7,7 +7,6 @@ import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js'
|
|
|
7
7
|
import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
8
8
|
import type { _StringType } from './_string_type.js'
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* 🎭 *validate*
|
|
13
12
|
*
|
|
@@ -53,15 +52,16 @@ import type { _StringType } from './_string_type.js'
|
|
|
53
52
|
* type R = IsNotTemplateLiteral<bigint, $IsString.$Branch> // $Then
|
|
54
53
|
* ```
|
|
55
54
|
*/
|
|
56
|
-
export type IsNotTemplateLiteral<T, $O extends IsNotTemplateLiteral.$Options = {}> =
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
export type IsNotTemplateLiteral<T, $O extends IsNotTemplateLiteral.$Options = {}> = $SpecialType<
|
|
56
|
+
T,
|
|
57
|
+
$MergeOptions<
|
|
58
|
+
$O,
|
|
59
|
+
{
|
|
60
|
+
$then: $ResolveBranch<T, $O, [$Then]>
|
|
61
|
+
$else: IsNotTemplateLiteral.$<T, $O>
|
|
62
|
+
}
|
|
64
63
|
>
|
|
64
|
+
>
|
|
65
65
|
|
|
66
66
|
export namespace IsNotTemplateLiteral {
|
|
67
67
|
export type $Options = $Equality.$Options
|
|
@@ -69,22 +69,19 @@ export namespace IsNotTemplateLiteral {
|
|
|
69
69
|
|
|
70
70
|
export type $UtilOptions = Assignable.$UtilOptions
|
|
71
71
|
|
|
72
|
-
export type $<T, $O extends $UtilOptions> =
|
|
73
|
-
$IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
72
|
+
export type $<T, $O extends $UtilOptions> = $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
74
73
|
|
|
75
|
-
type _D<T, $O extends $UtilOptions> =
|
|
76
|
-
T extends string
|
|
74
|
+
type _D<T, $O extends $UtilOptions> = T extends string
|
|
77
75
|
? _StringType<T> extends infer R
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
? R extends 'templateLiteral'
|
|
77
|
+
? $ResolveBranch<T, $O, [$Else]>
|
|
78
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
79
|
+
: never
|
|
82
80
|
: $ResolveBranch<T, $O, [$Then]>
|
|
83
81
|
|
|
84
|
-
type _N<T, $O extends $UtilOptions> =
|
|
85
|
-
_D<T, { $then: $Then, $else: $Else }> extends infer R
|
|
82
|
+
type _N<T, $O extends $UtilOptions> = _D<T, { $then: $Then; $else: $Else }> extends infer R
|
|
86
83
|
? $Then | $Else extends R
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
? $ResolveBranch<T, $O, [$Then]>
|
|
85
|
+
: $ResolveBranch<T, $O, [R]>
|
|
89
86
|
: never
|
|
90
87
|
}
|
package/src/string/is_string.ts
CHANGED
|
@@ -56,15 +56,16 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js'
|
|
|
56
56
|
* type R = IsString<bigint, $IsString.$Branch> // $Else
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
export type IsString<T, $O extends IsString.$Options = {}> =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
export type IsString<T, $O extends IsString.$Options = {}> = $SpecialType<
|
|
60
|
+
T,
|
|
61
|
+
$MergeOptions<
|
|
62
|
+
$O,
|
|
63
|
+
{
|
|
64
|
+
$then: $ResolveBranch<T, $O, [$Else]>
|
|
65
|
+
$else: IsString.$<T, $O>
|
|
66
|
+
}
|
|
67
67
|
>
|
|
68
|
+
>
|
|
68
69
|
|
|
69
70
|
export namespace IsString {
|
|
70
71
|
export type $Options = $Equality.$Options & $Exact.$Options
|
|
@@ -78,24 +79,20 @@ export namespace IsString {
|
|
|
78
79
|
* This is a type util for building custom types.
|
|
79
80
|
* It does not check against special types.
|
|
80
81
|
*/
|
|
81
|
-
export type $<T, $O extends $UtilOptions> =
|
|
82
|
-
$
|
|
83
|
-
? $IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
82
|
+
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true
|
|
83
|
+
? $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
84
84
|
: Assignable.$<T, string, $O>
|
|
85
85
|
|
|
86
86
|
export type $UtilOptions = Assignable.$UtilOptions & $Exact.$Options
|
|
87
87
|
|
|
88
|
-
export type _D<T, $O extends $UtilOptions> =
|
|
89
|
-
|
|
90
|
-
? (
|
|
91
|
-
U extends string
|
|
88
|
+
export type _D<T, $O extends $UtilOptions> = T extends string & infer U
|
|
89
|
+
? U extends string
|
|
92
90
|
? $ResolveBranch<T, $O, [$Else]>
|
|
93
91
|
: $ResolveBranch<T, $O, [$Then]>
|
|
94
|
-
)
|
|
95
92
|
: $ResolveBranch<T, $O, [$Else]>
|
|
96
|
-
export type _N<T, $O extends $UtilOptions> =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
export type _N<T, $O extends $UtilOptions> = [T] extends [string & infer U]
|
|
94
|
+
? U extends string
|
|
95
|
+
? $ResolveBranch<T, $O, [$Else]>
|
|
96
|
+
: $ResolveBranch<T, $O, [$Then]>
|
|
100
97
|
: $ResolveBranch<T, $O, [$Else]>
|
|
101
98
|
}
|
|
@@ -68,15 +68,16 @@ import type { _StringType } from './_string_type.js'
|
|
|
68
68
|
* type R = IsStringLiteral<string, $IsStringLiteral.$Branch> // $Else
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
export type IsStringLiteral<T, $O extends IsStringLiteral.$Options = {}> =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
export type IsStringLiteral<T, $O extends IsStringLiteral.$Options = {}> = $SpecialType<
|
|
72
|
+
T,
|
|
73
|
+
$MergeOptions<
|
|
74
|
+
$O,
|
|
75
|
+
{
|
|
76
|
+
$then: $ResolveBranch<T, $O, [$Else]>
|
|
77
|
+
$else: IsStringLiteral.$<T, $O>
|
|
78
|
+
}
|
|
79
79
|
>
|
|
80
|
+
>
|
|
80
81
|
|
|
81
82
|
export namespace IsStringLiteral {
|
|
82
83
|
export type $Options = $Equality.$Options & $Exact.$Options
|
|
@@ -90,43 +91,37 @@ export namespace IsStringLiteral {
|
|
|
90
91
|
* This is a type util for building custom types.
|
|
91
92
|
* It does not check against special types.
|
|
92
93
|
*/
|
|
93
|
-
export type $<T, $O extends $UtilOptions> =
|
|
94
|
-
$
|
|
95
|
-
|
|
96
|
-
: $IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
94
|
+
export type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $Exact.$Default]> extends true
|
|
95
|
+
? $IsDistributive<$O, { $then: _ED<T, $O>; $else: _EN<T, $O> }>
|
|
96
|
+
: $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
97
97
|
|
|
98
98
|
export type $UtilOptions = Assignable.$UtilOptions & $Exact.$Options
|
|
99
99
|
|
|
100
|
-
export type _ED<T, $O extends $SelectionOptions> =
|
|
101
|
-
T extends string ? (_E<T, $O>) : $ResolveBranch<T, $O, [$Else]>
|
|
100
|
+
export type _ED<T, $O extends $SelectionOptions> = T extends string ? _E<T, $O> : $ResolveBranch<T, $O, [$Else]>
|
|
102
101
|
|
|
103
|
-
export type _EN<T, $O extends $SelectionOptions> =
|
|
104
|
-
[T] extends [string] ? (_E<T, $O>) : $ResolveBranch<T, $O, [$Else]>
|
|
102
|
+
export type _EN<T, $O extends $SelectionOptions> = [T] extends [string] ? _E<T, $O> : $ResolveBranch<T, $O, [$Else]>
|
|
105
103
|
|
|
106
|
-
export type _E<T extends string, $O extends $SelectionOptions> =
|
|
107
|
-
T extends string
|
|
104
|
+
export type _E<T extends string, $O extends $SelectionOptions> = T extends string
|
|
108
105
|
? _StringType<T> extends infer R
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
? R extends 'stringLiteral'
|
|
107
|
+
? $ResolveBranch<T, $O, [$Then]>
|
|
108
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
109
|
+
: never
|
|
113
110
|
: $ResolveBranch<T, $O, [$Else]>
|
|
114
111
|
|
|
115
|
-
export type _D<T, $O extends $SelectionOptions> =
|
|
116
|
-
|
|
112
|
+
export type _D<T, $O extends $SelectionOptions> = T extends string & infer U
|
|
113
|
+
? _U<T, U, $O>
|
|
114
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
117
115
|
|
|
118
|
-
export type _N<T, $O extends $SelectionOptions> =
|
|
119
|
-
|
|
116
|
+
export type _N<T, $O extends $SelectionOptions> = [T] extends [string & infer U]
|
|
117
|
+
? _U<T, U, $O>
|
|
118
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
120
119
|
|
|
121
|
-
export type _U<T, U, $O extends $SelectionOptions> =
|
|
122
|
-
U extends `${any}`
|
|
120
|
+
export type _U<T, U, $O extends $SelectionOptions> = U extends `${any}`
|
|
123
121
|
? $ResolveBranch<T, $O, [$Then]>
|
|
124
|
-
:
|
|
125
|
-
U extends Uppercase<infer N>
|
|
122
|
+
: U extends Uppercase<infer N>
|
|
126
123
|
? _D<N, $O>
|
|
127
124
|
: U extends Lowercase<infer N>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
)
|
|
131
|
-
|
|
125
|
+
? _D<N, $O>
|
|
126
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
132
127
|
}
|
|
@@ -54,15 +54,16 @@ import type { _StringType } from './_string_type.js'
|
|
|
54
54
|
* type R = IsTemplateLiteral<bigint, $IsString.$Branch> // $Else
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
export type IsTemplateLiteral<T, $O extends IsTemplateLiteral.$Options = {}> =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
export type IsTemplateLiteral<T, $O extends IsTemplateLiteral.$Options = {}> = $SpecialType<
|
|
58
|
+
T,
|
|
59
|
+
$MergeOptions<
|
|
60
|
+
$O,
|
|
61
|
+
{
|
|
62
|
+
$then: $ResolveBranch<T, $O, [$Else]>
|
|
63
|
+
$else: IsTemplateLiteral.$<T, $O>
|
|
64
|
+
}
|
|
65
65
|
>
|
|
66
|
+
>
|
|
66
67
|
|
|
67
68
|
export namespace IsTemplateLiteral {
|
|
68
69
|
export type $Options = $Equality.$Options
|
|
@@ -70,22 +71,19 @@ export namespace IsTemplateLiteral {
|
|
|
70
71
|
|
|
71
72
|
export type $UtilOptions = Assignable.$UtilOptions
|
|
72
73
|
|
|
73
|
-
export type $<T, $O extends $UtilOptions> =
|
|
74
|
-
$IsDistributive<$O, { $then: _D<T, $O>, $else: _N<T, $O> }>
|
|
74
|
+
export type $<T, $O extends $UtilOptions> = $IsDistributive<$O, { $then: _D<T, $O>; $else: _N<T, $O> }>
|
|
75
75
|
|
|
76
|
-
type _D<T, $O extends $UtilOptions> =
|
|
77
|
-
T extends string
|
|
76
|
+
type _D<T, $O extends $UtilOptions> = T extends string
|
|
78
77
|
? _StringType<T> extends infer R
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
? R extends 'templateLiteral'
|
|
79
|
+
? $ResolveBranch<T, $O, [$Then]>
|
|
80
|
+
: $ResolveBranch<T, $O, [$Else]>
|
|
81
|
+
: never
|
|
83
82
|
: $ResolveBranch<T, $O, [$Else]>
|
|
84
83
|
|
|
85
|
-
type _N<T, $O extends $UtilOptions> =
|
|
86
|
-
_D<T, { $then: $Then, $else: $Else }> extends infer R
|
|
84
|
+
type _N<T, $O extends $UtilOptions> = _D<T, { $then: $Then; $else: $Else }> extends infer R
|
|
87
85
|
? $Then | $Else extends R
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
? $ResolveBranch<T, $O, [$Else]>
|
|
87
|
+
: $ResolveBranch<T, $O, [R]>
|
|
90
88
|
: never
|
|
91
89
|
}
|
package/src/string/string.ts
CHANGED
|
@@ -11,12 +11,12 @@ export namespace StringPlus {
|
|
|
11
11
|
* type R = StringPlus.Includes<'abc', 'd'> // false
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
export type Includes<
|
|
15
|
-
Subject
|
|
16
|
-
Search
|
|
17
|
-
Then
|
|
18
|
-
Else
|
|
19
|
-
>
|
|
14
|
+
export type Includes<Subject extends string, Search extends string, Then = true, Else = false> = StringIncludes<
|
|
15
|
+
Subject,
|
|
16
|
+
Search,
|
|
17
|
+
Then,
|
|
18
|
+
Else
|
|
19
|
+
>
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Split a string into substrings using the specified separator,
|
|
@@ -30,5 +30,4 @@ export namespace StringPlus {
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export type Split<Subject extends string, Seperator extends string> = StringSplit<Subject, Seperator>
|
|
33
|
-
|
|
34
33
|
}
|
|
@@ -51,10 +51,12 @@ import type { $Then } from '../type_plus/branch/$selection.js'
|
|
|
51
51
|
* type R = IsNotSymbol<symbol, $SelectionBranch> // $Else
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
export type IsNotSymbol<T, $O extends IsNotSymbol.$Options = {}> = $SpecialType<
|
|
55
|
-
|
|
54
|
+
export type IsNotSymbol<T, $O extends IsNotSymbol.$Options = {}> = $SpecialType<
|
|
55
|
+
T,
|
|
56
|
+
$MergeOptions<
|
|
57
|
+
$O,
|
|
56
58
|
{
|
|
57
|
-
$then: $ResolveBranch<T, $O, [$Then]
|
|
59
|
+
$then: $ResolveBranch<T, $O, [$Then]>
|
|
58
60
|
$else: IsNotSymbol.$<T, $O>
|
|
59
61
|
}
|
|
60
62
|
>
|
package/src/symbol/is_symbol.ts
CHANGED
|
@@ -53,10 +53,12 @@ import type { $Else } from '../type_plus/branch/$selection.js'
|
|
|
53
53
|
* type R = IsSymbol<string, $SelectionBranch> // $Else
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
export type IsSymbol<T, $O extends IsSymbol.$Options = {}> = $SpecialType<
|
|
57
|
-
|
|
56
|
+
export type IsSymbol<T, $O extends IsSymbol.$Options = {}> = $SpecialType<
|
|
57
|
+
T,
|
|
58
|
+
$MergeOptions<
|
|
59
|
+
$O,
|
|
58
60
|
{
|
|
59
|
-
$then: $ResolveBranch<T, $O, [$Else]
|
|
61
|
+
$then: $ResolveBranch<T, $O, [$Else]>
|
|
60
62
|
$else: IsSymbol.$<T, $O>
|
|
61
63
|
}
|
|
62
64
|
>
|