type-plus 7.5.0 → 8.0.0-beta.0
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/array/array.at.d.ts +2 -2
- package/esm/array/array.at.d.ts.map +1 -1
- package/esm/array/array.entries.d.ts +2 -2
- 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 +5 -1
- package/esm/array/array.reverse.d.ts.map +1 -1
- package/esm/array/array.some.d.ts +7 -7
- package/esm/array/array.some.d.ts.map +1 -1
- package/esm/array/array_plus.common_prop_keys.d.ts +2 -2
- package/esm/array/array_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/array/array_plus.concat.d.ts +1 -1
- package/esm/array/array_plus.concat.d.ts.map +1 -1
- package/esm/array/array_plus.d.ts +3 -1
- package/esm/array/array_plus.d.ts.map +1 -1
- package/esm/array/array_plus.drop_match.d.ts +3 -0
- package/esm/array/array_plus.drop_match.d.ts.map +1 -1
- package/esm/array/array_plus.element_match.d.ts +11 -11
- package/esm/array/array_plus.element_match.d.ts.map +1 -1
- package/esm/array/array_plus.filter.d.ts +24 -1
- package/esm/array/array_plus.filter.d.ts.map +1 -1
- package/esm/array/array_plus.filter.js +1 -0
- package/esm/array/array_plus.filter.js.map +1 -1
- package/esm/array/array_plus.find.d.ts +10 -10
- package/esm/array/array_plus.find.d.ts.map +1 -1
- package/esm/array/array_plus.index_at.d.ts +28 -0
- package/esm/array/array_plus.index_at.d.ts.map +1 -0
- package/esm/array/array_plus.index_at.js +2 -0
- package/esm/array/array_plus.index_at.js.map +1 -0
- package/esm/array/array_plus.is_index_out_of_bound.d.ts +18 -0
- package/esm/array/array_plus.is_index_out_of_bound.d.ts.map +1 -0
- package/esm/array/array_plus.is_index_out_of_bound.js +2 -0
- package/esm/array/array_plus.is_index_out_of_bound.js.map +1 -0
- package/esm/array/array_plus.is_readonly.d.ts +30 -0
- package/esm/array/array_plus.is_readonly.d.ts.map +1 -0
- package/esm/array/array_plus.is_readonly.js +2 -0
- package/esm/array/array_plus.is_readonly.js.map +1 -0
- package/esm/array/array_plus.pad_start.d.ts +1 -1
- package/esm/array/array_plus.pad_start.d.ts.map +1 -1
- package/esm/array/array_plus.split_at.d.ts +21 -16
- package/esm/array/array_plus.split_at.d.ts.map +1 -1
- package/esm/array/array_type.d.ts +2 -2
- package/esm/array/array_type.d.ts.map +1 -1
- package/esm/array/filter.d.ts +2 -2
- package/esm/array/filter.d.ts.map +1 -1
- package/esm/array/find_first.d.ts +6 -6
- package/esm/array/find_first.d.ts.map +1 -1
- package/esm/array/head.d.ts +2 -2
- package/esm/array/head.d.ts.map +1 -1
- package/esm/array/intersect_of_props.d.ts +1 -1
- package/esm/array/intersect_of_props.d.ts.map +1 -1
- package/esm/array/last.d.ts +2 -2
- package/esm/array/last.d.ts.map +1 -1
- package/esm/array/loose_array_type.d.ts +62 -0
- package/esm/array/loose_array_type.d.ts.map +1 -0
- package/esm/array/loose_array_type.js +2 -0
- package/esm/array/loose_array_type.js.map +1 -0
- package/esm/array/pad_start.d.ts +1 -1
- package/esm/array/pad_start.d.ts.map +1 -1
- package/esm/array/strict_array_type.d.ts +66 -0
- package/esm/array/strict_array_type.d.ts.map +1 -0
- package/esm/array/strict_array_type.js +2 -0
- package/esm/array/strict_array_type.js.map +1 -0
- package/esm/array/union_of_props.d.ts +2 -2
- package/esm/array/union_of_props.d.ts.map +1 -1
- package/esm/array/union_of_values.d.ts +2 -2
- package/esm/array/union_of_values.d.ts.map +1 -1
- package/esm/equal/equal.d.ts +1 -1
- package/esm/equal/equal.d.ts.map +1 -1
- package/esm/equal/identity_equal.d.ts +6 -0
- package/esm/equal/identity_equal.d.ts.map +1 -0
- package/esm/equal/identity_equal.js +2 -0
- package/esm/equal/identity_equal.js.map +1 -0
- package/esm/index.d.ts +7 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/math/numeric_struct.d.ts.map +1 -1
- package/esm/mix_types/box.d.ts +35 -0
- package/esm/mix_types/box.d.ts.map +1 -0
- package/esm/mix_types/box.js +2 -0
- package/esm/mix_types/box.js.map +1 -0
- package/esm/mix_types/merge.d.ts +38 -0
- package/esm/mix_types/merge.d.ts.map +1 -0
- package/esm/{merge.js → mix_types/merge.js} +1 -1
- package/esm/mix_types/merge.js.map +1 -0
- package/esm/never/never_type.d.ts +2 -2
- package/esm/never/never_type.d.ts.map +1 -1
- package/esm/object/ANotB.d.ts +1 -1
- package/esm/object/ANotB.d.ts.map +1 -1
- package/esm/object/IsDisjoint.d.ts +1 -1
- package/esm/object/IsDisjoint.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/KnownKeys.d.ts.map +1 -1
- package/esm/object/RecursiveIntersect.d.ts +2 -2
- package/esm/object/RecursiveIntersect.d.ts.map +1 -1
- package/esm/object/RecursiveRequired.d.ts +1 -1
- package/esm/object/RecursiveRequired.d.ts.map +1 -1
- package/{cjs/object/AnyRecord.d.ts → esm/object/any_record.d.ts} +1 -1
- package/esm/object/any_record.d.ts.map +1 -0
- package/esm/object/any_record.js +2 -0
- package/esm/object/any_record.js.map +1 -0
- package/esm/object/facade.d.ts +1 -1
- package/esm/object/facade.d.ts.map +1 -1
- package/esm/object/hasKey.d.ts +1 -1
- package/esm/object/hasKey.d.ts.map +1 -1
- package/esm/object/index.d.ts +1 -1
- package/esm/object/index.d.ts.map +1 -1
- package/esm/object/is_strict_object.d.ts +10 -0
- package/esm/object/is_strict_object.d.ts.map +1 -0
- package/esm/object/is_strict_object.js +2 -0
- package/esm/object/is_strict_object.js.map +1 -0
- package/esm/object/left_join.d.ts +1 -1
- 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/merge.d.ts +59 -0
- package/esm/object/merge.d.ts.map +1 -0
- package/esm/object/merge.js +2 -0
- package/esm/object/merge.js.map +1 -0
- package/esm/object/object_plus.d.ts +2 -0
- package/esm/object/object_plus.d.ts.map +1 -0
- package/esm/object/object_plus.js +2 -0
- package/esm/object/object_plus.js.map +1 -0
- package/esm/object/omit.d.ts +2 -2
- package/esm/object/omit.d.ts.map +1 -1
- package/esm/object/omit.js.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/pick.d.ts +1 -1
- package/esm/object/pick.d.ts.map +1 -1
- package/esm/object/recursive_partial.d.ts +1 -1
- package/esm/object/recursive_partial.d.ts.map +1 -1
- package/esm/object/replaceProperty.d.ts +1 -1
- package/esm/object/replaceProperty.d.ts.map +1 -1
- package/esm/object/split.d.ts +1 -1
- package/esm/object/split.d.ts.map +1 -1
- package/esm/tuple/common_prop_keys.d.ts +1 -1
- package/esm/tuple/drop.d.ts +8 -8
- package/esm/tuple/drop.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 +2 -2
- package/esm/tuple/tuple_plus.common_prop_keys.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 +14 -14
- package/esm/tuple/tuple_plus.find.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.pad_start.d.ts +3 -3
- package/esm/tuple/tuple_plus.pad_start.d.ts.map +1 -1
- package/esm/tuple/tuple_type.d.ts +4 -4
- package/esm/tuple/tuple_type.d.ts.map +1 -1
- package/esm/type_plus/cases.d.ts +13 -0
- package/esm/type_plus/cases.d.ts.map +1 -0
- package/esm/type_plus/cases.js +6 -0
- package/esm/type_plus/cases.js.map +1 -0
- package/esm/utils/options.d.ts +27 -9
- package/esm/utils/options.d.ts.map +1 -1
- package/package.json +16 -15
- package/{README.md → readme.md} +36 -17
- package/ts/array/array.at.ts +2 -2
- package/ts/array/array.entries.ts +6 -6
- package/ts/array/array.find_last.ts +7 -7
- package/ts/array/array.reverse.ts +12 -3
- package/ts/array/array.some.ts +13 -13
- package/ts/array/array_plus.common_prop_keys.ts +4 -4
- package/ts/array/array_plus.concat.ts +1 -1
- package/ts/array/array_plus.drop_match.ts +3 -0
- package/ts/array/array_plus.element_match.ts +16 -16
- package/ts/array/array_plus.filter.ts +49 -5
- package/ts/array/array_plus.find.ts +13 -13
- package/ts/array/{array_index.ts → array_plus.index_at.ts} +37 -41
- package/ts/array/array_plus.is_index_out_of_bound.ts +22 -0
- package/ts/array/array_plus.is_readonly.ts +46 -0
- package/ts/array/array_plus.pad_start.ts +1 -1
- package/ts/array/array_plus.split_at.ts +53 -24
- package/ts/array/array_plus.ts +3 -1
- package/ts/array/array_type.ts +5 -1
- package/ts/array/filter.ts +2 -2
- package/ts/array/find_first.ts +6 -6
- package/ts/array/head.ts +3 -3
- package/ts/array/intersect_of_props.ts +1 -1
- package/ts/array/last.ts +6 -4
- package/ts/array/loose_array_type.ts +69 -0
- package/ts/array/pad_start.ts +1 -1
- package/ts/array/readme.md +125 -35
- package/ts/array/strict_array_type.ts +75 -0
- package/ts/array/union_of_props.ts +2 -2
- package/ts/array/union_of_values.ts +2 -2
- package/ts/equal/equal.ts +23 -30
- package/ts/equal/identity_equal.ts +9 -0
- package/ts/index.ts +7 -1
- package/ts/math/numeric_struct.ts +109 -109
- package/ts/mix_types/box.ts +62 -0
- package/ts/mix_types/merge.ts +61 -0
- package/ts/mix_types/readme.md +34 -0
- package/ts/never/never_type.ts +2 -2
- package/ts/object/ANotB.ts +1 -1
- package/ts/object/IsDisjoint.ts +1 -1
- package/ts/object/KeysWithDiffType.ts +3 -3
- package/ts/object/KnownKeys.ts +5 -5
- package/ts/object/RecursiveIntersect.ts +7 -7
- package/ts/object/RecursiveRequired.ts +1 -1
- package/ts/object/facade.ts +1 -1
- package/ts/object/hasKey.ts +1 -1
- package/ts/object/index.ts +1 -1
- package/ts/object/is_strict_object.ts +14 -0
- package/ts/object/left_join.ts +1 -1
- package/ts/object/mapProperties.ts +1 -1
- package/ts/object/merge.ts +122 -0
- package/ts/object/object_plus.ts +1 -0
- package/ts/object/omit.ts +4 -5
- package/ts/object/optional_key.ts +1 -1
- package/ts/object/pick.ts +1 -1
- package/ts/object/readme.md +14 -0
- package/ts/object/record.ts +1 -1
- package/ts/object/recursive_partial.ts +1 -1
- package/ts/object/replaceProperty.ts +1 -1
- package/ts/object/split.ts +1 -1
- package/ts/tuple/common_prop_keys.ts +1 -1
- package/ts/tuple/drop.ts +8 -8
- package/ts/tuple/readme.md +17 -17
- package/ts/tuple/tail.ts +4 -6
- package/ts/tuple/tuple_plus.common_prop_keys.ts +2 -2
- package/ts/tuple/tuple_plus.filter.ts +2 -2
- package/ts/tuple/tuple_plus.find.ts +19 -19
- package/ts/tuple/tuple_plus.pad_start.ts +12 -9
- package/ts/tuple/tuple_type.ts +4 -4
- package/ts/type_plus/cases.ts +14 -0
- package/ts/utils/options.ts +27 -8
- package/cjs/any/any_type.d.ts +0 -63
- package/cjs/any/any_type.d.ts.map +0 -1
- package/cjs/any/any_type.js +0 -3
- package/cjs/any/any_type.js.map +0 -1
- package/cjs/array/array.at.d.ts +0 -20
- package/cjs/array/array.at.d.ts.map +0 -1
- package/cjs/array/array.at.js +0 -3
- package/cjs/array/array.at.js.map +0 -1
- package/cjs/array/array.entries.d.ts +0 -18
- package/cjs/array/array.entries.d.ts.map +0 -1
- package/cjs/array/array.entries.js +0 -3
- package/cjs/array/array.entries.js.map +0 -1
- package/cjs/array/array.find_last.d.ts +0 -19
- package/cjs/array/array.find_last.d.ts.map +0 -1
- package/cjs/array/array.find_last.js +0 -3
- package/cjs/array/array.find_last.js.map +0 -1
- package/cjs/array/array.reverse.d.ts +0 -2
- package/cjs/array/array.reverse.d.ts.map +0 -1
- package/cjs/array/array.reverse.js +0 -3
- package/cjs/array/array.reverse.js.map +0 -1
- package/cjs/array/array.some.d.ts +0 -33
- package/cjs/array/array.some.d.ts.map +0 -1
- package/cjs/array/array.some.js +0 -3
- package/cjs/array/array.some.js.map +0 -1
- package/cjs/array/array_index.d.ts +0 -34
- package/cjs/array/array_index.d.ts.map +0 -1
- package/cjs/array/array_index.js +0 -3
- package/cjs/array/array_index.js.map +0 -1
- package/cjs/array/array_plus.common_prop_keys.d.ts +0 -27
- package/cjs/array/array_plus.common_prop_keys.d.ts.map +0 -1
- package/cjs/array/array_plus.common_prop_keys.js +0 -3
- package/cjs/array/array_plus.common_prop_keys.js.map +0 -1
- package/cjs/array/array_plus.concat.d.ts +0 -16
- package/cjs/array/array_plus.concat.d.ts.map +0 -1
- package/cjs/array/array_plus.concat.js +0 -3
- package/cjs/array/array_plus.concat.js.map +0 -1
- package/cjs/array/array_plus.d.ts +0 -15
- package/cjs/array/array_plus.d.ts.map +0 -1
- package/cjs/array/array_plus.drop_match.d.ts +0 -4
- package/cjs/array/array_plus.drop_match.d.ts.map +0 -1
- package/cjs/array/array_plus.drop_match.js +0 -3
- package/cjs/array/array_plus.drop_match.js.map +0 -1
- package/cjs/array/array_plus.element_match.d.ts +0 -44
- package/cjs/array/array_plus.element_match.d.ts.map +0 -1
- package/cjs/array/array_plus.element_match.js +0 -3
- package/cjs/array/array_plus.element_match.js.map +0 -1
- package/cjs/array/array_plus.filter.d.ts +0 -2
- package/cjs/array/array_plus.filter.d.ts.map +0 -1
- package/cjs/array/array_plus.filter.js +0 -3
- package/cjs/array/array_plus.filter.js.map +0 -1
- package/cjs/array/array_plus.find.d.ts +0 -57
- package/cjs/array/array_plus.find.d.ts.map +0 -1
- package/cjs/array/array_plus.find.js +0 -3
- package/cjs/array/array_plus.find.js.map +0 -1
- package/cjs/array/array_plus.js +0 -3
- package/cjs/array/array_plus.js.map +0 -1
- package/cjs/array/array_plus.pad_start.d.ts +0 -5
- package/cjs/array/array_plus.pad_start.d.ts.map +0 -1
- package/cjs/array/array_plus.pad_start.js +0 -3
- package/cjs/array/array_plus.pad_start.js.map +0 -1
- package/cjs/array/array_plus.split_at.d.ts +0 -35
- package/cjs/array/array_plus.split_at.d.ts.map +0 -1
- package/cjs/array/array_plus.split_at.js +0 -3
- package/cjs/array/array_plus.split_at.js.map +0 -1
- package/cjs/array/array_type.d.ts +0 -66
- package/cjs/array/array_type.d.ts.map +0 -1
- package/cjs/array/array_type.js +0 -3
- package/cjs/array/array_type.js.map +0 -1
- package/cjs/array/filter.d.ts +0 -29
- package/cjs/array/filter.d.ts.map +0 -1
- package/cjs/array/filter.js +0 -3
- package/cjs/array/filter.js.map +0 -1
- package/cjs/array/find_first.d.ts +0 -62
- package/cjs/array/find_first.d.ts.map +0 -1
- package/cjs/array/find_first.js +0 -3
- package/cjs/array/find_first.js.map +0 -1
- package/cjs/array/head.d.ts +0 -31
- package/cjs/array/head.d.ts.map +0 -1
- package/cjs/array/head.js +0 -3
- package/cjs/array/head.js.map +0 -1
- package/cjs/array/intersect_of_props.d.ts +0 -14
- package/cjs/array/intersect_of_props.d.ts.map +0 -1
- package/cjs/array/intersect_of_props.js +0 -3
- package/cjs/array/intersect_of_props.js.map +0 -1
- package/cjs/array/last.d.ts +0 -30
- package/cjs/array/last.d.ts.map +0 -1
- package/cjs/array/last.js +0 -3
- package/cjs/array/last.js.map +0 -1
- package/cjs/array/literal_array.d.ts +0 -8
- package/cjs/array/literal_array.d.ts.map +0 -1
- package/cjs/array/literal_array.js +0 -13
- package/cjs/array/literal_array.js.map +0 -1
- package/cjs/array/pad_start.d.ts +0 -32
- package/cjs/array/pad_start.d.ts.map +0 -1
- package/cjs/array/pad_start.js +0 -3
- package/cjs/array/pad_start.js.map +0 -1
- package/cjs/array/reduce_while.d.ts +0 -8
- package/cjs/array/reduce_while.d.ts.map +0 -1
- package/cjs/array/reduce_while.js +0 -21
- package/cjs/array/reduce_while.js.map +0 -1
- package/cjs/array/reverse.d.ts +0 -7
- package/cjs/array/reverse.d.ts.map +0 -1
- package/cjs/array/reverse.js +0 -3
- package/cjs/array/reverse.js.map +0 -1
- package/cjs/array/union_of_props.d.ts +0 -12
- package/cjs/array/union_of_props.d.ts.map +0 -1
- package/cjs/array/union_of_props.js +0 -3
- package/cjs/array/union_of_props.js.map +0 -1
- package/cjs/array/union_of_values.d.ts +0 -10
- package/cjs/array/union_of_values.d.ts.map +0 -1
- package/cjs/array/union_of_values.js +0 -3
- package/cjs/array/union_of_values.js.map +0 -1
- package/cjs/assertion/assert_type.d.ts +0 -40
- package/cjs/assertion/assert_type.d.ts.map +0 -1
- package/cjs/assertion/assert_type.js +0 -113
- package/cjs/assertion/assert_type.js.map +0 -1
- package/cjs/bigint/bigint_type.d.ts +0 -54
- package/cjs/bigint/bigint_type.d.ts.map +0 -1
- package/cjs/bigint/bigint_type.js +0 -3
- package/cjs/bigint/bigint_type.js.map +0 -1
- package/cjs/bigint/cast.d.ts +0 -10
- package/cjs/bigint/cast.d.ts.map +0 -1
- package/cjs/bigint/cast.js +0 -3
- package/cjs/bigint/cast.js.map +0 -1
- package/cjs/bigint/strict_bigint_type.d.ts +0 -56
- package/cjs/bigint/strict_bigint_type.d.ts.map +0 -1
- package/cjs/bigint/strict_bigint_type.js +0 -3
- package/cjs/bigint/strict_bigint_type.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 +0 -3
- package/cjs/binary/Bit.js.map +0 -1
- package/cjs/binary/_binary.d.ts +0 -2
- package/cjs/binary/_binary.d.ts.map +0 -1
- package/cjs/binary/_binary.js +0 -3
- package/cjs/binary/_binary.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/boolean/boolean_type.d.ts +0 -56
- package/cjs/boolean/boolean_type.d.ts.map +0 -1
- package/cjs/boolean/boolean_type.js +0 -3
- package/cjs/boolean/boolean_type.js.map +0 -1
- package/cjs/boolean/false_type.d.ts +0 -49
- package/cjs/boolean/false_type.d.ts.map +0 -1
- package/cjs/boolean/false_type.js +0 -3
- package/cjs/boolean/false_type.js.map +0 -1
- package/cjs/boolean/strict_boolean_type.d.ts +0 -53
- package/cjs/boolean/strict_boolean_type.d.ts.map +0 -1
- package/cjs/boolean/strict_boolean_type.js +0 -3
- package/cjs/boolean/strict_boolean_type.js.map +0 -1
- package/cjs/boolean/true_type.d.ts +0 -49
- package/cjs/boolean/true_type.d.ts.map +0 -1
- package/cjs/boolean/true_type.js +0 -3
- package/cjs/boolean/true_type.js.map +0 -1
- package/cjs/class/AnyConstructor.d.ts +0 -2
- package/cjs/class/AnyConstructor.d.ts.map +0 -1
- package/cjs/class/AnyConstructor.js +0 -3
- package/cjs/class/AnyConstructor.js.map +0 -1
- package/cjs/class/index.d.ts +0 -3
- package/cjs/class/index.d.ts.map +0 -1
- package/cjs/class/index.js +0 -18
- package/cjs/class/index.js.map +0 -1
- package/cjs/class/isConstructor.d.ts +0 -18
- package/cjs/class/isConstructor.d.ts.map +0 -1
- package/cjs/class/isConstructor.js +0 -35
- package/cjs/class/isConstructor.js.map +0 -1
- package/cjs/composable_types.d.ts +0 -9
- package/cjs/composable_types.d.ts.map +0 -1
- package/cjs/composable_types.js +0 -3
- package/cjs/composable_types.js.map +0 -1
- package/cjs/equal/equal.d.ts +0 -99
- package/cjs/equal/equal.d.ts.map +0 -1
- package/cjs/equal/equal.js +0 -3
- package/cjs/equal/equal.js.map +0 -1
- package/cjs/function/any_function.d.ts +0 -2
- package/cjs/function/any_function.d.ts.map +0 -1
- package/cjs/function/any_function.js +0 -3
- package/cjs/function/any_function.js.map +0 -1
- package/cjs/function/extract_function.d.ts +0 -24
- package/cjs/function/extract_function.d.ts.map +0 -1
- package/cjs/function/extract_function.js +0 -13
- package/cjs/function/extract_function.js.map +0 -1
- package/cjs/function/function_type.d.ts +0 -59
- package/cjs/function/function_type.d.ts.map +0 -1
- package/cjs/function/function_type.js +0 -3
- package/cjs/function/function_type.js.map +0 -1
- package/cjs/function/strict_function_type.d.ts +0 -49
- package/cjs/function/strict_function_type.d.ts.map +0 -1
- package/cjs/function/strict_function_type.js +0 -3
- package/cjs/function/strict_function_type.js.map +0 -1
- package/cjs/functional/ChainFn.d.ts +0 -6
- package/cjs/functional/ChainFn.d.ts.map +0 -1
- package/cjs/functional/ChainFn.js +0 -3
- package/cjs/functional/ChainFn.js.map +0 -1
- package/cjs/functional/Maybe.d.ts +0 -13
- package/cjs/functional/Maybe.d.ts.map +0 -1
- package/cjs/functional/Maybe.js +0 -17
- package/cjs/functional/Maybe.js.map +0 -1
- package/cjs/functional/compose.d.ts +0 -12
- package/cjs/functional/compose.d.ts.map +0 -1
- package/cjs/functional/compose.js +0 -16
- package/cjs/functional/compose.js.map +0 -1
- package/cjs/functional/context.d.ts +0 -40
- package/cjs/functional/context.d.ts.map +0 -1
- package/cjs/functional/context.js +0 -32
- package/cjs/functional/context.js.map +0 -1
- package/cjs/functional/index.d.ts +0 -4
- package/cjs/functional/index.d.ts.map +0 -1
- package/cjs/functional/index.js +0 -19
- package/cjs/functional/index.js.map +0 -1
- package/cjs/index.d.ts +0 -84
- package/cjs/index.d.ts.map +0 -1
- package/cjs/index.js +0 -45
- package/cjs/index.js.map +0 -1
- package/cjs/json.d.ts +0 -12
- package/cjs/json.d.ts.map +0 -1
- package/cjs/json.js +0 -14
- package/cjs/json.js.map +0 -1
- package/cjs/math/abs.d.ts +0 -6
- package/cjs/math/abs.d.ts.map +0 -1
- package/cjs/math/abs.js +0 -3
- package/cjs/math/abs.js.map +0 -1
- package/cjs/math/add.d.ts +0 -7
- package/cjs/math/add.d.ts.map +0 -1
- package/cjs/math/add.js +0 -3
- package/cjs/math/add.js.map +0 -1
- package/cjs/math/greater_than.d.ts +0 -4
- package/cjs/math/greater_than.d.ts.map +0 -1
- package/cjs/math/greater_than.js +0 -3
- package/cjs/math/greater_than.js.map +0 -1
- package/cjs/math/index.d.ts +0 -7
- package/cjs/math/index.d.ts.map +0 -1
- package/cjs/math/index.js +0 -3
- package/cjs/math/index.js.map +0 -1
- package/cjs/math/math_plus.d.ts +0 -5
- package/cjs/math/math_plus.d.ts.map +0 -1
- package/cjs/math/math_plus.js +0 -3
- package/cjs/math/math_plus.js.map +0 -1
- package/cjs/math/math_plus.to_negative.d.ts +0 -13
- package/cjs/math/math_plus.to_negative.d.ts.map +0 -1
- package/cjs/math/math_plus.to_negative.js +0 -3
- package/cjs/math/math_plus.to_negative.js.map +0 -1
- package/cjs/math/max.d.ts +0 -4
- package/cjs/math/max.d.ts.map +0 -1
- package/cjs/math/max.js +0 -3
- package/cjs/math/max.js.map +0 -1
- package/cjs/math/multiply.d.ts +0 -6
- package/cjs/math/multiply.d.ts.map +0 -1
- package/cjs/math/multiply.js +0 -3
- package/cjs/math/multiply.js.map +0 -1
- package/cjs/math/numeric_struct.d.ts +0 -1480
- package/cjs/math/numeric_struct.d.ts.map +0 -1
- package/cjs/math/numeric_struct.js +0 -3
- package/cjs/math/numeric_struct.js.map +0 -1
- package/cjs/math/subtract.d.ts +0 -7
- package/cjs/math/subtract.d.ts.map +0 -1
- package/cjs/math/subtract.js +0 -3
- package/cjs/math/subtract.js.map +0 -1
- package/cjs/merge.d.ts +0 -55
- package/cjs/merge.d.ts.map +0 -1
- package/cjs/merge.js +0 -18
- package/cjs/merge.js.map +0 -1
- package/cjs/mix_types/any_or_never_type.d.ts +0 -37
- package/cjs/mix_types/any_or_never_type.d.ts.map +0 -1
- package/cjs/mix_types/any_or_never_type.js +0 -3
- package/cjs/mix_types/any_or_never_type.js.map +0 -1
- package/cjs/never/never_type.d.ts +0 -62
- package/cjs/never/never_type.d.ts.map +0 -1
- package/cjs/never/never_type.js +0 -3
- package/cjs/never/never_type.js.map +0 -1
- package/cjs/nodejs/index.d.ts +0 -2
- package/cjs/nodejs/index.d.ts.map +0 -1
- package/cjs/nodejs/index.js +0 -18
- package/cjs/nodejs/index.js.map +0 -1
- package/cjs/nodejs/isNodeError.d.ts +0 -31
- package/cjs/nodejs/isNodeError.d.ts.map +0 -1
- package/cjs/nodejs/isNodeError.js +0 -13
- package/cjs/nodejs/isNodeError.js.map +0 -1
- package/cjs/nominal/brand.d.ts +0 -23
- package/cjs/nominal/brand.d.ts.map +0 -1
- package/cjs/nominal/brand.js +0 -20
- package/cjs/nominal/brand.js.map +0 -1
- package/cjs/nominal/constants.d.ts +0 -3
- package/cjs/nominal/constants.d.ts.map +0 -1
- package/cjs/nominal/constants.js +0 -6
- package/cjs/nominal/constants.js.map +0 -1
- package/cjs/nominal/flavor.d.ts +0 -31
- package/cjs/nominal/flavor.d.ts.map +0 -1
- package/cjs/nominal/flavor.js +0 -20
- package/cjs/nominal/flavor.js.map +0 -1
- package/cjs/nominal/index.d.ts +0 -4
- package/cjs/nominal/index.d.ts.map +0 -1
- package/cjs/nominal/index.js +0 -20
- package/cjs/nominal/index.js.map +0 -1
- package/cjs/nominal/nominal_match.d.ts +0 -5
- package/cjs/nominal/nominal_match.d.ts.map +0 -1
- package/cjs/nominal/nominal_match.js +0 -13
- package/cjs/nominal/nominal_match.js.map +0 -1
- package/cjs/null/null_type.d.ts +0 -50
- package/cjs/null/null_type.d.ts.map +0 -1
- package/cjs/null/null_type.js +0 -3
- package/cjs/null/null_type.js.map +0 -1
- package/cjs/number/cast.d.ts +0 -10
- package/cjs/number/cast.d.ts.map +0 -1
- package/cjs/number/cast.js +0 -3
- package/cjs/number/cast.js.map +0 -1
- package/cjs/number/number_array.d.ts +0 -1
- package/cjs/number/number_array.d.ts.map +0 -1
- package/cjs/number/number_array.js +0 -16
- package/cjs/number/number_array.js.map +0 -1
- package/cjs/number/number_plus.d.ts +0 -7
- package/cjs/number/number_plus.d.ts.map +0 -1
- package/cjs/number/number_plus.js +0 -3
- package/cjs/number/number_plus.js.map +0 -1
- package/cjs/number/number_type.d.ts +0 -50
- package/cjs/number/number_type.d.ts.map +0 -1
- package/cjs/number/number_type.js +0 -3
- package/cjs/number/number_type.js.map +0 -1
- package/cjs/number/strict_number_type.d.ts +0 -65
- package/cjs/number/strict_number_type.d.ts.map +0 -1
- package/cjs/number/strict_number_type.js +0 -3
- package/cjs/number/strict_number_type.js.map +0 -1
- package/cjs/numeric/cast.d.ts +0 -27
- package/cjs/numeric/cast.d.ts.map +0 -1
- package/cjs/numeric/cast.js +0 -3
- package/cjs/numeric/cast.js.map +0 -1
- package/cjs/numeric/integer.d.ts +0 -69
- package/cjs/numeric/integer.d.ts.map +0 -1
- package/cjs/numeric/integer.js +0 -3
- package/cjs/numeric/integer.js.map +0 -1
- package/cjs/numeric/negative.d.ts +0 -70
- package/cjs/numeric/negative.d.ts.map +0 -1
- package/cjs/numeric/negative.js +0 -3
- package/cjs/numeric/negative.js.map +0 -1
- package/cjs/numeric/numeric_plus.d.ts +0 -5
- package/cjs/numeric/numeric_plus.d.ts.map +0 -1
- package/cjs/numeric/numeric_plus.js +0 -3
- package/cjs/numeric/numeric_plus.js.map +0 -1
- package/cjs/numeric/numeric_type.d.ts +0 -59
- package/cjs/numeric/numeric_type.d.ts.map +0 -1
- package/cjs/numeric/numeric_type.js +0 -3
- package/cjs/numeric/numeric_type.js.map +0 -1
- package/cjs/numeric/positive.d.ts +0 -53
- package/cjs/numeric/positive.d.ts.map +0 -1
- package/cjs/numeric/positive.js +0 -3
- package/cjs/numeric/positive.js.map +0 -1
- package/cjs/object/ANotB.d.ts +0 -9
- package/cjs/object/ANotB.d.ts.map +0 -1
- package/cjs/object/ANotB.js +0 -3
- package/cjs/object/ANotB.js.map +0 -1
- package/cjs/object/AnyRecord.d.ts.map +0 -1
- package/cjs/object/AnyRecord.js +0 -3
- package/cjs/object/AnyRecord.js.map +0 -1
- package/cjs/object/ExcludePropType.d.ts +0 -7
- package/cjs/object/ExcludePropType.d.ts.map +0 -1
- package/cjs/object/ExcludePropType.js +0 -3
- package/cjs/object/ExcludePropType.js.map +0 -1
- package/cjs/object/IsDisjoint.d.ts +0 -9
- package/cjs/object/IsDisjoint.d.ts.map +0 -1
- package/cjs/object/IsDisjoint.js +0 -3
- package/cjs/object/IsDisjoint.js.map +0 -1
- package/cjs/object/IsRecord.d.ts +0 -2
- package/cjs/object/IsRecord.d.ts.map +0 -1
- package/cjs/object/IsRecord.js +0 -3
- package/cjs/object/IsRecord.js.map +0 -1
- package/cjs/object/KeyTypes.d.ts +0 -7
- package/cjs/object/KeyTypes.d.ts.map +0 -1
- package/cjs/object/KeyTypes.js +0 -3
- package/cjs/object/KeyTypes.js.map +0 -1
- package/cjs/object/KeyofOptional.d.ts +0 -6
- package/cjs/object/KeyofOptional.d.ts.map +0 -1
- package/cjs/object/KeyofOptional.js +0 -3
- package/cjs/object/KeyofOptional.js.map +0 -1
- package/cjs/object/KeysWithDiffType.d.ts +0 -7
- package/cjs/object/KeysWithDiffType.d.ts.map +0 -1
- package/cjs/object/KeysWithDiffType.js +0 -3
- package/cjs/object/KeysWithDiffType.js.map +0 -1
- package/cjs/object/KnownKeys.d.ts +0 -7
- package/cjs/object/KnownKeys.d.ts.map +0 -1
- package/cjs/object/KnownKeys.js +0 -6
- package/cjs/object/KnownKeys.js.map +0 -1
- package/cjs/object/OptionalKeys.d.ts +0 -8
- package/cjs/object/OptionalKeys.d.ts.map +0 -1
- package/cjs/object/OptionalKeys.js +0 -3
- package/cjs/object/OptionalKeys.js.map +0 -1
- package/cjs/object/Partial.d.ts +0 -22
- package/cjs/object/Partial.d.ts.map +0 -1
- package/cjs/object/Partial.js +0 -3
- package/cjs/object/Partial.js.map +0 -1
- package/cjs/object/RecursiveIntersect.d.ts +0 -16
- package/cjs/object/RecursiveIntersect.d.ts.map +0 -1
- package/cjs/object/RecursiveIntersect.js +0 -3
- package/cjs/object/RecursiveIntersect.js.map +0 -1
- package/cjs/object/RecursiveRequired.d.ts +0 -5
- package/cjs/object/RecursiveRequired.d.ts.map +0 -1
- package/cjs/object/RecursiveRequired.js +0 -3
- package/cjs/object/RecursiveRequired.js.map +0 -1
- package/cjs/object/Required.d.ts +0 -7
- package/cjs/object/Required.d.ts.map +0 -1
- package/cjs/object/Required.js +0 -4
- package/cjs/object/Required.js.map +0 -1
- package/cjs/object/RequiredKeys.d.ts +0 -7
- package/cjs/object/RequiredKeys.d.ts.map +0 -1
- package/cjs/object/RequiredKeys.js +0 -3
- package/cjs/object/RequiredKeys.js.map +0 -1
- package/cjs/object/SpreadRecord.d.ts +0 -3
- package/cjs/object/SpreadRecord.d.ts.map +0 -1
- package/cjs/object/SpreadRecord.js +0 -3
- package/cjs/object/SpreadRecord.js.map +0 -1
- package/cjs/object/ValueOf.d.ts +0 -2
- package/cjs/object/ValueOf.d.ts.map +0 -1
- package/cjs/object/ValueOf.js +0 -3
- package/cjs/object/ValueOf.js.map +0 -1
- package/cjs/object/everyKey.d.ts +0 -3
- package/cjs/object/everyKey.d.ts.map +0 -1
- package/cjs/object/everyKey.js +0 -8
- package/cjs/object/everyKey.js.map +0 -1
- package/cjs/object/facade.d.ts +0 -17
- package/cjs/object/facade.d.ts.map +0 -1
- package/cjs/object/facade.js +0 -27
- package/cjs/object/facade.js.map +0 -1
- package/cjs/object/filterKey.d.ts +0 -3
- package/cjs/object/filterKey.d.ts.map +0 -1
- package/cjs/object/filterKey.js +0 -10
- package/cjs/object/filterKey.js.map +0 -1
- package/cjs/object/findKey.d.ts +0 -3
- package/cjs/object/findKey.d.ts.map +0 -1
- package/cjs/object/findKey.js +0 -10
- package/cjs/object/findKey.js.map +0 -1
- package/cjs/object/forEachKey.d.ts +0 -3
- package/cjs/object/forEachKey.d.ts.map +0 -1
- package/cjs/object/forEachKey.js +0 -8
- package/cjs/object/forEachKey.js.map +0 -1
- package/cjs/object/getField.d.ts +0 -4
- package/cjs/object/getField.d.ts.map +0 -1
- package/cjs/object/getField.js +0 -8
- package/cjs/object/getField.js.map +0 -1
- package/cjs/object/hasKey.d.ts +0 -4
- package/cjs/object/hasKey.d.ts.map +0 -1
- package/cjs/object/hasKey.js +0 -8
- package/cjs/object/hasKey.js.map +0 -1
- package/cjs/object/hasProperty.d.ts +0 -3
- package/cjs/object/hasProperty.d.ts.map +0 -1
- package/cjs/object/hasProperty.js +0 -8
- package/cjs/object/hasProperty.js.map +0 -1
- package/cjs/object/index.d.ts +0 -39
- package/cjs/object/index.d.ts.map +0 -1
- package/cjs/object/index.js +0 -36
- package/cjs/object/index.js.map +0 -1
- package/cjs/object/left_join.d.ts +0 -15
- package/cjs/object/left_join.d.ts.map +0 -1
- package/cjs/object/left_join.js +0 -3
- package/cjs/object/left_join.js.map +0 -1
- package/cjs/object/mapKey.d.ts +0 -3
- package/cjs/object/mapKey.d.ts.map +0 -1
- package/cjs/object/mapKey.js +0 -10
- package/cjs/object/mapKey.js.map +0 -1
- package/cjs/object/mapProperties.d.ts +0 -14
- package/cjs/object/mapProperties.d.ts.map +0 -1
- package/cjs/object/mapProperties.js +0 -17
- package/cjs/object/mapProperties.js.map +0 -1
- package/cjs/object/object_type.d.ts +0 -54
- package/cjs/object/object_type.d.ts.map +0 -1
- package/cjs/object/object_type.js +0 -3
- package/cjs/object/object_type.js.map +0 -1
- package/cjs/object/omit.d.ts +0 -22
- package/cjs/object/omit.d.ts.map +0 -1
- package/cjs/object/omit.js +0 -14
- package/cjs/object/omit.js.map +0 -1
- package/cjs/object/optional_key.d.ts +0 -35
- package/cjs/object/optional_key.d.ts.map +0 -1
- package/cjs/object/optional_key.js +0 -3
- package/cjs/object/optional_key.js.map +0 -1
- package/cjs/object/pick.d.ts +0 -29
- package/cjs/object/pick.d.ts.map +0 -1
- package/cjs/object/pick.js +0 -14
- package/cjs/object/pick.js.map +0 -1
- package/cjs/object/properties.d.ts +0 -7
- package/cjs/object/properties.d.ts.map +0 -1
- package/cjs/object/properties.js +0 -3
- package/cjs/object/properties.js.map +0 -1
- package/cjs/object/record.d.ts +0 -17
- package/cjs/object/record.d.ts.map +0 -1
- package/cjs/object/record.js +0 -9
- package/cjs/object/record.js.map +0 -1
- package/cjs/object/recursive_partial.d.ts +0 -29
- package/cjs/object/recursive_partial.d.ts.map +0 -1
- package/cjs/object/recursive_partial.js +0 -4
- package/cjs/object/recursive_partial.js.map +0 -1
- package/cjs/object/reduceKey.d.ts +0 -7
- package/cjs/object/reduceKey.d.ts.map +0 -1
- package/cjs/object/reduceKey.js +0 -12
- package/cjs/object/reduceKey.js.map +0 -1
- package/cjs/object/replaceProperty.d.ts +0 -6
- package/cjs/object/replaceProperty.d.ts.map +0 -1
- package/cjs/object/replaceProperty.js +0 -8
- package/cjs/object/replaceProperty.js.map +0 -1
- package/cjs/object/someKey.d.ts +0 -3
- package/cjs/object/someKey.d.ts.map +0 -1
- package/cjs/object/someKey.js +0 -10
- package/cjs/object/someKey.js.map +0 -1
- package/cjs/object/split.d.ts +0 -76
- package/cjs/object/split.d.ts.map +0 -1
- package/cjs/object/split.js +0 -12
- package/cjs/object/split.js.map +0 -1
- package/cjs/object/typeOverrideIncompatible.d.ts +0 -3
- package/cjs/object/typeOverrideIncompatible.d.ts.map +0 -1
- package/cjs/object/typeOverrideIncompatible.js +0 -13
- package/cjs/object/typeOverrideIncompatible.js.map +0 -1
- package/cjs/package.json +0 -3
- package/cjs/predicates/CanAssign.d.ts +0 -45
- package/cjs/predicates/CanAssign.d.ts.map +0 -1
- package/cjs/predicates/CanAssign.js +0 -8
- package/cjs/predicates/CanAssign.js.map +0 -1
- package/cjs/predicates/Extends.d.ts +0 -5
- package/cjs/predicates/Extends.d.ts.map +0 -1
- package/cjs/predicates/Extends.js +0 -3
- package/cjs/predicates/Extends.js.map +0 -1
- package/cjs/predicates/If.d.ts +0 -2
- package/cjs/predicates/If.d.ts.map +0 -1
- package/cjs/predicates/If.js +0 -3
- package/cjs/predicates/If.js.map +0 -1
- package/cjs/predicates/IsEmptyObject.d.ts +0 -2
- package/cjs/predicates/IsEmptyObject.d.ts.map +0 -1
- package/cjs/predicates/IsEmptyObject.js +0 -3
- package/cjs/predicates/IsEmptyObject.js.map +0 -1
- package/cjs/predicates/index.d.ts +0 -7
- package/cjs/predicates/index.d.ts.map +0 -1
- package/cjs/predicates/index.js +0 -18
- package/cjs/predicates/index.js.map +0 -1
- package/cjs/predicates/literal.d.ts +0 -22
- package/cjs/predicates/literal.d.ts.map +0 -1
- package/cjs/predicates/literal.js +0 -3
- package/cjs/predicates/literal.js.map +0 -1
- package/cjs/predicates/logical.d.ts +0 -5
- package/cjs/predicates/logical.d.ts.map +0 -1
- package/cjs/predicates/logical.js +0 -3
- package/cjs/predicates/logical.js.map +0 -1
- package/cjs/primitive.d.ts +0 -5
- package/cjs/primitive.d.ts.map +0 -1
- package/cjs/primitive.js +0 -3
- package/cjs/primitive.js.map +0 -1
- package/cjs/promise/MaybePromise.d.ts +0 -22
- package/cjs/promise/MaybePromise.d.ts.map +0 -1
- package/cjs/promise/MaybePromise.js +0 -12
- package/cjs/promise/MaybePromise.js.map +0 -1
- package/cjs/promise/PromiseValue.d.ts +0 -13
- package/cjs/promise/PromiseValue.d.ts.map +0 -1
- package/cjs/promise/PromiseValue.js +0 -3
- package/cjs/promise/PromiseValue.js.map +0 -1
- package/cjs/promise/PromiseValueMerge.d.ts +0 -5
- package/cjs/promise/PromiseValueMerge.d.ts.map +0 -1
- package/cjs/promise/PromiseValueMerge.js +0 -3
- package/cjs/promise/PromiseValueMerge.js.map +0 -1
- package/cjs/promise/index.d.ts +0 -6
- package/cjs/promise/index.d.ts.map +0 -1
- package/cjs/promise/index.js +0 -20
- package/cjs/promise/index.js.map +0 -1
- package/cjs/promise/isPromise.d.ts +0 -2
- package/cjs/promise/isPromise.d.ts.map +0 -1
- package/cjs/promise/isPromise.js +0 -9
- package/cjs/promise/isPromise.js.map +0 -1
- package/cjs/promise/mapSeries.d.ts +0 -2
- package/cjs/promise/mapSeries.d.ts.map +0 -1
- package/cjs/promise/mapSeries.js +0 -8
- package/cjs/promise/mapSeries.js.map +0 -1
- package/cjs/string/strict_string_type.d.ts +0 -61
- package/cjs/string/strict_string_type.d.ts.map +0 -1
- package/cjs/string/strict_string_type.js +0 -3
- package/cjs/string/strict_string_type.js.map +0 -1
- package/cjs/string/string.d.ts +0 -24
- package/cjs/string/string.d.ts.map +0 -1
- package/cjs/string/string.js +0 -3
- package/cjs/string/string.js.map +0 -1
- package/cjs/string/string_plus.d.ts +0 -27
- package/cjs/string/string_plus.d.ts.map +0 -1
- package/cjs/string/string_plus.js +0 -3
- package/cjs/string/string_plus.js.map +0 -1
- package/cjs/string/string_type.d.ts +0 -58
- package/cjs/string/string_type.d.ts.map +0 -1
- package/cjs/string/string_type.js +0 -3
- package/cjs/string/string_type.js.map +0 -1
- package/cjs/symbol/symbol_type.d.ts +0 -50
- package/cjs/symbol/symbol_type.d.ts.map +0 -1
- package/cjs/symbol/symbol_type.js +0 -3
- package/cjs/symbol/symbol_type.js.map +0 -1
- package/cjs/testing/stub.d.ts +0 -31
- package/cjs/testing/stub.d.ts.map +0 -1
- package/cjs/testing/stub.js +0 -60
- package/cjs/testing/stub.js.map +0 -1
- package/cjs/testing/test_type.d.ts +0 -310
- package/cjs/testing/test_type.d.ts.map +0 -1
- package/cjs/testing/test_type.js +0 -16
- package/cjs/testing/test_type.js.map +0 -1
- package/cjs/tuple/common_prop_keys.d.ts +0 -34
- package/cjs/tuple/common_prop_keys.d.ts.map +0 -1
- package/cjs/tuple/common_prop_keys.js +0 -3
- package/cjs/tuple/common_prop_keys.js.map +0 -1
- package/cjs/tuple/create_tuple.d.ts +0 -28
- package/cjs/tuple/create_tuple.d.ts.map +0 -1
- package/cjs/tuple/create_tuple.js +0 -3
- package/cjs/tuple/create_tuple.js.map +0 -1
- package/cjs/tuple/drop.d.ts +0 -91
- package/cjs/tuple/drop.d.ts.map +0 -1
- package/cjs/tuple/drop.js +0 -13
- package/cjs/tuple/drop.js.map +0 -1
- package/cjs/tuple/tail.d.ts +0 -6
- package/cjs/tuple/tail.d.ts.map +0 -1
- package/cjs/tuple/tail.js +0 -3
- package/cjs/tuple/tail.js.map +0 -1
- package/cjs/tuple/tuple_plus.common_prop_keys.d.ts +0 -28
- package/cjs/tuple/tuple_plus.common_prop_keys.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.common_prop_keys.js +0 -3
- package/cjs/tuple/tuple_plus.common_prop_keys.js.map +0 -1
- package/cjs/tuple/tuple_plus.d.ts +0 -6
- package/cjs/tuple/tuple_plus.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.drop_match.d.ts +0 -6
- package/cjs/tuple/tuple_plus.drop_match.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.drop_match.js +0 -3
- package/cjs/tuple/tuple_plus.drop_match.js.map +0 -1
- package/cjs/tuple/tuple_plus.filter.d.ts +0 -13
- package/cjs/tuple/tuple_plus.filter.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.filter.js +0 -3
- package/cjs/tuple/tuple_plus.filter.js.map +0 -1
- package/cjs/tuple/tuple_plus.find.d.ts +0 -64
- package/cjs/tuple/tuple_plus.find.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.find.js +0 -3
- package/cjs/tuple/tuple_plus.find.js.map +0 -1
- package/cjs/tuple/tuple_plus.js +0 -3
- package/cjs/tuple/tuple_plus.js.map +0 -1
- package/cjs/tuple/tuple_plus.pad_start.d.ts +0 -28
- package/cjs/tuple/tuple_plus.pad_start.d.ts.map +0 -1
- package/cjs/tuple/tuple_plus.pad_start.js +0 -3
- package/cjs/tuple/tuple_plus.pad_start.js.map +0 -1
- package/cjs/tuple/tuple_type.d.ts +0 -77
- package/cjs/tuple/tuple_type.d.ts.map +0 -1
- package/cjs/tuple/tuple_type.js +0 -3
- package/cjs/tuple/tuple_type.js.map +0 -1
- package/cjs/type/failed.d.ts +0 -32
- package/cjs/type/failed.d.ts.map +0 -1
- package/cjs/type/failed.js +0 -3
- package/cjs/type/failed.js.map +0 -1
- package/cjs/type/no_infer.d.ts +0 -27
- package/cjs/type/no_infer.d.ts.map +0 -1
- package/cjs/type/no_infer.js +0 -3
- package/cjs/type/no_infer.js.map +0 -1
- package/cjs/type-guard/is_type.d.ts +0 -27
- package/cjs/type-guard/is_type.d.ts.map +0 -1
- package/cjs/type-guard/is_type.js +0 -32
- package/cjs/type-guard/is_type.js.map +0 -1
- package/cjs/undefined/undefined_type.d.ts +0 -53
- package/cjs/undefined/undefined_type.d.ts.map +0 -1
- package/cjs/undefined/undefined_type.js +0 -3
- package/cjs/undefined/undefined_type.js.map +0 -1
- package/cjs/union/union.d.ts +0 -33
- package/cjs/union/union.d.ts.map +0 -1
- package/cjs/union/union.js +0 -3
- package/cjs/union/union.js.map +0 -1
- package/cjs/union/union_to_intersection.d.ts +0 -3
- package/cjs/union/union_to_intersection.d.ts.map +0 -1
- package/cjs/union/union_to_intersection.js +0 -8
- package/cjs/union/union_to_intersection.js.map +0 -1
- package/cjs/union_keys.d.ts +0 -6
- package/cjs/union_keys.d.ts.map +0 -1
- package/cjs/union_keys.js +0 -3
- package/cjs/union_keys.js.map +0 -1
- package/cjs/unknown/unknown_type.d.ts +0 -63
- package/cjs/unknown/unknown_type.d.ts.map +0 -1
- package/cjs/unknown/unknown_type.js +0 -3
- package/cjs/unknown/unknown_type.js.map +0 -1
- package/cjs/unpartial.d.ts +0 -2
- package/cjs/unpartial.d.ts.map +0 -1
- package/cjs/unpartial.js +0 -8
- package/cjs/unpartial.js.map +0 -1
- package/cjs/utils/NonNull.d.ts +0 -2
- package/cjs/utils/NonNull.d.ts.map +0 -1
- package/cjs/utils/NonNull.js +0 -3
- package/cjs/utils/NonNull.js.map +0 -1
- package/cjs/utils/NonUndefined.d.ts +0 -2
- package/cjs/utils/NonUndefined.d.ts.map +0 -1
- package/cjs/utils/NonUndefined.js +0 -3
- package/cjs/utils/NonUndefined.js.map +0 -1
- package/cjs/utils/Widen.d.ts +0 -6
- package/cjs/utils/Widen.d.ts.map +0 -1
- package/cjs/utils/Widen.js +0 -3
- package/cjs/utils/Widen.js.map +0 -1
- package/cjs/utils/as.d.ts +0 -10
- package/cjs/utils/as.d.ts.map +0 -1
- package/cjs/utils/as.js +0 -26
- package/cjs/utils/as.js.map +0 -1
- package/cjs/utils/index.d.ts +0 -43
- package/cjs/utils/index.d.ts.map +0 -1
- package/cjs/utils/index.js +0 -19
- package/cjs/utils/index.js.map +0 -1
- package/cjs/utils/inspect.d.ts +0 -5
- package/cjs/utils/inspect.d.ts.map +0 -1
- package/cjs/utils/inspect.js +0 -13
- package/cjs/utils/inspect.js.map +0 -1
- package/cjs/utils/options.d.ts +0 -10
- package/cjs/utils/options.d.ts.map +0 -1
- package/cjs/utils/options.js +0 -3
- package/cjs/utils/options.js.map +0 -1
- package/cjs/void/void_type.d.ts +0 -43
- package/cjs/void/void_type.d.ts.map +0 -1
- package/cjs/void/void_type.js +0 -3
- package/cjs/void/void_type.js.map +0 -1
- package/esm/array/array_index.d.ts +0 -34
- package/esm/array/array_index.d.ts.map +0 -1
- package/esm/array/array_index.js +0 -2
- package/esm/array/array_index.js.map +0 -1
- package/esm/merge.d.ts +0 -55
- package/esm/merge.d.ts.map +0 -1
- package/esm/merge.js.map +0 -1
- package/esm/object/AnyRecord.d.ts +0 -3
- package/esm/object/AnyRecord.d.ts.map +0 -1
- package/esm/object/AnyRecord.js +0 -2
- package/esm/object/AnyRecord.js.map +0 -1
- package/ts/merge.ts +0 -72
- /package/ts/object/{AnyRecord.ts → any_record.ts} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { IsNever } from '../never/never_type.js'
|
|
2
|
+
import type { StrictNumberType } from '../number/strict_number_type.js'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 🌪️ *filter*
|
|
6
|
+
*
|
|
7
|
+
* Filter `T` to ensure it is an array, excluding tuple.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* type R = StrictArrayType<number[]> // number[]
|
|
12
|
+
*
|
|
13
|
+
* type R = StrictArrayType<[1]> // never
|
|
14
|
+
* type R = StrictArrayType<number[] | 1> // never
|
|
15
|
+
* type R = StrictArrayType<number[] & { a: 1 }> // never
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export type StrictArrayType<T, Then = T, Else = never> = IsNever<
|
|
19
|
+
T,
|
|
20
|
+
Else,
|
|
21
|
+
[any[]] extends [T]
|
|
22
|
+
? ([T] extends [readonly any[]]
|
|
23
|
+
? StrictNumberType<T['length'], Then, Else>
|
|
24
|
+
: Else)
|
|
25
|
+
: Else
|
|
26
|
+
>
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 🎭 *validate*
|
|
30
|
+
*
|
|
31
|
+
* Validate that `T` is an array, excluding tuple.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* type R = IsStrictArray<number[]> // true
|
|
36
|
+
*
|
|
37
|
+
* type R = IsStrictArray<number> // false
|
|
38
|
+
* type R = IsStrictArray<[1]> // false
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export type IsStrictArray<T, Then = true, Else = false> = StrictArrayType<T, Then, Else>
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 🌪️ *filter*
|
|
45
|
+
*
|
|
46
|
+
* Filter `T` to ensure it is not an array, excluding tuple.
|
|
47
|
+
*
|
|
48
|
+
* i.e. *tuple* will pass through this filter.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* type R = NotStrictArrayType<number[]> // never
|
|
53
|
+
*
|
|
54
|
+
* type R = NotStrictArrayType<number> // number
|
|
55
|
+
* type R = NotStrictArrayType<[1]> // [1]
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export type NotStrictArrayType<T, Then = T, Else = never> = StrictArrayType<T, Else, Then>
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 🎭 *validate*
|
|
62
|
+
*
|
|
63
|
+
* Validate that `T` is not an array, excluding tuple.
|
|
64
|
+
*
|
|
65
|
+
* i.e. *tuple* will pass through this filter.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* type R = IsNotStrictArray<number[]> // false
|
|
70
|
+
*
|
|
71
|
+
* type R = IsNotStrictArray<number> // true
|
|
72
|
+
* type R = IsNotStrictArray<[1]> // true
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export type IsNotStrictArray<T, Then = true, Else = false> = StrictArrayType<T, Else, Then>
|
|
@@ -4,7 +4,7 @@ import type { Tail } from '../tuple/tail.js'
|
|
|
4
4
|
/**
|
|
5
5
|
* Gets the union of properties of the elements in `A`
|
|
6
6
|
*/
|
|
7
|
-
export type UnionOfProps<A extends Record<any, any>[], P extends KeyTypes> = A['length'] extends 0
|
|
7
|
+
export type UnionOfProps<A extends readonly Record<any, any>[], P extends KeyTypes> = A['length'] extends 0
|
|
8
8
|
? never
|
|
9
9
|
: A['length'] extends 1
|
|
10
10
|
? A[0][P]
|
|
@@ -14,4 +14,4 @@ export type UnionOfProps<A extends Record<any, any>[], P extends KeyTypes> = A['
|
|
|
14
14
|
* Gets the union of properties in the element of `A`
|
|
15
15
|
* This will be deprecated in 4.0. Please use UnionOfProps instead.
|
|
16
16
|
*/
|
|
17
|
-
export type PropUnion<A extends Record<any, any>[], P extends KeyTypes> = UnionOfProps<A, P>
|
|
17
|
+
export type PropUnion<A extends readonly Record<any, any>[], P extends KeyTypes> = UnionOfProps<A, P>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Gets the union of value types in `A`
|
|
3
3
|
*/
|
|
4
|
-
export type UnionOfValues<A extends
|
|
4
|
+
export type UnionOfValues<A extends readonly unknown[]> = A extends Readonly<Array<infer E>> ? E : never
|
|
5
5
|
|
|
6
6
|
// alternative implementation
|
|
7
7
|
// export type UnionOfValues<A extends readonly any[]> = (A)[number]
|
|
@@ -11,4 +11,4 @@ export type UnionOfValues<A extends Array<any>> = A extends Array<infer E> ? E :
|
|
|
11
11
|
* Gets the union of value types in `A`
|
|
12
12
|
* @deprecated Please use `UnionOfValues` instead.
|
|
13
13
|
*/
|
|
14
|
-
export type ArrayValue<A extends
|
|
14
|
+
export type ArrayValue<A extends readonly unknown[]> = UnionOfValues<A>
|
package/ts/equal/equal.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { IsObject } from '../object/object_type.js'
|
|
|
4
4
|
import type { Properties } from '../object/properties.js'
|
|
5
5
|
import type { And, Or } from '../predicates/logical.js'
|
|
6
6
|
import type { IsSymbol } from '../symbol/symbol_type.js'
|
|
7
|
+
import type { IdentityEqual } from './identity_equal.js'
|
|
7
8
|
|
|
8
9
|
type BothNever<A, B, Both, One, None> = And<
|
|
9
10
|
IsNever<A>,
|
|
@@ -14,14 +15,6 @@ type BothNever<A, B, Both, One, None> = And<
|
|
|
14
15
|
|
|
15
16
|
type BothAny<A, B, Both, One, None> = And<IsAny<A>, IsAny<B>, Both, Or<IsAny<A>, IsAny<B>, One, None>>
|
|
16
17
|
|
|
17
|
-
type IdentityEqual<A, B, Then, Else> = (<_>() => _ extends (A & _) | _ ? 1 : 2) extends <_>() => _ extends
|
|
18
|
-
| (B & _)
|
|
19
|
-
| _
|
|
20
|
-
? 1
|
|
21
|
-
: 2
|
|
22
|
-
? Then
|
|
23
|
-
: Else
|
|
24
|
-
|
|
25
18
|
/**
|
|
26
19
|
* Checks `A` and `B` are equal.
|
|
27
20
|
*
|
|
@@ -44,37 +37,37 @@ type IdentityEqual<A, B, Then, Else> = (<_>() => _ extends (A & _) | _ ? 1 : 2)
|
|
|
44
37
|
*/
|
|
45
38
|
export type IsEqual<A, B, Then = true, Else = false> = [A, B] extends [B, A]
|
|
46
39
|
? BothNever<
|
|
40
|
+
A,
|
|
41
|
+
B,
|
|
42
|
+
Then,
|
|
43
|
+
Else,
|
|
44
|
+
BothAny<
|
|
47
45
|
A,
|
|
48
46
|
B,
|
|
49
47
|
Then,
|
|
50
48
|
Else,
|
|
51
|
-
|
|
49
|
+
IdentityEqual<
|
|
52
50
|
A,
|
|
53
51
|
B,
|
|
54
52
|
Then,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Else
|
|
70
|
-
>,
|
|
71
|
-
// `A` and `B` are narrowed, need to check again.
|
|
72
|
-
// This is fixed in TS 5.0.2, but keeping it to support older versions.
|
|
73
|
-
[A, B] extends [B, A] ? Then : Else
|
|
74
|
-
>
|
|
53
|
+
And<
|
|
54
|
+
IsObject<A>,
|
|
55
|
+
IsObject<B>,
|
|
56
|
+
IdentityEqual<
|
|
57
|
+
Properties<A>,
|
|
58
|
+
Properties<B>,
|
|
59
|
+
[A, B] extends [(...args: infer P1) => any, (...args: infer P2) => any]
|
|
60
|
+
? IsEqual<P1, P2, Then, Else>
|
|
61
|
+
: Then,
|
|
62
|
+
Else
|
|
63
|
+
>,
|
|
64
|
+
// `A` and `B` are narrowed, need to check again.
|
|
65
|
+
// This is fixed in TS 5.0.2, but keeping it to support older versions.
|
|
66
|
+
[A, B] extends [B, A] ? Then : Else
|
|
75
67
|
>
|
|
76
68
|
>
|
|
77
|
-
|
|
69
|
+
>
|
|
70
|
+
>
|
|
78
71
|
: And<IsSymbol<A>, IsSymbol<B>, Then, Else>
|
|
79
72
|
|
|
80
73
|
/**
|
package/ts/index.ts
CHANGED
|
@@ -11,9 +11,11 @@ export type { Head } from './array/head.js'
|
|
|
11
11
|
export type { IntersectOfProps, MapToProp } from './array/intersect_of_props.js'
|
|
12
12
|
export type { Last } from './array/last.js'
|
|
13
13
|
export { literalArray } from './array/literal_array.js'
|
|
14
|
+
export type { IsLooseArray, IsNotLooseArray, LooseArrayType, NotLooseArrayType } from './array/loose_array_type.js'
|
|
14
15
|
export type { PadStart } from './array/pad_start.js'
|
|
15
16
|
export { reduceWhile } from './array/reduce_while.js'
|
|
16
17
|
export type { Reverse } from './array/reverse.js'
|
|
18
|
+
export type { IsNotStrictArray, IsStrictArray, NotStrictArrayType, StrictArrayType } from './array/strict_array_type.js'
|
|
17
19
|
export type { PropUnion, UnionOfProps } from './array/union_of_props.js'
|
|
18
20
|
export type { UnionOfValues } from './array/union_of_values.js'
|
|
19
21
|
export { assertType } from './assertion/assert_type.js'
|
|
@@ -50,7 +52,9 @@ export * from './functional/index.js'
|
|
|
50
52
|
export type { JSONArray, JSONObject, JSONPrimitive, JSONTypes } from './json.js'
|
|
51
53
|
export type { Abs, Add, Decrement, GreaterThan, Increment, Max, Multiply, Subtract } from './math/index.js'
|
|
52
54
|
export * as MathPlus from './math/math_plus.js'
|
|
55
|
+
export * from './mix_types/merge.js'
|
|
53
56
|
export type { AnyOrNeverType, IsAnyOrNever } from './mix_types/any_or_never_type.js'
|
|
57
|
+
export type * from './mix_types/box.js'
|
|
54
58
|
export type { IsNever, IsNotNever, Is_Never, NeverType, NotNeverType, Not_Never } from './never/never_type.js'
|
|
55
59
|
export * from './nodejs/index.js'
|
|
56
60
|
export * from './nominal/index.js'
|
|
@@ -79,6 +83,8 @@ export type {
|
|
|
79
83
|
export type { IsNotPositive, IsPositive, NonPositive, Positive } from './numeric/positive.js'
|
|
80
84
|
export type { Required, RequiredExcept, RequiredPick } from './object/Required.js'
|
|
81
85
|
export * from './object/index.js'
|
|
86
|
+
export type * from './object/is_strict_object.js'
|
|
87
|
+
export * as ObjectPlus from './object/object_plus.js'
|
|
82
88
|
export type { IsNotObject, IsObject, NotObjectType, ObjectType } from './object/object_type.js'
|
|
83
89
|
export * from './predicates/index.js'
|
|
84
90
|
export type { PrimitiveTypes } from './primitive.js'
|
|
@@ -116,6 +122,6 @@ export type { UnionKeys } from './union_keys.js'
|
|
|
116
122
|
export type { IsNotUnknown, IsUnknown, NotUnknownType, UnknownType } from './unknown/unknown_type.js'
|
|
117
123
|
export * from './unpartial.js'
|
|
118
124
|
export * from './utils/index.js'
|
|
119
|
-
export type {
|
|
125
|
+
export type { TypePlusOptions } from './utils/options.js'
|
|
120
126
|
export type { IsNotVoid, IsVoid, NotVoidType, VoidType } from './void/void_type.js'
|
|
121
127
|
|
|
@@ -83,12 +83,12 @@ export namespace NumericStruct {
|
|
|
83
83
|
*/
|
|
84
84
|
export type FromNumeric<N extends number | bigint, Fail = never> = N extends number
|
|
85
85
|
? number extends N
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
? Fail
|
|
87
|
+
: ['number', DigitsStruct.FromNumber<N>]
|
|
88
88
|
: N extends bigint
|
|
89
89
|
? bigint extends N
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
? Fail
|
|
91
|
+
: ['bigint', DigitsStruct.FromBigint<N>]
|
|
92
92
|
: never
|
|
93
93
|
|
|
94
94
|
/**
|
|
@@ -100,8 +100,8 @@ export namespace NumericStruct {
|
|
|
100
100
|
M[DIGITS_STRUCT]
|
|
101
101
|
> extends infer S extends string
|
|
102
102
|
? M[TYPE] extends 'bigint'
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
? StringToBigint<S, StringToNumber<S, `The value '${S}' cannot be represented as bigint or number`>>
|
|
104
|
+
: StringToNumber<S, StringToBigint<S, `The value '${S}' cannot be represented as bigint or number`>>
|
|
105
105
|
: never
|
|
106
106
|
|
|
107
107
|
export type Add<A extends NumericStruct, B extends NumericStruct> = [
|
|
@@ -126,8 +126,8 @@ type StringToBigint<S extends string, Fail> = S extends `${infer N extends bigin
|
|
|
126
126
|
// TODO: move into `NumericHelpers`
|
|
127
127
|
export type StringToNumber<S extends string, Fail> = S extends `${infer N extends number}`
|
|
128
128
|
? number extends N
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
? Fail
|
|
130
|
+
: N
|
|
131
131
|
: Fail
|
|
132
132
|
|
|
133
133
|
export type DigitsStruct = [Sign: '+' | '-', Digits: number[], Exponent: number]
|
|
@@ -144,20 +144,20 @@ export namespace DigitsStruct {
|
|
|
144
144
|
*/
|
|
145
145
|
export type FromNumber<N extends number> = `${N}` extends `-${infer R}`
|
|
146
146
|
? R extends `${infer W}.${infer F}`
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
147
|
+
? [DigitArray.FromString<W>, DigitArray.FromString<F>] extends [
|
|
148
|
+
infer WA extends number[],
|
|
149
|
+
infer FA extends number[]
|
|
150
|
+
]
|
|
151
|
+
? ['-', DigitArray.TrimLeadingZeros<[...WA, ...FA]>, FA['length']]
|
|
152
|
+
: never
|
|
153
|
+
: ['-', DigitArray.FromString<R>, 0]
|
|
154
154
|
: `${N}` extends `${infer W}.${infer F}`
|
|
155
155
|
? [DigitArray.FromString<W>, DigitArray.FromString<F>] extends [
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
infer WA extends number[],
|
|
157
|
+
infer FA extends number[]
|
|
158
|
+
]
|
|
159
|
+
? ['+', DigitArray.TrimLeadingZeros<[...WA, ...FA]>, FA['length']]
|
|
160
|
+
: never
|
|
161
161
|
: ['+', DigitArray.FromString<`${N}`>, 0]
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -176,22 +176,22 @@ export namespace DigitsStruct {
|
|
|
176
176
|
*/
|
|
177
177
|
export type ToString<D extends DigitsStruct> = (
|
|
178
178
|
PadStart<D[DIGITS], D[EXPONENT], 0> extends infer Padded extends number[]
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
179
|
+
? Padded['length'] extends D[EXPONENT]
|
|
180
|
+
? DigitArray.ToString<[0, '.', ...DigitArray.TrimTrailingZeros<Padded>]>
|
|
181
|
+
: SplitFloat<Padded, D[EXPONENT]> extends [infer W extends number[], infer F extends number[]]
|
|
182
|
+
? F extends []
|
|
183
|
+
? DigitArray.ToString<W>
|
|
184
|
+
: DigitArray.ToString<[...W, '.', ...DigitArray.TrimTrailingZeros<F>]>
|
|
185
|
+
: never
|
|
186
|
+
: never
|
|
187
187
|
) extends infer R
|
|
188
188
|
? R extends '0'
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
? R
|
|
190
|
+
: R extends string
|
|
191
|
+
? D[SIGN] extends '-'
|
|
192
|
+
? `-${R}`
|
|
193
|
+
: R
|
|
194
|
+
: never
|
|
195
195
|
: never
|
|
196
196
|
|
|
197
197
|
/**
|
|
@@ -228,8 +228,8 @@ export namespace DigitsStruct {
|
|
|
228
228
|
R extends number[] = []
|
|
229
229
|
> = I extends []
|
|
230
230
|
? D[SIGN] extends '-'
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
? ['+', R, D[EXPONENT]]
|
|
232
|
+
: ['-', R, D[EXPONENT]]
|
|
233
233
|
: I extends [infer H extends number, ...infer T extends number[]]
|
|
234
234
|
? FlipSign<D, T, [...R, Digit.FlipSign<H>]>
|
|
235
235
|
: never
|
|
@@ -245,14 +245,14 @@ export namespace DigitsStruct {
|
|
|
245
245
|
infer BB extends DigitsStruct
|
|
246
246
|
]
|
|
247
247
|
? [BA[SIGN], BB[SIGN]] extends ['+', '+']
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
? Normalize<['+', DigitArray.Add<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
249
|
+
: [BA[SIGN], BB[SIGN]] extends ['+', '-']
|
|
250
|
+
? Normalize<['+', DigitArray.Subtract<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
251
|
+
: [BA[SIGN], BB[SIGN]] extends ['-', '+']
|
|
252
|
+
? Normalize<['+', DigitArray.Subtract<BB[DIGITS], BA[DIGITS]>, BB[EXPONENT]]>
|
|
253
|
+
: [BA[SIGN], BB[SIGN]] extends ['-', '-']
|
|
254
|
+
? Normalize<['-', DigitArray.Add<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
255
|
+
: never
|
|
256
256
|
: never
|
|
257
257
|
|
|
258
258
|
export type Subtract<A extends DigitsStruct, B extends DigitsStruct> = Balance<A, B> extends [
|
|
@@ -260,14 +260,14 @@ export namespace DigitsStruct {
|
|
|
260
260
|
infer BB extends DigitsStruct
|
|
261
261
|
]
|
|
262
262
|
? [BA[SIGN], BB[SIGN]] extends ['+', '+']
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
263
|
+
? Normalize<['+', DigitArray.Subtract<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
264
|
+
: [BA[SIGN], BB[SIGN]] extends ['+', '-']
|
|
265
|
+
? Normalize<['+', DigitArray.Add<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
266
|
+
: [BA[SIGN], BB[SIGN]] extends ['-', '+']
|
|
267
|
+
? Normalize<['-', DigitArray.Add<BB[DIGITS], BA[DIGITS]>, BA[EXPONENT]]>
|
|
268
|
+
: [BA[SIGN], BB[SIGN]] extends ['-', '-']
|
|
269
|
+
? Normalize<['-', DigitArray.Subtract<BA[DIGITS], BB[DIGITS]>, BA[EXPONENT]]>
|
|
270
|
+
: never
|
|
271
271
|
: never
|
|
272
272
|
|
|
273
273
|
export type Multiply<A extends DigitsStruct, B extends DigitsStruct> = NumericAdd<
|
|
@@ -275,14 +275,14 @@ export namespace DigitsStruct {
|
|
|
275
275
|
B[EXPONENT]
|
|
276
276
|
> extends infer Exp extends number
|
|
277
277
|
? [A[SIGN], B[SIGN]] extends ['+', '+']
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
? Normalize<['+', DigitArray.Multiply<A[DIGITS], B[DIGITS]>, Exp]>
|
|
279
|
+
: [A[SIGN], B[SIGN]] extends ['+', '-']
|
|
280
|
+
? Normalize<['-', DigitArray.Multiply<A[DIGITS], B[DIGITS]>, Exp]>
|
|
281
|
+
: [A[SIGN], B[SIGN]] extends ['-', '+']
|
|
282
|
+
? Normalize<['-', DigitArray.Multiply<B[DIGITS], A[DIGITS]>, Exp]>
|
|
283
|
+
: [A[SIGN], B[SIGN]] extends ['-', '-']
|
|
284
|
+
? Normalize<['+', DigitArray.Multiply<A[DIGITS], B[DIGITS]>, Exp]>
|
|
285
|
+
: never
|
|
286
286
|
: never
|
|
287
287
|
|
|
288
288
|
/**
|
|
@@ -293,8 +293,8 @@ export namespace DigitsStruct {
|
|
|
293
293
|
B[EXPONENT]
|
|
294
294
|
> extends [infer Pads extends number[], infer Longer]
|
|
295
295
|
? Longer extends 'A'
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
? [A, [B[SIGN], DigitArray.TrimLeadingZeros<[...B[DIGITS], ...Pads]>, A[EXPONENT]]]
|
|
297
|
+
: [[A[SIGN], DigitArray.TrimLeadingZeros<[...A[DIGITS], ...Pads]>, B[EXPONENT]], B]
|
|
298
298
|
: never
|
|
299
299
|
|
|
300
300
|
type GetBalancePadding<
|
|
@@ -306,11 +306,11 @@ export namespace DigitsStruct {
|
|
|
306
306
|
? [[], 'A']
|
|
307
307
|
: R extends []
|
|
308
308
|
? // have not reach min yet
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
C['length'] extends A
|
|
310
|
+
? GetBalancePadding<A, B, [0, ...C], [0]>
|
|
311
|
+
: C['length'] extends B
|
|
312
|
+
? GetBalancePadding<A, B, [0, ...C], [0, ...R]>
|
|
313
|
+
: GetBalancePadding<A, B, [0, ...C], []>
|
|
314
314
|
: C['length'] extends A
|
|
315
315
|
? [R, 'A']
|
|
316
316
|
: C['length'] extends B
|
|
@@ -395,35 +395,35 @@ export namespace DigitArray {
|
|
|
395
395
|
|
|
396
396
|
export type Add<A extends number[], B extends number[], R extends number[] = []> = A extends []
|
|
397
397
|
? B extends []
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
398
|
+
? R
|
|
399
|
+
: B extends [...infer BH extends number[], infer BL extends number]
|
|
400
|
+
? Add<[], BH, [BL, ...R]>
|
|
401
|
+
: never
|
|
402
402
|
: B extends []
|
|
403
403
|
? A extends [...infer AH extends number[], infer AL extends number]
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
? Add<AH, [], [AL, ...R]>
|
|
405
|
+
: never
|
|
406
406
|
: [A, B] extends [
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
407
|
+
[...infer AH extends number[], infer AL extends number],
|
|
408
|
+
[...infer BH extends number[], infer BL extends number]
|
|
409
|
+
]
|
|
410
410
|
? Add<AH, BH, [Digit.Add<AL, BL>, ...R]>
|
|
411
411
|
: never
|
|
412
412
|
|
|
413
413
|
export type Subtract<A extends number[], B extends number[], R extends number[] = []> = A extends []
|
|
414
414
|
? B extends []
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
415
|
+
? TrimLeadingZeros<R>
|
|
416
|
+
: B extends [...infer BH extends number[], infer BL extends number]
|
|
417
|
+
? Subtract<[], BH, [ToNegative<BL>, ...R]>
|
|
418
|
+
: never
|
|
419
419
|
: B extends []
|
|
420
420
|
? A extends [...infer AH extends number[], infer AL extends number]
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
? Subtract<AH, [], [AL, ...R]>
|
|
422
|
+
: never
|
|
423
423
|
: [A, B] extends [
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
424
|
+
[...infer AH extends number[], infer AL extends number],
|
|
425
|
+
[...infer BH extends number[], infer BL extends number]
|
|
426
|
+
]
|
|
427
427
|
? Subtract<AH, BH, [Digit.Subtract<AL, BL>, ...R]>
|
|
428
428
|
: never
|
|
429
429
|
|
|
@@ -465,32 +465,32 @@ export namespace DigitArray {
|
|
|
465
465
|
? TrimLeadingZeros<R>
|
|
466
466
|
: N extends [infer Tail extends number]
|
|
467
467
|
? `${Tail}` extends `${infer T1 extends number}${infer T2 extends number}`
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
468
|
+
? CarryDigits<[], [T1, T2, ...R]>
|
|
469
|
+
: `${Tail}` extends `-${infer T1 extends number}${infer T2 extends number}`
|
|
470
|
+
? `-${T1}` extends `${infer NT extends number}`
|
|
471
|
+
? CarryDigits<[], [NT, T2, ...R]>
|
|
472
|
+
: never
|
|
473
|
+
: CarryDigits<[], [Tail, ...R]>
|
|
474
474
|
: N extends [infer Head extends number, infer Tail extends number]
|
|
475
475
|
? `${Tail}` extends `${infer T1 extends number}${infer T2 extends number}`
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
476
|
+
? CarryDigits<[Digit.Add<Head, T1>], [T2, ...R]>
|
|
477
|
+
: `${Tail}` extends `-${infer T1 extends number}${infer T2 extends number}`
|
|
478
|
+
? `-${T1}` extends `${infer NT extends number}`
|
|
479
|
+
? CarryDigits<[Digit.Add<Head, NT>], [T2, ...R]>
|
|
480
|
+
: never
|
|
481
|
+
: `${Tail}` extends `-${number}`
|
|
482
|
+
? CarryDigits<[Digit.Add<Head, -1>], [Digit.Plus10[Tail], ...R]>
|
|
483
|
+
: CarryDigits<[Head], [Tail, ...R]>
|
|
484
484
|
: N extends [...infer Heads extends number[], infer Head extends number, infer Tail extends number]
|
|
485
485
|
? `${Tail}` extends `${infer T1 extends number}${infer T2 extends number}`
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
? CarryDigits<[...Heads, Digit.Add<Head, T1>], [T2, ...R]>
|
|
487
|
+
: `${Tail}` extends `-${infer T1 extends number}${infer T2 extends number}`
|
|
488
|
+
? `-${T1}` extends `${infer NT extends number}`
|
|
489
|
+
? CarryDigits<[...Heads, Digit.Add<Head, NT>], [T2, ...R]>
|
|
490
|
+
: never
|
|
491
|
+
: `${Tail}` extends `-${number}`
|
|
492
|
+
? CarryDigits<[...Heads, Digit.Add<Head, -1>], [Digit.Plus10[Tail], ...R]>
|
|
493
|
+
: CarryDigits<[...Heads, Head], [Tail, ...R]>
|
|
494
494
|
: never
|
|
495
495
|
}
|
|
496
496
|
|
|
@@ -503,8 +503,8 @@ export namespace Digit {
|
|
|
503
503
|
*/
|
|
504
504
|
export type Add<A extends number, B extends number> = `${A}` extends `-${infer AD extends number}`
|
|
505
505
|
? `${B}` extends `-${infer BD extends number}`
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
? ToNegative<PositiveEntryAdd<AD, BD>>
|
|
507
|
+
: Subtract<B, AD>
|
|
508
508
|
: `${B}` extends `-${infer BD extends number}`
|
|
509
509
|
? Subtract<A, BD>
|
|
510
510
|
: PositiveEntryAdd<A, B>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { IsBigint } from '../bigint/bigint_type.js'
|
|
2
|
+
import type { IsBoolean } from '../boolean/boolean_type.js'
|
|
3
|
+
import type { IsFunction } from '../function/function_type.js'
|
|
4
|
+
import type { IsNumber } from '../number/number_type.js'
|
|
5
|
+
import type { IsStrictObject } from '../object/is_strict_object.js'
|
|
6
|
+
import type { IsString } from '../string/string_type.js'
|
|
7
|
+
import type { IsSymbol } from '../symbol/symbol_type.js'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* ⚗️ *transform*
|
|
11
|
+
* 🔢 *customizable*
|
|
12
|
+
*
|
|
13
|
+
* Converts primitive types to their boxed types.
|
|
14
|
+
*
|
|
15
|
+
* @typeParam Options['$notBoxable'] return type when `T` is not boxable. Defaults to `never`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* Box<number> // Number
|
|
20
|
+
* Box<object> // Object
|
|
21
|
+
* Box<string> // String
|
|
22
|
+
* Box<'abc'> // String
|
|
23
|
+
*
|
|
24
|
+
* Box<undefined> // never
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export type Box<T, Options extends Box.Options = Box.DefaultOptions> =
|
|
28
|
+
IsFunction<
|
|
29
|
+
T,
|
|
30
|
+
Function,
|
|
31
|
+
IsStrictObject<
|
|
32
|
+
T,
|
|
33
|
+
Object,
|
|
34
|
+
T extends Record<any, any> ? T :
|
|
35
|
+
IsBoolean<
|
|
36
|
+
T,
|
|
37
|
+
Boolean,
|
|
38
|
+
IsNumber<
|
|
39
|
+
T,
|
|
40
|
+
Number,
|
|
41
|
+
IsString<
|
|
42
|
+
T,
|
|
43
|
+
String,
|
|
44
|
+
IsSymbol<
|
|
45
|
+
T,
|
|
46
|
+
Symbol,
|
|
47
|
+
IsBigint<T, BigInt, Options['$notBoxable']>
|
|
48
|
+
>
|
|
49
|
+
>
|
|
50
|
+
>
|
|
51
|
+
>
|
|
52
|
+
>
|
|
53
|
+
>
|
|
54
|
+
|
|
55
|
+
export namespace Box {
|
|
56
|
+
export type Options = {
|
|
57
|
+
$notBoxable?: unknown
|
|
58
|
+
}
|
|
59
|
+
export interface DefaultOptions {
|
|
60
|
+
$notBoxable: never
|
|
61
|
+
}
|
|
62
|
+
}
|