type-plus 8.0.0-beta.6 → 8.0.0-beta.7
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.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/assertion/assert_type.d.ts.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/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/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/compose.d.ts.map +1 -1
- package/cjs/functional/compose.js +1 -3
- package/cjs/functional/compose.js.map +1 -1
- package/cjs/index.d.ts +20 -21
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.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/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.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/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 +2 -2
- package/cjs/object/ANotB.d.ts.map +1 -1
- package/cjs/object/KeysWithDiffType.d.ts +1 -1
- package/cjs/object/KeysWithDiffType.d.ts.map +1 -1
- package/cjs/object/adjust_exact_optional_props.d.ts +1 -1
- package/cjs/object/adjust_exact_optional_props.d.ts.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 +2 -2
- package/cjs/object/left_join.d.ts.map +1 -1
- package/cjs/object/mapProperties.d.ts +1 -1
- package/cjs/object/mapProperties.d.ts.map +1 -1
- package/cjs/object/mapProperties.js.map +1 -1
- package/cjs/object/merge.d.ts +55 -49
- package/cjs/object/merge.d.ts.map +1 -1
- package/cjs/object/optional_key.d.ts +1 -1
- package/cjs/object/optional_key.d.ts.map +1 -1
- package/cjs/object/record.d.ts.map +1 -1
- package/cjs/object/split.d.ts +1 -1
- package/cjs/object/split.d.ts.map +1 -1
- package/cjs/predicates/CanAssign.d.ts +1 -1
- package/cjs/predicates/CanAssign.d.ts.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/not_assignable.d.ts +24 -26
- package/cjs/predicates/not_assignable.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 +0 -1
- package/cjs/testing/stub.d.ts.map +1 -1
- 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/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 +1 -1
- package/cjs/type-guard/is_type.d.ts.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/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/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/{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.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.map +1 -1
- 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/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 +20 -21
- package/esm/index.d.ts.map +1 -1
- package/esm/index.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/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 +2 -2
- package/esm/object/ANotB.d.ts.map +1 -1
- package/esm/object/KeysWithDiffType.d.ts +1 -1
- package/esm/object/KeysWithDiffType.d.ts.map +1 -1
- package/esm/object/adjust_exact_optional_props.d.ts +1 -1
- package/esm/object/adjust_exact_optional_props.d.ts.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 +2 -2
- package/esm/object/left_join.d.ts.map +1 -1
- package/esm/object/mapProperties.d.ts +1 -1
- package/esm/object/mapProperties.d.ts.map +1 -1
- package/esm/object/mapProperties.js.map +1 -1
- package/esm/object/merge.d.ts +55 -49
- package/esm/object/merge.d.ts.map +1 -1
- package/esm/object/optional_key.d.ts +1 -1
- package/esm/object/optional_key.d.ts.map +1 -1
- package/esm/object/record.d.ts.map +1 -1
- package/esm/object/split.d.ts +1 -1
- package/esm/object/split.d.ts.map +1 -1
- package/esm/predicates/CanAssign.d.ts +1 -1
- package/esm/predicates/CanAssign.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/not_assignable.d.ts +24 -26
- package/esm/predicates/not_assignable.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 +0 -1
- 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 +1 -1
- 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/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 +5 -5
- 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.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 -1
- 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 +20 -21
- package/src/logical/logical.ts +52 -0
- package/src/logical/readme.md +53 -0
- package/src/math/abs.ts +1 -1
- 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 +2 -2
- package/src/object/KeysWithDiffType.ts +1 -1
- package/src/object/adjust_exact_optional_props.ts +1 -1
- package/src/object/is_not_object.ts +29 -22
- package/src/object/is_object.ts +29 -22
- package/src/object/left_join.ts +2 -2
- package/src/object/mapProperties.ts +1 -1
- package/src/object/merge.ts +54 -50
- package/src/object/optional_key.ts +1 -1
- package/src/object/record.ts +1 -1
- package/src/object/split.ts +1 -1
- package/src/predicates/CanAssign.ts +1 -1
- package/src/predicates/assignable.ts +23 -25
- package/src/predicates/index.ts +1 -1
- package/src/predicates/not_assignable.ts +24 -26
- 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,11 +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 { 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 { $SpecialType } from '../type_plus/$special_type.js';
|
|
5
|
-
import type { $ExactOptions, $IsExact } from '../type_plus/branch/$exact.js';
|
|
6
|
-
import type { $IsDistributive } from '../type_plus/branch/$is_distributive.js';
|
|
7
|
-
import type { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js';
|
|
8
|
-
import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
9
13
|
/**
|
|
10
14
|
* 🎭 *predicate*
|
|
11
15
|
*
|
|
@@ -59,13 +63,13 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
59
63
|
* type R = IsNotArray<number, IsNotArray.$Branch> // $Then
|
|
60
64
|
* ```
|
|
61
65
|
*/
|
|
62
|
-
export type IsNotArray<T, $O extends IsNotArray.$Options = {}> = $
|
|
63
|
-
$then: $ResolveBranch
|
|
66
|
+
export type IsNotArray<T, $O extends IsNotArray.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
67
|
+
$then: $ResolveBranch<$O, [$Then], T>;
|
|
64
68
|
$else: IsNotArray.$<T, $O>;
|
|
65
69
|
}>>;
|
|
66
70
|
export declare namespace IsNotArray {
|
|
67
|
-
type $Options = $
|
|
68
|
-
type $Branch<$O extends $Options = {}> = $
|
|
71
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
72
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
69
73
|
/**
|
|
70
74
|
* 🧰 *type util*
|
|
71
75
|
*
|
|
@@ -74,16 +78,16 @@ export declare namespace IsNotArray {
|
|
|
74
78
|
* This is a type util for building custom types.
|
|
75
79
|
* It does not check against special types.
|
|
76
80
|
*/
|
|
77
|
-
type $<T, $O extends $UtilOptions> = $
|
|
78
|
-
$then: $
|
|
79
|
-
$then: T extends readonly any[] ? number extends T['length'] ? $ResolveBranch
|
|
80
|
-
$else: [T] extends [readonly any[]] ? number extends T['length'] ? $ResolveBranch
|
|
81
|
+
type $<T, $O extends $UtilOptions> = $Exact.Parse<$O, {
|
|
82
|
+
$then: $Distributive.Parse<$O, {
|
|
83
|
+
$then: T extends readonly any[] ? number extends T['length'] ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Then], T>;
|
|
84
|
+
$else: [T] extends [readonly any[]] ? number extends T['length'] ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Then], T>;
|
|
81
85
|
}>;
|
|
82
|
-
$else: $
|
|
83
|
-
$then: T extends readonly any[] ? $ResolveBranch
|
|
84
|
-
$else: [T] extends readonly [any[]] ? $ResolveBranch
|
|
86
|
+
$else: $Distributive.Parse<$O, {
|
|
87
|
+
$then: T extends readonly any[] ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T>;
|
|
88
|
+
$else: [T] extends readonly [any[]] ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T>;
|
|
85
89
|
}>;
|
|
86
90
|
}>;
|
|
87
|
-
type $UtilOptions = NotAssignable.$UtilOptions & $
|
|
91
|
+
type $UtilOptions = NotAssignable.$UtilOptions & $Exact.Options;
|
|
88
92
|
}
|
|
89
93
|
//# sourceMappingURL=is_not_array.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_not_array.d.ts","sourceRoot":"","sources":["../../src/array/is_not_array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"is_not_array.d.ts","sourceRoot":"","sources":["../../src/array/is_not_array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAA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AAC,CAAA;SAClG,CACD,CAAA;KACD,CACD,CAAA;IAED,KAAY,YAAY,GAAG,aAAa,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAA;CACtE"}
|
package/cjs/array/last.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import type { $Never } from '../$type/special/$never.js';
|
|
1
2
|
import type { IsNever } from '../never/is_never.js';
|
|
2
|
-
import type { $Never } from '../never/never.js';
|
|
3
|
-
import type { $Else, $SelectionBranch, $Then } from '../type_plus/branch/$selection.js';
|
|
4
3
|
/**
|
|
5
4
|
* 🦴 *utilities*
|
|
6
5
|
*
|
|
@@ -20,7 +19,10 @@ import type { $Else, $SelectionBranch, $Then } from '../type_plus/branch/$select
|
|
|
20
19
|
* @typeParam Options['caseEmptyTuple'] Return type when `T` is `[]`.
|
|
21
20
|
* Default to `never`.
|
|
22
21
|
*/
|
|
23
|
-
export type Last<T extends readonly unknown[], Options extends Last.Options = Last.DefaultOptions> = IsNever<T,
|
|
22
|
+
export type Last<T extends readonly unknown[], Options extends Last.Options = Last.DefaultOptions> = IsNever<T, {
|
|
23
|
+
$then: Options['$never'];
|
|
24
|
+
$else: T['length'] extends 0 ? Options['caseEmptyTuple'] : T extends readonly [...unknown[], infer R] ? R : T[0];
|
|
25
|
+
}>;
|
|
24
26
|
export declare namespace Last {
|
|
25
27
|
interface Options extends $Never.$Options {
|
|
26
28
|
caseEmptyTuple?: unknown;
|
package/cjs/array/last.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../src/array/last.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../src/array/last.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,SAAS,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,cAAc,IAAI,OAAO,CAC3G,CAAC,EACD;IACC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IACxB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,SAAS,CAAC,GAAG,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;CAChH,CACD,CAAA;AAED,yBAAiB,IAAI,CAAC;IACrB,UAAiB,OAAQ,SAAQ,MAAM,CAAC,QAAQ;QAC/C,cAAc,CAAC,EAAE,OAAO,CAAA;KACxB;IAED,UAAiB,cAAe,SAAQ,MAAM,CAAC,QAAQ;QACtD,cAAc,EAAE,KAAK,CAAA;KACrB;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert_type.d.ts","sourceRoot":"","sources":["../../src/assertion/assert_type.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"assert_type.d.ts","sourceRoot":"","sources":["../../src/assertion/assert_type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAE9D;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,CAAA;AAC/D,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,CAAA;AACnG;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,EAChE,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,CAAC,GACjB,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC,CAAC,CAAC,CAAA;yBAHrB,UAAU"}
|
|
@@ -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 { $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
14
|
/**
|
|
11
15
|
* 🎭 *predicate*
|
|
12
16
|
*
|
|
@@ -69,13 +73,13 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
69
73
|
* type R = IsBigint<string, $SelectionBranch> // $Else
|
|
70
74
|
* ```
|
|
71
75
|
*/
|
|
72
|
-
export type IsBigint<T, $O extends IsBigint.$Options = {}> = $
|
|
73
|
-
$then: $ResolveBranch
|
|
76
|
+
export type IsBigint<T, $O extends IsBigint.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
77
|
+
$then: $ResolveBranch<$O, [$Else]>;
|
|
74
78
|
$else: IsBigint.$<T, $O>;
|
|
75
79
|
}>>;
|
|
76
80
|
export declare namespace IsBigint {
|
|
77
|
-
type $Options = $
|
|
78
|
-
type $Branch<$O extends $Options = {}> = $
|
|
81
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
82
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
79
83
|
/**
|
|
80
84
|
* 🧰 *type util*
|
|
81
85
|
*
|
|
@@ -84,12 +88,12 @@ export declare namespace IsBigint {
|
|
|
84
88
|
* This is a type util for building custom types.
|
|
85
89
|
* It does not check against special types.
|
|
86
90
|
*/
|
|
87
|
-
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $
|
|
91
|
+
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $Exact.Default]> extends true ? $Distributive.Parse<$O, {
|
|
88
92
|
$then: _SD<T, $O>;
|
|
89
93
|
$else: _SN<T, $O>;
|
|
90
94
|
}> : Assignable.$<T, bigint, $O>;
|
|
91
|
-
type $UtilOptions = Assignable.$UtilOptions & $
|
|
92
|
-
type _SD<T, $O extends $Options> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch
|
|
93
|
-
type _SN<T, $O extends $Options> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch
|
|
95
|
+
type $UtilOptions = Assignable.$UtilOptions & $Exact.Options;
|
|
96
|
+
type _SD<T, $O extends $Options> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]>;
|
|
97
|
+
type _SN<T, $O extends $Options> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]>;
|
|
94
98
|
}
|
|
95
99
|
//# sourceMappingURL=is_bigint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_bigint.d.ts","sourceRoot":"","sources":["../../src/bigint/is_bigint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"is_bigint.d.ts","sourceRoot":"","sources":["../../src/bigint/is_bigint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,EA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AAY,GAAG,MAAM,CAAC,OAAO,CAAA;IAEnE,KAAY,GAAG,CAAC,CAAC,EAAE,EAAE,SAAS,QAAQ,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,GACjE,CAAC,SAAS,MAAM,GACf,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAC3B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAC/B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAC9B,KAAY,GAAG,CAAC,CAAC,EAAE,EAAE,SAAS,QAAQ,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GACrE,CAAC,SAAS,MAAM,GACf,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAC3B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAC/B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;CAC9B"}
|
|
@@ -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
|
/**
|
|
9
14
|
* 🎭 *predicate*
|
|
10
15
|
*
|
|
@@ -57,13 +62,13 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
57
62
|
* type R = IsBigintLiteral<string, $SelectionBranch> // $Else
|
|
58
63
|
* ```
|
|
59
64
|
*/
|
|
60
|
-
export type IsBigintLiteral<T, $O extends IsBigintLiteral.$Options = {}> = $
|
|
61
|
-
$then: $ResolveBranch
|
|
65
|
+
export type IsBigintLiteral<T, $O extends IsBigintLiteral.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
66
|
+
$then: $ResolveBranch<$O, [$Else]>;
|
|
62
67
|
$else: IsBigintLiteral.$<T, $O>;
|
|
63
68
|
}>>;
|
|
64
69
|
export declare namespace IsBigintLiteral {
|
|
65
|
-
type $Options = $
|
|
66
|
-
type $Branch<$O extends $Options = {}> = $
|
|
70
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
71
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
67
72
|
/**
|
|
68
73
|
* 🧰 *type util*
|
|
69
74
|
*
|
|
@@ -72,12 +77,12 @@ export declare namespace IsBigintLiteral {
|
|
|
72
77
|
* This is a type util for building custom types.
|
|
73
78
|
* It does not check against special types.
|
|
74
79
|
*/
|
|
75
|
-
type $<T, $O extends $UtilOptions> = $
|
|
80
|
+
type $<T, $O extends $UtilOptions> = $Distributive.Parse<$O, {
|
|
76
81
|
$then: _D<T, $O>;
|
|
77
82
|
$else: _N<T, $O>;
|
|
78
83
|
}>;
|
|
79
84
|
type $UtilOptions = Assignable.$UtilOptions;
|
|
80
|
-
type _D<T, $O extends $UtilOptions> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch
|
|
81
|
-
type _N<T, $O extends $UtilOptions> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch
|
|
85
|
+
type _D<T, $O extends $UtilOptions> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Else]>;
|
|
86
|
+
type _N<T, $O extends $UtilOptions> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Else]>;
|
|
82
87
|
}
|
|
83
88
|
//# sourceMappingURL=is_bigint_literal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_bigint_literal.d.ts","sourceRoot":"","sources":["../../src/bigint/is_bigint_literal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"is_bigint_literal.d.ts","sourceRoot":"","sources":["../../src/bigint/is_bigint_literal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,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D,KAAY,EAAE,CAAC,CAAC,EAAE,EAAE,SAAS,YAAY,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,GACpE,CAAC,SAAS,MAAM,GACf,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAC9B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAC5B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAC9B,KAAY,EAAE,CAAC,CAAC,EAAE,EAAE,SAAS,YAAY,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,GACxE,CAAC,SAAS,MAAM,GACf,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAC9B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,GAC5B,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;CAC9B"}
|
|
@@ -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 { 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
14
|
/**
|
|
11
15
|
* 🎭 *predicate*
|
|
12
16
|
*
|
|
@@ -66,13 +70,13 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
66
70
|
* type R = IsNotBigint<bigint, $SelectionBranch> // $Else
|
|
67
71
|
* ```
|
|
68
72
|
*/
|
|
69
|
-
export type IsNotBigint<T, $O extends IsNotBigint.$Options = {}> = $
|
|
70
|
-
$then: $ResolveBranch
|
|
73
|
+
export type IsNotBigint<T, $O extends IsNotBigint.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
74
|
+
$then: $ResolveBranch<$O, [$Then], T>;
|
|
71
75
|
$else: IsNotBigint.$<T, $O>;
|
|
72
76
|
}>>;
|
|
73
77
|
export declare namespace IsNotBigint {
|
|
74
|
-
type $Options = $
|
|
75
|
-
type $Branch<$O extends $Options = {}> = $
|
|
78
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
79
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
76
80
|
/**
|
|
77
81
|
* 🧰 *type util*
|
|
78
82
|
*
|
|
@@ -81,12 +85,12 @@ export declare namespace IsNotBigint {
|
|
|
81
85
|
* This is a type util for building custom types.
|
|
82
86
|
* It does not check against special types.
|
|
83
87
|
*/
|
|
84
|
-
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true ? $
|
|
88
|
+
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], false]> extends true ? $Distributive.Parse<$O, {
|
|
85
89
|
$then: _SD<T, $O>;
|
|
86
90
|
$else: _SN<T, $O>;
|
|
87
91
|
}> : NotAssignable.$<T, bigint, $O>;
|
|
88
|
-
type $UtilOptions = NotAssignable.$UtilOptions & $
|
|
89
|
-
type _SD<T, $O extends $Options> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch
|
|
90
|
-
type _SN<T, $O extends $Options> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch
|
|
92
|
+
type $UtilOptions = NotAssignable.$UtilOptions & $Exact.Options;
|
|
93
|
+
type _SD<T, $O extends $Options> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T>;
|
|
94
|
+
type _SN<T, $O extends $Options> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T>;
|
|
91
95
|
}
|
|
92
96
|
//# sourceMappingURL=is_not_bigint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_not_bigint.d.ts","sourceRoot":"","sources":["../../src/bigint/is_not_bigint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"is_not_bigint.d.ts","sourceRoot":"","sources":["../../src/bigint/is_not_bigint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,E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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
|
/**
|
|
9
14
|
* 🎭 *predicate*
|
|
10
15
|
*
|
|
@@ -55,13 +60,14 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
55
60
|
* type R = IsNotBigintLiteral<bigint, $SelectionBranch> // $Then
|
|
56
61
|
* ```
|
|
57
62
|
*/
|
|
58
|
-
export type IsNotBigintLiteral<T, $O extends IsNotBigintLiteral.$Options = {}> = $
|
|
59
|
-
$then: $ResolveBranch
|
|
63
|
+
export type IsNotBigintLiteral<T, $O extends IsNotBigintLiteral.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
64
|
+
$then: $ResolveBranch<$O, [$Then], T>;
|
|
60
65
|
$else: IsNotBigintLiteral.$<T, $O>;
|
|
61
66
|
}>>;
|
|
62
67
|
export declare namespace IsNotBigintLiteral {
|
|
63
|
-
type $Options = $
|
|
64
|
-
type $
|
|
68
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
69
|
+
type $Default = $Selection.Predicate & $Distributive.Default & $Exact.Default;
|
|
70
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
65
71
|
/**
|
|
66
72
|
* 🧰 *type util*
|
|
67
73
|
*
|
|
@@ -70,12 +76,12 @@ export declare namespace IsNotBigintLiteral {
|
|
|
70
76
|
* This is a type util for building custom types.
|
|
71
77
|
* It does not check against special types.
|
|
72
78
|
*/
|
|
73
|
-
type $<T, $O extends $UtilOptions> = $
|
|
79
|
+
type $<T, $O extends $UtilOptions> = $Distributive.Parse<$O, {
|
|
74
80
|
$then: _D<T, $O>;
|
|
75
81
|
$else: _N<T, $O>;
|
|
76
82
|
}>;
|
|
77
83
|
type $UtilOptions = Assignable.$UtilOptions;
|
|
78
|
-
type _D<T, $O extends $UtilOptions> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch
|
|
79
|
-
type _N<T, $O extends $UtilOptions> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch
|
|
84
|
+
type _D<T, $O extends $UtilOptions> = T extends bigint & infer U ? U extends bigint ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Then], T>;
|
|
85
|
+
type _N<T, $O extends $UtilOptions> = [T] extends [bigint & infer U] ? U extends bigint ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Then], T>;
|
|
80
86
|
}
|
|
81
87
|
//# sourceMappingURL=is_not_bigint_literal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_not_bigint_literal.d.ts","sourceRoot":"","sources":["../../src/bigint/is_not_bigint_literal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,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,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;CACjC"}
|
package/cjs/binary/_binary.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_binary.d.ts","sourceRoot":"","sources":["../../src/binary/_binary.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"_binary.d.ts","sourceRoot":"","sources":["../../src/binary/_binary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA"}
|
package/cjs/binary/_binary.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_binary.js","sourceRoot":"","sources":["../../src/binary/_binary.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"_binary.js","sourceRoot":"","sources":["../../src/binary/_binary.ts"],"names":[],"mappings":";;;AAAA,gCAA6B;AAC7B,kCAA+B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type Bit = 0 | 1;
|
|
2
|
+
/**
|
|
3
|
+
* Bitwise NOT operation.
|
|
4
|
+
*
|
|
5
|
+
* @since 🏷️ 8.0.0
|
|
6
|
+
*/
|
|
7
|
+
export type Not<X extends Bit> = X extends 0 ? 1 : 0;
|
|
8
|
+
/**
|
|
9
|
+
* Bitwise AND operation.
|
|
10
|
+
*
|
|
11
|
+
* @since 🏷️ 8.0.0
|
|
12
|
+
*/
|
|
13
|
+
export type And<A extends Bit, B extends Bit> = A extends 1 ? (B extends 1 ? 1 : 0) : 0;
|
|
14
|
+
/**
|
|
15
|
+
* Bitwise OR operation.
|
|
16
|
+
*
|
|
17
|
+
* @since 🏷️ 8.0.0
|
|
18
|
+
*/
|
|
19
|
+
export type Or<A extends Bit, B extends Bit> = A extends 1 ? 1 : B extends 1 ? 1 : 0;
|
|
20
|
+
/**
|
|
21
|
+
* Bitwise XOR operation.
|
|
22
|
+
*
|
|
23
|
+
* @since 🏷️ 8.0.0
|
|
24
|
+
*/
|
|
25
|
+
export type Xor<A extends Bit, B extends Bit> = A extends 1 ? Not<B> : B;
|
|
26
|
+
//# sourceMappingURL=bit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../src/binary/bit.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,CAAA;AAEvB;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEpD;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEvF;;;;GAIG;AACH,MAAM,MAAM,EAAE,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEpF;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bit.js","sourceRoot":"","sources":["../../src/binary/bit.ts"],"names":[],"mappings":""}
|
|
@@ -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 { $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
14
|
/**
|
|
11
15
|
* 🎭 *predicate*
|
|
12
16
|
*
|
|
@@ -58,13 +62,13 @@ import type { $Else, $Then } from '../type_plus/branch/$selection.js';
|
|
|
58
62
|
* type R = IsBoolean<string, $SelectionBranch> // $Else
|
|
59
63
|
* ```
|
|
60
64
|
*/
|
|
61
|
-
export type IsBoolean<T, $O extends IsBoolean.$Options = {}> = $
|
|
62
|
-
$then: $ResolveBranch
|
|
65
|
+
export type IsBoolean<T, $O extends IsBoolean.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
66
|
+
$then: $ResolveBranch<$O, [$Else]>;
|
|
63
67
|
$else: IsBoolean.$<T, $O>;
|
|
64
68
|
}>>;
|
|
65
69
|
export declare namespace IsBoolean {
|
|
66
|
-
type $Options = $
|
|
67
|
-
type $Branch<$O extends $Options = {}> = $
|
|
70
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
71
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
68
72
|
/**
|
|
69
73
|
* 🧰 *type util*
|
|
70
74
|
*
|
|
@@ -73,13 +77,13 @@ export declare namespace IsBoolean {
|
|
|
73
77
|
* This is a type util for building custom types.
|
|
74
78
|
* It does not check against special types.
|
|
75
79
|
*/
|
|
76
|
-
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $
|
|
80
|
+
type $<T, $O extends $UtilOptions> = $ResolveOptions<[$O['exact'], $Exact.Default]> extends true ? $Distributive.Parse<$O, {
|
|
77
81
|
$then: _SD<T, $O>;
|
|
78
82
|
$else: _N<T, $O>;
|
|
79
83
|
}> : Assignable.$<T, boolean, $O>;
|
|
80
|
-
type $UtilOptions = Assignable.$UtilOptions & $
|
|
81
|
-
type _SD<T, $O extends $Options> = IsBoolean._DistributeMap<T> extends infer R ? ['aBcD' | 'AbCd' | 'abcd'] extends [R] ? $ResolveBranch
|
|
82
|
-
type _N<T, $O extends $Options> = [T] extends [boolean] ? [T] extends [true] ? $ResolveBranch
|
|
84
|
+
type $UtilOptions = Assignable.$UtilOptions & $Exact.Options;
|
|
85
|
+
type _SD<T, $O extends $Options> = IsBoolean._DistributeMap<T> extends infer R ? ['aBcD' | 'AbCd' | 'abcd'] extends [R] ? $ResolveBranch<$O, [$Then], boolean> | $ResolveBranch<$O, [$Else], Exclude<T, boolean>> : ['aBcD' | 'AbCd'] extends [R] ? $ResolveBranch<$O, [$Then], T> : ['aBcd' | 'Abcd'] extends [R] ? $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]> : never;
|
|
86
|
+
type _N<T, $O extends $Options> = [T] extends [boolean] ? [T] extends [true] ? $ResolveBranch<$O, [$Else]> : [T] extends [false] ? $ResolveBranch<$O, [$Else]> : $ResolveBranch<$O, [$Then], T> : $ResolveBranch<$O, [$Else]>;
|
|
83
87
|
type _DistributeMap<T> = T extends true ? T extends false ? true extends T ? false extends T ? 'ABCD' : 'ABCd' : false extends T ? 'ABcD' : 'ABcd' : true extends T ? false extends T ? 'AbCD' : 'AbCd' : false extends T ? 'AbcD' : 'Abcd' : T extends false ? true extends T ? false extends T ? 'aBCD' : 'aBCd' : false extends T ? 'aBcD' : 'aBcd' : true extends T ? false extends T ? 'abCD' : 'abCd' : false extends T ? 'abcD' : 'abcd';
|
|
84
88
|
}
|
|
85
89
|
//# sourceMappingURL=is_boolean.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_boolean.d.ts","sourceRoot":"","sources":["../../src/boolean/is_boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"is_boolean.d.ts","sourceRoot":"","sources":["../../src/boolean/is_boolean.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8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9B,KAAY,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,GAC3C,CAAC,SAAS,KAAK,GACd,IAAI,SAAS,CAAC,GACb,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACP,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACR,IAAI,SAAS,CAAC,GACb,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACP,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACT,CAAC,SAAS,KAAK,GACd,IAAI,SAAS,CAAC,GACb,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACP,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACR,IAAI,SAAS,CAAC,GACb,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,GACP,KAAK,SAAS,CAAC,GACd,MAAM,GACN,MAAM,CAAA;CACZ"}
|
|
@@ -1,9 +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 } 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 { $ResolveBranch } from '../type_plus/branch/$resolve_branch.js';
|
|
6
|
-
import type { $Else } from '../type_plus/branch/$selection.js';
|
|
7
13
|
/**
|
|
8
14
|
* 🎭 *predicate*
|
|
9
15
|
*
|
|
@@ -57,13 +63,13 @@ import type { $Else } from '../type_plus/branch/$selection.js';
|
|
|
57
63
|
* type R = IsFalse<string, $SelectionBranch> // $Else
|
|
58
64
|
* ```
|
|
59
65
|
*/
|
|
60
|
-
export type IsFalse<T, $O extends IsFalse.$Options = {}> = $
|
|
61
|
-
$then: $ResolveBranch
|
|
66
|
+
export type IsFalse<T, $O extends IsFalse.$Options = {}> = $Special<T, $MergeOptions<$O, {
|
|
67
|
+
$then: $ResolveBranch<$O, [$Else]>;
|
|
62
68
|
$else: IsFalse.$<T, $O>;
|
|
63
69
|
}>>;
|
|
64
70
|
export declare namespace IsFalse {
|
|
65
|
-
type $Options = $
|
|
66
|
-
type $Branch<$O extends $Options = {}> = $
|
|
71
|
+
type $Options = $Selection.Options & $Distributive.Options & $Exact.Options & $InputOptions<$Any | $Unknown | $Never | $Void>;
|
|
72
|
+
type $Branch<$O extends $Options = {}> = $Selection.Branch<$O>;
|
|
67
73
|
/**
|
|
68
74
|
* 🧰 *type util*
|
|
69
75
|
*
|