type-plus 8.0.0-beta.0 → 8.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/any/any.d.ts +49 -0
- package/esm/any/any.d.ts.map +1 -0
- package/esm/any/any.js +2 -0
- package/esm/any/any.js.map +1 -0
- package/esm/any/is_any.d.ts +55 -0
- package/esm/any/is_any.d.ts.map +1 -0
- package/esm/any/is_any.js +2 -0
- package/esm/any/is_any.js.map +1 -0
- package/esm/any/is_not_any.d.ts +55 -0
- package/esm/any/is_not_any.d.ts.map +1 -0
- package/esm/any/is_not_any.js +2 -0
- package/esm/any/is_not_any.js.map +1 -0
- package/esm/array/array.at.d.ts +10 -3
- package/esm/array/array.at.d.ts.map +1 -1
- package/esm/array/array.at.js.map +1 -1
- package/esm/array/array.entries.d.ts +5 -2
- package/esm/array/array.entries.d.ts.map +1 -1
- package/esm/array/array.entries.js.map +1 -1
- package/esm/array/array.find_last.d.ts +5 -2
- package/esm/array/array.find_last.d.ts.map +1 -1
- package/esm/array/array.find_last.js.map +1 -1
- package/esm/array/array.reverse.d.ts.map +1 -1
- package/esm/array/array.reverse.js.map +1 -1
- package/esm/array/array.some.d.ts.map +1 -1
- package/esm/array/array.some.js.map +1 -1
- package/esm/array/array_plus.common_prop_keys.d.ts +8 -4
- package/esm/array/array_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/array/array_plus.common_prop_keys.js.map +1 -1
- package/esm/array/array_plus.concat.d.ts.map +1 -1
- package/esm/array/array_plus.concat.js.map +1 -1
- package/esm/array/array_plus.d.ts.map +1 -1
- package/esm/array/array_plus.drop_match.d.ts +1 -3
- package/esm/array/array_plus.drop_match.d.ts.map +1 -1
- package/esm/array/array_plus.drop_match.js.map +1 -1
- package/esm/array/array_plus.element_match.d.ts +5 -2
- package/esm/array/array_plus.element_match.d.ts.map +1 -1
- package/esm/array/array_plus.element_match.js.map +1 -1
- package/esm/array/array_plus.filter.d.ts +7 -3
- package/esm/array/array_plus.filter.d.ts.map +1 -1
- package/esm/array/array_plus.filter.js.map +1 -1
- package/esm/array/array_plus.find.d.ts +9 -6
- package/esm/array/array_plus.find.d.ts.map +1 -1
- package/esm/array/array_plus.find.js.map +1 -1
- package/esm/array/array_plus.index_at.d.ts +21 -7
- package/esm/array/array_plus.index_at.d.ts.map +1 -1
- package/esm/array/array_plus.index_at.js +82 -0
- package/esm/array/array_plus.index_at.js.map +1 -1
- package/esm/array/array_plus.is_index_out_of_bound.d.ts +6 -3
- package/esm/array/array_plus.is_index_out_of_bound.d.ts.map +1 -1
- package/esm/array/array_plus.is_index_out_of_bound.js.map +1 -1
- package/esm/array/array_plus.is_readonly.d.ts +9 -4
- package/esm/array/array_plus.is_readonly.d.ts.map +1 -1
- package/esm/array/array_plus.is_readonly.js.map +1 -1
- package/esm/array/array_plus.js.map +1 -1
- package/esm/array/array_plus.pad_start.d.ts.map +1 -1
- package/esm/array/array_plus.pad_start.js.map +1 -1
- package/esm/array/array_plus.split_at.d.ts +22 -12
- package/esm/array/array_plus.split_at.d.ts.map +1 -1
- package/esm/array/array_plus.split_at.js.map +1 -1
- package/esm/array/filter.d.ts.map +1 -1
- package/esm/array/filter.js.map +1 -1
- package/esm/array/find_first.d.ts +5 -2
- package/esm/array/find_first.d.ts.map +1 -1
- package/esm/array/find_first.js.map +1 -1
- package/esm/array/head.d.ts +6 -4
- package/esm/array/head.d.ts.map +1 -1
- package/esm/array/head.js.map +1 -1
- package/esm/array/intersect_of_props.d.ts.map +1 -1
- package/esm/array/intersect_of_props.js.map +1 -1
- package/esm/array/is_array.d.ts +89 -0
- package/esm/array/is_array.d.ts.map +1 -0
- package/esm/array/is_array.js +2 -0
- package/esm/array/is_array.js.map +1 -0
- package/esm/array/is_not_array.d.ts +89 -0
- package/esm/array/is_not_array.d.ts.map +1 -0
- package/esm/array/is_not_array.js +2 -0
- package/esm/array/is_not_array.js.map +1 -0
- package/esm/array/last.d.ts +6 -4
- package/esm/array/last.d.ts.map +1 -1
- package/esm/array/last.js.map +1 -1
- package/esm/array/literal_array.d.ts.map +1 -1
- package/esm/array/literal_array.js.map +1 -1
- package/esm/array/loose_array_type.d.ts +7 -4
- package/esm/array/loose_array_type.d.ts.map +1 -1
- package/esm/array/loose_array_type.js.map +1 -1
- package/esm/array/pad_start.d.ts.map +1 -1
- package/esm/array/pad_start.js.map +1 -1
- package/esm/array/reduce_while.d.ts.map +1 -1
- package/esm/array/reduce_while.js.map +1 -1
- package/esm/array/reverse.d.ts.map +1 -1
- package/esm/array/reverse.js.map +1 -1
- package/esm/array/union_of_props.d.ts.map +1 -1
- package/esm/array/union_of_props.js.map +1 -1
- package/esm/array/union_of_values.d.ts.map +1 -1
- package/esm/array/union_of_values.js.map +1 -1
- package/esm/assertion/assert_type.d.ts +2 -2
- package/esm/assertion/assert_type.d.ts.map +1 -1
- package/esm/assertion/assert_type.js +44 -47
- package/esm/assertion/assert_type.js.map +1 -1
- package/esm/bigint/cast.d.ts.map +1 -1
- package/esm/bigint/cast.js.map +1 -1
- package/esm/bigint/is_bigint.d.ts +97 -0
- package/esm/bigint/is_bigint.d.ts.map +1 -0
- package/esm/bigint/is_bigint.js +2 -0
- package/esm/bigint/is_bigint.js.map +1 -0
- package/esm/bigint/is_bigint_literal.d.ts +85 -0
- package/esm/bigint/is_bigint_literal.d.ts.map +1 -0
- package/esm/bigint/is_bigint_literal.js +2 -0
- package/esm/bigint/is_bigint_literal.js.map +1 -0
- package/esm/bigint/is_not_bigint.d.ts +94 -0
- package/esm/bigint/is_not_bigint.d.ts.map +1 -0
- package/esm/bigint/is_not_bigint.js +2 -0
- package/esm/bigint/is_not_bigint.js.map +1 -0
- package/esm/bigint/is_not_bigint_literal.d.ts +83 -0
- package/esm/bigint/is_not_bigint_literal.d.ts.map +1 -0
- package/esm/bigint/is_not_bigint_literal.js +2 -0
- package/esm/bigint/is_not_bigint_literal.js.map +1 -0
- package/esm/binary/Bit.d.ts.map +1 -1
- package/esm/binary/Bit.js.map +1 -1
- package/esm/binary/_binary.d.ts.map +1 -1
- package/esm/binary/_binary.js.map +1 -1
- package/esm/binary/index.d.ts.map +1 -1
- package/esm/binary/index.js.map +1 -1
- package/esm/boolean/is_boolean.d.ts +91 -0
- package/esm/boolean/is_boolean.d.ts.map +1 -0
- package/esm/boolean/is_boolean.js +2 -0
- package/esm/boolean/is_boolean.js.map +1 -0
- package/esm/boolean/is_false.d.ts +78 -0
- package/esm/boolean/is_false.d.ts.map +1 -0
- package/esm/boolean/is_false.js +2 -0
- package/esm/boolean/is_false.js.map +1 -0
- package/esm/boolean/is_not_boolean.d.ts +91 -0
- package/esm/boolean/is_not_boolean.d.ts.map +1 -0
- package/esm/boolean/is_not_boolean.js +2 -0
- package/esm/boolean/is_not_boolean.js.map +1 -0
- package/esm/boolean/is_not_false.d.ts +79 -0
- package/esm/boolean/is_not_false.d.ts.map +1 -0
- package/esm/boolean/is_not_false.js +2 -0
- package/esm/boolean/is_not_false.js.map +1 -0
- package/esm/boolean/is_not_true.d.ts +80 -0
- package/esm/boolean/is_not_true.d.ts.map +1 -0
- package/esm/boolean/is_not_true.js +2 -0
- package/esm/boolean/is_not_true.js.map +1 -0
- package/esm/boolean/is_true.d.ts +78 -0
- package/esm/boolean/is_true.d.ts.map +1 -0
- package/esm/boolean/is_true.js +2 -0
- package/esm/boolean/is_true.js.map +1 -0
- package/esm/class/AnyConstructor.d.ts +1 -1
- package/esm/class/AnyConstructor.d.ts.map +1 -1
- package/esm/class/AnyConstructor.js.map +1 -1
- package/esm/class/index.d.ts.map +1 -1
- package/esm/class/index.js.map +1 -1
- package/esm/class/isConstructor.d.ts +1 -1
- package/esm/class/isConstructor.d.ts.map +1 -1
- package/esm/class/isConstructor.js +2 -2
- package/esm/class/isConstructor.js.map +1 -1
- package/esm/composable_types.d.ts.map +1 -1
- package/esm/composable_types.js.map +1 -1
- package/esm/equal/equal.d.ts +9 -5
- package/esm/equal/equal.d.ts.map +1 -1
- package/esm/equal/equal.js.map +1 -1
- package/esm/equal/identity_equal.d.ts.map +1 -1
- package/esm/equal/identity_equal.js.map +1 -1
- package/esm/function/any_function.d.ts.map +1 -1
- package/esm/function/any_function.js.map +1 -1
- package/esm/function/extract_function.d.ts.map +1 -1
- package/esm/function/extract_function.js.map +1 -1
- package/esm/function/is_function.d.ts +61 -0
- package/esm/function/is_function.d.ts.map +1 -0
- package/esm/function/is_function.js +2 -0
- package/esm/function/is_function.js.map +1 -0
- package/esm/function/is_not_function.d.ts +73 -0
- package/esm/function/is_not_function.d.ts.map +1 -0
- package/esm/function/is_not_function.js +2 -0
- package/esm/function/is_not_function.js.map +1 -0
- package/esm/function/is_not_strict_function.d.ts +31 -0
- package/esm/function/is_not_strict_function.d.ts.map +1 -0
- package/esm/function/is_not_strict_function.js +2 -0
- package/esm/function/is_not_strict_function.js.map +1 -0
- package/esm/function/is_strict_function.d.ts +31 -0
- package/esm/function/is_strict_function.d.ts.map +1 -0
- package/esm/function/is_strict_function.js +2 -0
- package/esm/function/is_strict_function.js.map +1 -0
- package/esm/functional/ChainFn.d.ts.map +1 -1
- package/esm/functional/ChainFn.js.map +1 -1
- package/esm/functional/Maybe.d.ts +1 -1
- package/esm/functional/Maybe.d.ts.map +1 -1
- package/esm/functional/Maybe.js.map +1 -1
- package/esm/functional/compose.d.ts.map +1 -1
- package/esm/functional/compose.js +1 -0
- package/esm/functional/compose.js.map +1 -1
- package/esm/functional/context.d.ts.map +1 -1
- package/esm/functional/context.js +1 -1
- package/esm/functional/context.js.map +1 -1
- package/esm/functional/index.d.ts.map +1 -1
- package/esm/functional/index.js.map +1 -1
- package/esm/index.d.ts +79 -30
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/json.d.ts.map +1 -1
- package/esm/json.js.map +1 -1
- package/esm/math/abs.d.ts +4 -5
- package/esm/math/abs.d.ts.map +1 -1
- package/esm/math/abs.js.map +1 -1
- package/esm/math/add.d.ts.map +1 -1
- package/esm/math/add.js.map +1 -1
- package/esm/math/greater_than.d.ts +1 -1
- package/esm/math/greater_than.d.ts.map +1 -1
- package/esm/math/greater_than.js.map +1 -1
- package/esm/math/index.d.ts +1 -1
- package/esm/math/index.d.ts.map +1 -1
- package/esm/math/index.js.map +1 -1
- package/esm/math/math_plus.d.ts.map +1 -1
- package/esm/math/math_plus.js.map +1 -1
- package/esm/math/math_plus.to_negative.d.ts.map +1 -1
- package/esm/math/math_plus.to_negative.js.map +1 -1
- package/esm/math/max.d.ts +1 -1
- package/esm/math/max.d.ts.map +1 -1
- package/esm/math/max.js.map +1 -1
- package/esm/math/multiply.d.ts.map +1 -1
- package/esm/math/multiply.js.map +1 -1
- package/esm/math/numeric_struct.d.ts +1 -1
- package/esm/math/numeric_struct.d.ts.map +1 -1
- package/esm/math/numeric_struct.js.map +1 -1
- package/esm/math/subtract.d.ts.map +1 -1
- package/esm/math/subtract.js.map +1 -1
- package/esm/mix_types/box.d.ts +20 -8
- package/esm/mix_types/box.d.ts.map +1 -1
- package/esm/mix_types/box.js.map +1 -1
- package/esm/mix_types/exclude.d.ts +19 -0
- package/esm/mix_types/exclude.d.ts.map +1 -0
- package/esm/mix_types/exclude.js +2 -0
- package/esm/mix_types/exclude.js.map +1 -0
- package/esm/mix_types/is_any_or_never.d.ts +28 -0
- package/esm/mix_types/is_any_or_never.d.ts.map +1 -0
- package/esm/mix_types/is_any_or_never.js +2 -0
- package/esm/mix_types/is_any_or_never.js.map +1 -0
- package/esm/mix_types/merge.d.ts +6 -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 +59 -0
- package/esm/never/is_never.d.ts.map +1 -0
- package/esm/never/is_never.js +2 -0
- package/esm/never/is_never.js.map +1 -0
- package/esm/never/is_not_never.d.ts +59 -0
- package/esm/never/is_not_never.d.ts.map +1 -0
- package/esm/never/is_not_never.js +2 -0
- package/esm/never/is_not_never.js.map +1 -0
- package/esm/never/never.d.ts +75 -0
- package/esm/never/never.d.ts.map +1 -0
- package/esm/never/never.js +2 -0
- package/esm/never/never.js.map +1 -0
- package/esm/nodejs/index.d.ts.map +1 -1
- package/esm/nodejs/index.js.map +1 -1
- package/esm/nodejs/isNodeError.d.ts.map +1 -1
- package/esm/nodejs/isNodeError.js.map +1 -1
- package/esm/nominal/brand.d.ts.map +1 -1
- package/esm/nominal/brand.js +1 -3
- package/esm/nominal/brand.js.map +1 -1
- package/esm/nominal/constants.d.ts.map +1 -1
- package/esm/nominal/constants.js.map +1 -1
- package/esm/nominal/flavor.d.ts.map +1 -1
- package/esm/nominal/flavor.js +1 -3
- package/esm/nominal/flavor.js.map +1 -1
- package/esm/nominal/index.d.ts.map +1 -1
- package/esm/nominal/index.js.map +1 -1
- package/esm/nominal/nominal_match.d.ts.map +1 -1
- package/esm/nominal/nominal_match.js +1 -3
- package/esm/nominal/nominal_match.js.map +1 -1
- package/esm/null/is_not_null.d.ts +71 -0
- package/esm/null/is_not_null.d.ts.map +1 -0
- package/esm/null/is_not_null.js +2 -0
- package/esm/null/is_not_null.js.map +1 -0
- package/esm/null/is_null.d.ts +75 -0
- package/esm/null/is_null.d.ts.map +1 -0
- package/esm/null/is_null.js +2 -0
- package/esm/null/is_null.js.map +1 -0
- package/esm/number/cast.d.ts.map +1 -1
- package/esm/number/cast.js.map +1 -1
- package/esm/number/is_not_number.d.ts +84 -0
- package/esm/number/is_not_number.d.ts.map +1 -0
- package/esm/number/is_not_number.js +2 -0
- package/esm/number/is_not_number.js.map +1 -0
- package/esm/number/is_not_number_literal.d.ts +83 -0
- package/esm/number/is_not_number_literal.d.ts.map +1 -0
- package/esm/number/is_not_number_literal.js +2 -0
- package/esm/number/is_not_number_literal.js.map +1 -0
- package/esm/number/is_number.d.ts +87 -0
- package/esm/number/is_number.d.ts.map +1 -0
- package/esm/number/is_number.js +2 -0
- package/esm/number/is_number.js.map +1 -0
- package/esm/number/is_number_literal.d.ts +85 -0
- package/esm/number/is_number_literal.d.ts.map +1 -0
- package/esm/number/is_number_literal.js +2 -0
- package/esm/number/is_number_literal.js.map +1 -0
- package/esm/number/number_array.d.ts.map +1 -1
- package/esm/number/number_array.js.map +1 -1
- package/esm/number/number_plus.d.ts +11 -6
- package/esm/number/number_plus.d.ts.map +1 -1
- package/esm/number/number_plus.js +1 -0
- package/esm/number/number_plus.js.map +1 -1
- package/esm/numeric/cast.d.ts.map +1 -1
- package/esm/numeric/cast.js.map +1 -1
- package/esm/numeric/is_integer.d.ts +30 -0
- package/esm/numeric/is_integer.d.ts.map +1 -0
- package/esm/numeric/is_integer.js +2 -0
- package/esm/numeric/is_integer.js.map +1 -0
- package/esm/numeric/is_negative.d.ts +35 -0
- package/esm/numeric/is_negative.d.ts.map +1 -0
- package/esm/numeric/is_negative.js +2 -0
- package/esm/numeric/is_negative.js.map +1 -0
- package/esm/numeric/is_not_integer.d.ts +32 -0
- package/esm/numeric/is_not_integer.d.ts.map +1 -0
- package/esm/numeric/is_not_integer.js +2 -0
- package/esm/numeric/is_not_integer.js.map +1 -0
- package/esm/numeric/is_not_negative.d.ts +35 -0
- package/esm/numeric/is_not_negative.d.ts.map +1 -0
- package/esm/numeric/is_not_negative.js +2 -0
- package/esm/numeric/is_not_negative.js.map +1 -0
- package/esm/numeric/is_not_numeric.d.ts +19 -0
- package/esm/numeric/is_not_numeric.d.ts.map +1 -0
- package/esm/numeric/is_not_numeric.js +2 -0
- package/esm/numeric/is_not_numeric.js.map +1 -0
- package/esm/numeric/is_not_positive.d.ts +36 -0
- package/esm/numeric/is_not_positive.d.ts.map +1 -0
- package/esm/numeric/is_not_positive.js +2 -0
- package/esm/numeric/is_not_positive.js.map +1 -0
- package/esm/numeric/is_numeric.d.ts +19 -0
- package/esm/numeric/is_numeric.d.ts.map +1 -0
- package/esm/numeric/is_numeric.js +2 -0
- package/esm/numeric/is_numeric.js.map +1 -0
- package/esm/numeric/is_positive.d.ts +35 -0
- package/esm/numeric/is_positive.d.ts.map +1 -0
- package/esm/numeric/is_positive.js +2 -0
- package/esm/numeric/is_positive.js.map +1 -0
- package/esm/numeric/numeric_plus.d.ts +9 -4
- package/esm/numeric/numeric_plus.d.ts.map +1 -1
- package/esm/numeric/numeric_plus.js.map +1 -1
- package/esm/numeric/numeric_type.d.ts +0 -50
- package/esm/numeric/numeric_type.d.ts.map +1 -1
- package/esm/numeric/numeric_type.js.map +1 -1
- package/esm/object/ANotB.d.ts.map +1 -1
- package/esm/object/ANotB.js.map +1 -1
- package/esm/object/ExcludePropType.d.ts.map +1 -1
- package/esm/object/ExcludePropType.js.map +1 -1
- package/esm/object/IsDisjoint.d.ts.map +1 -1
- package/esm/object/IsDisjoint.js.map +1 -1
- package/esm/object/IsRecord.d.ts.map +1 -1
- package/esm/object/IsRecord.js.map +1 -1
- package/esm/object/KeyTypes.d.ts.map +1 -1
- package/esm/object/KeyTypes.js.map +1 -1
- package/esm/object/KeyofOptional.d.ts.map +1 -1
- package/esm/object/KeyofOptional.js.map +1 -1
- package/esm/object/KeysWithDiffType.d.ts +2 -2
- package/esm/object/KeysWithDiffType.d.ts.map +1 -1
- package/esm/object/KeysWithDiffType.js.map +1 -1
- package/esm/object/KnownKeys.d.ts.map +1 -1
- package/esm/object/KnownKeys.js.map +1 -1
- package/esm/object/Partial.d.ts.map +1 -1
- package/esm/object/Partial.js.map +1 -1
- package/esm/object/RecursiveIntersect.d.ts.map +1 -1
- package/esm/object/RecursiveIntersect.js.map +1 -1
- package/esm/object/RecursiveRequired.d.ts.map +1 -1
- package/esm/object/RecursiveRequired.js.map +1 -1
- package/esm/object/Required.d.ts +1 -2
- package/esm/object/Required.d.ts.map +1 -1
- package/esm/object/Required.js.map +1 -1
- package/esm/object/RequiredKeys.d.ts +2 -2
- package/esm/object/RequiredKeys.d.ts.map +1 -1
- package/esm/object/RequiredKeys.js.map +1 -1
- package/esm/object/SpreadRecord.d.ts.map +1 -1
- package/esm/object/SpreadRecord.js.map +1 -1
- package/esm/object/ValueOf.d.ts.map +1 -1
- package/esm/object/ValueOf.js.map +1 -1
- package/esm/object/any_record.d.ts.map +1 -1
- package/esm/object/any_record.js.map +1 -1
- package/esm/object/everyKey.d.ts.map +1 -1
- package/esm/object/everyKey.js.map +1 -1
- package/esm/object/facade.d.ts.map +1 -1
- package/esm/object/facade.js.map +1 -1
- package/esm/object/filterKey.d.ts.map +1 -1
- package/esm/object/filterKey.js.map +1 -1
- package/esm/object/findKey.d.ts.map +1 -1
- package/esm/object/findKey.js.map +1 -1
- package/esm/object/forEachKey.d.ts.map +1 -1
- package/esm/object/forEachKey.js +1 -1
- package/esm/object/forEachKey.js.map +1 -1
- package/esm/object/getField.d.ts.map +1 -1
- package/esm/object/getField.js.map +1 -1
- package/esm/object/hasKey.d.ts.map +1 -1
- package/esm/object/hasKey.js.map +1 -1
- package/esm/object/hasProperty.d.ts.map +1 -1
- package/esm/object/hasProperty.js.map +1 -1
- package/esm/object/index.d.ts +14 -15
- package/esm/object/index.d.ts.map +1 -1
- package/esm/object/index.js.map +1 -1
- package/esm/object/is_not_object.d.ts +119 -0
- package/esm/object/is_not_object.d.ts.map +1 -0
- package/esm/object/is_not_object.js +2 -0
- package/esm/object/is_not_object.js.map +1 -0
- package/esm/object/is_object.d.ts +104 -0
- package/esm/object/is_object.d.ts.map +1 -0
- package/esm/object/is_object.js +2 -0
- package/esm/object/is_object.js.map +1 -0
- package/esm/object/left_join.d.ts +0 -5
- package/esm/object/left_join.d.ts.map +1 -1
- package/esm/object/left_join.js.map +1 -1
- package/esm/object/mapKey.d.ts.map +1 -1
- package/esm/object/mapKey.js.map +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 +47 -26
- package/esm/object/merge.d.ts.map +1 -1
- package/esm/object/merge.js.map +1 -1
- package/esm/object/object_plus.d.ts.map +1 -1
- package/esm/object/object_plus.js.map +1 -1
- package/esm/object/omit.d.ts +1 -1
- 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/optional_key.js.map +1 -1
- package/esm/object/pick.d.ts.map +1 -1
- package/esm/object/pick.js.map +1 -1
- package/esm/object/properties.d.ts.map +1 -1
- package/esm/object/properties.js.map +1 -1
- package/esm/object/record.d.ts.map +1 -1
- package/esm/object/record.js.map +1 -1
- package/esm/object/recursive_partial.d.ts.map +1 -1
- package/esm/object/recursive_partial.js.map +1 -1
- package/esm/object/reduceKey.d.ts.map +1 -1
- package/esm/object/reduceKey.js.map +1 -1
- package/esm/object/replaceProperty.d.ts.map +1 -1
- package/esm/object/replaceProperty.js.map +1 -1
- package/esm/object/someKey.d.ts.map +1 -1
- package/esm/object/someKey.js.map +1 -1
- package/esm/object/split.d.ts +1 -2
- package/esm/object/split.d.ts.map +1 -1
- package/esm/object/split.js.map +1 -1
- package/esm/object/typeOverrideIncompatible.d.ts.map +1 -1
- package/esm/object/typeOverrideIncompatible.js +4 -6
- package/esm/object/typeOverrideIncompatible.js.map +1 -1
- package/esm/predicates/CanAssign.d.ts +12 -4
- package/esm/predicates/CanAssign.d.ts.map +1 -1
- package/esm/predicates/CanAssign.js.map +1 -1
- package/esm/predicates/Extends.d.ts +3 -0
- package/esm/predicates/Extends.d.ts.map +1 -1
- package/esm/predicates/Extends.js.map +1 -1
- package/esm/predicates/If.d.ts.map +1 -1
- package/esm/predicates/If.js.map +1 -1
- package/esm/predicates/IsEmptyObject.d.ts.map +1 -1
- package/esm/predicates/IsEmptyObject.js.map +1 -1
- package/esm/predicates/assignable.d.ts +89 -0
- package/esm/predicates/assignable.d.ts.map +1 -0
- package/esm/predicates/assignable.js +2 -0
- package/esm/predicates/assignable.js.map +1 -0
- package/esm/predicates/index.d.ts.map +1 -1
- package/esm/predicates/index.js.map +1 -1
- package/esm/predicates/literal.d.ts +1 -1
- package/esm/predicates/literal.d.ts.map +1 -1
- package/esm/predicates/literal.js.map +1 -1
- package/esm/predicates/logical.d.ts.map +1 -1
- package/esm/predicates/logical.js.map +1 -1
- package/esm/predicates/not_assignable.d.ts +89 -0
- package/esm/predicates/not_assignable.d.ts.map +1 -0
- package/esm/predicates/not_assignable.js +2 -0
- package/esm/predicates/not_assignable.js.map +1 -0
- package/esm/primitive.d.ts.map +1 -1
- package/esm/primitive.js.map +1 -1
- package/esm/promise/MaybePromise.d.ts.map +1 -1
- package/esm/promise/MaybePromise.js.map +1 -1
- package/esm/promise/PromiseValue.d.ts.map +1 -1
- package/esm/promise/PromiseValue.js.map +1 -1
- package/esm/promise/PromiseValueMerge.d.ts.map +1 -1
- package/esm/promise/PromiseValueMerge.js.map +1 -1
- package/esm/promise/index.d.ts +1 -1
- package/esm/promise/index.d.ts.map +1 -1
- package/esm/promise/index.js.map +1 -1
- package/esm/promise/isPromise.d.ts.map +1 -1
- package/esm/promise/isPromise.js.map +1 -1
- package/esm/promise/mapSeries.d.ts.map +1 -1
- package/esm/promise/mapSeries.js.map +1 -1
- package/esm/string/$extract_manipulated_string.d.ts +18 -0
- package/esm/string/$extract_manipulated_string.d.ts.map +1 -0
- package/esm/string/$extract_manipulated_string.js +2 -0
- package/esm/string/$extract_manipulated_string.js.map +1 -0
- package/esm/string/_string_type.d.ts +5 -0
- package/esm/string/_string_type.d.ts.map +1 -0
- package/esm/string/_string_type.js +2 -0
- package/esm/string/_string_type.js.map +1 -0
- package/esm/string/is_not_string.d.ts +84 -0
- package/esm/string/is_not_string.d.ts.map +1 -0
- package/esm/string/is_not_string.js +2 -0
- package/esm/string/is_not_string.js.map +1 -0
- package/esm/string/is_not_string_literal.d.ts +104 -0
- package/esm/string/is_not_string_literal.d.ts.map +1 -0
- package/esm/string/is_not_string_literal.js +2 -0
- package/esm/string/is_not_string_literal.js.map +1 -0
- package/esm/string/is_not_template_literal.d.ts +73 -0
- package/esm/string/is_not_template_literal.d.ts.map +1 -0
- package/esm/string/is_not_template_literal.js +2 -0
- package/esm/string/is_not_template_literal.js.map +1 -0
- package/esm/string/is_string.d.ts +83 -0
- package/esm/string/is_string.d.ts.map +1 -0
- package/esm/string/is_string.js +2 -0
- package/esm/string/is_string.js.map +1 -0
- package/esm/string/is_string_literal.d.ts +104 -0
- package/esm/string/is_string_literal.d.ts.map +1 -0
- package/esm/string/is_string_literal.js +2 -0
- package/esm/string/is_string_literal.js.map +1 -0
- package/esm/string/is_template_literal.d.ts +75 -0
- package/esm/string/is_template_literal.d.ts.map +1 -0
- package/esm/string/is_template_literal.js +2 -0
- package/esm/string/is_template_literal.js.map +1 -0
- package/esm/string/string.d.ts +1 -1
- package/esm/string/string.d.ts.map +1 -1
- package/esm/string/string.js.map +1 -1
- package/esm/string/string_plus.d.ts.map +1 -1
- package/esm/string/string_plus.js.map +1 -1
- package/esm/symbol/is_not_symbol.d.ts +71 -0
- package/esm/symbol/is_not_symbol.d.ts.map +1 -0
- package/esm/symbol/is_not_symbol.js +2 -0
- package/esm/symbol/is_not_symbol.js.map +1 -0
- package/esm/symbol/is_symbol.d.ts +73 -0
- package/esm/symbol/is_symbol.d.ts.map +1 -0
- package/esm/symbol/is_symbol.js +2 -0
- package/esm/symbol/is_symbol.js.map +1 -0
- package/esm/testing/stub.d.ts.map +1 -1
- package/esm/testing/stub.js.map +1 -1
- package/esm/testing/test_type.d.ts +84 -44
- package/esm/testing/test_type.d.ts.map +1 -1
- package/esm/testing/test_type.js.map +1 -1
- package/esm/tuple/common_prop_keys.d.ts.map +1 -1
- package/esm/tuple/common_prop_keys.js.map +1 -1
- package/esm/tuple/create_tuple.d.ts +2 -2
- package/esm/tuple/create_tuple.d.ts.map +1 -1
- package/esm/tuple/create_tuple.js.map +1 -1
- package/esm/tuple/drop.d.ts.map +1 -1
- package/esm/tuple/drop.js.map +1 -1
- package/esm/tuple/is_not_tuple.d.ts +78 -0
- package/esm/tuple/is_not_tuple.d.ts.map +1 -0
- package/esm/tuple/is_not_tuple.js +2 -0
- package/esm/tuple/is_not_tuple.js.map +1 -0
- package/esm/tuple/is_tuple.d.ts +76 -0
- package/esm/tuple/is_tuple.d.ts.map +1 -0
- package/esm/tuple/is_tuple.js +2 -0
- package/esm/tuple/is_tuple.js.map +1 -0
- package/esm/tuple/tail.d.ts.map +1 -1
- package/esm/tuple/tail.js.map +1 -1
- package/esm/tuple/tuple_plus.common_prop_keys.d.ts +8 -4
- package/esm/tuple/tuple_plus.common_prop_keys.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.common_prop_keys.js.map +1 -1
- package/esm/tuple/tuple_plus.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.drop_match.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.drop_match.js.map +1 -1
- package/esm/tuple/tuple_plus.filter.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.filter.js.map +1 -1
- package/esm/tuple/tuple_plus.find.d.ts +8 -5
- package/esm/tuple/tuple_plus.find.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.find.js.map +1 -1
- package/esm/tuple/tuple_plus.js.map +1 -1
- package/esm/tuple/tuple_plus.pad_start.d.ts.map +1 -1
- package/esm/tuple/tuple_plus.pad_start.js.map +1 -1
- package/esm/type/failed.d.ts.map +1 -1
- package/esm/type/failed.js.map +1 -1
- package/esm/type/no_infer.d.ts +4 -3
- package/esm/type/no_infer.d.ts.map +1 -1
- package/esm/type/no_infer.js.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/type-guard/is_type.js +3 -7
- package/esm/type-guard/is_type.js.map +1 -1
- package/esm/type_plus/$equality.d.ts +12 -0
- package/esm/type_plus/$equality.d.ts.map +1 -0
- package/esm/type_plus/$equality.js +2 -0
- package/esm/type_plus/$equality.js.map +1 -0
- package/esm/type_plus/$error.d.ts +8 -0
- package/esm/type_plus/$error.d.ts.map +1 -0
- package/esm/type_plus/$error.js +2 -0
- package/esm/type_plus/$error.js.map +1 -0
- package/esm/type_plus/$infer_error.d.ts +21 -0
- package/esm/type_plus/$infer_error.d.ts.map +1 -0
- package/esm/type_plus/$infer_error.js +2 -0
- package/esm/type_plus/$infer_error.js.map +1 -0
- package/esm/type_plus/$merge_options.d.ts +11 -0
- package/esm/type_plus/$merge_options.d.ts.map +1 -0
- package/esm/type_plus/$merge_options.js +2 -0
- package/esm/type_plus/$merge_options.js.map +1 -0
- package/esm/type_plus/$resolve_options.d.ts +11 -0
- package/esm/type_plus/$resolve_options.d.ts.map +1 -0
- package/esm/type_plus/$resolve_options.js +2 -0
- package/esm/type_plus/$resolve_options.js.map +1 -0
- package/esm/type_plus/$special_type.d.ts +25 -0
- package/esm/type_plus/$special_type.d.ts.map +1 -0
- package/esm/type_plus/$special_type.js +2 -0
- package/esm/type_plus/$special_type.js.map +1 -0
- package/esm/type_plus/$type.d.ts +11 -0
- package/esm/type_plus/$type.d.ts.map +1 -0
- package/esm/type_plus/$type.js +2 -0
- package/esm/type_plus/$type.js.map +1 -0
- package/esm/type_plus/branch/$branch.d.ts +29 -0
- package/esm/type_plus/branch/$branch.d.ts.map +1 -0
- package/esm/type_plus/branch/$branch.js +2 -0
- package/esm/type_plus/branch/$branch.js.map +1 -0
- package/esm/type_plus/branch/$distributive.d.ts +19 -0
- package/esm/type_plus/branch/$distributive.d.ts.map +1 -0
- package/esm/type_plus/branch/$distributive.js +2 -0
- package/esm/type_plus/branch/$distributive.js.map +1 -0
- package/esm/type_plus/branch/$exact.d.ts +27 -0
- package/esm/type_plus/branch/$exact.d.ts.map +1 -0
- package/esm/type_plus/branch/$exact.js +2 -0
- package/esm/type_plus/branch/$exact.js.map +1 -0
- package/esm/type_plus/branch/$input_options.d.ts +10 -0
- package/esm/type_plus/branch/$input_options.d.ts.map +1 -0
- package/esm/type_plus/branch/$input_options.js +2 -0
- package/esm/type_plus/branch/$input_options.js.map +1 -0
- package/esm/type_plus/branch/$is_distributive.d.ts +6 -0
- package/esm/type_plus/branch/$is_distributive.d.ts.map +1 -0
- package/esm/type_plus/branch/$is_distributive.js +2 -0
- package/esm/type_plus/branch/$is_distributive.js.map +1 -0
- package/esm/type_plus/branch/$override.d.ts +21 -0
- package/esm/type_plus/branch/$override.d.ts.map +1 -0
- package/esm/type_plus/branch/$override.js +2 -0
- package/esm/type_plus/branch/$override.js.map +1 -0
- package/esm/type_plus/branch/$resolve_branch.d.ts +30 -0
- package/esm/type_plus/branch/$resolve_branch.d.ts.map +1 -0
- package/esm/type_plus/branch/$resolve_branch.js +2 -0
- package/esm/type_plus/branch/$resolve_branch.js.map +1 -0
- package/esm/type_plus/branch/$select.d.ts +79 -0
- package/esm/type_plus/branch/$select.d.ts.map +1 -0
- package/esm/type_plus/branch/$select.js +2 -0
- package/esm/type_plus/branch/$select.js.map +1 -0
- package/esm/type_plus/branch/$select_invert.d.ts +77 -0
- package/esm/type_plus/branch/$select_invert.d.ts.map +1 -0
- package/esm/type_plus/branch/$select_invert.js +2 -0
- package/esm/type_plus/branch/$select_invert.js.map +1 -0
- package/esm/type_plus/branch/$select_invert_strict.d.ts +78 -0
- package/esm/type_plus/branch/$select_invert_strict.d.ts.map +1 -0
- package/esm/type_plus/branch/$select_invert_strict.js +2 -0
- package/esm/type_plus/branch/$select_invert_strict.js.map +1 -0
- package/esm/type_plus/branch/$select_strict.d.ts +79 -0
- package/esm/type_plus/branch/$select_strict.d.ts.map +1 -0
- package/esm/type_plus/branch/$select_strict.js +2 -0
- package/esm/type_plus/branch/$select_strict.js.map +1 -0
- package/esm/type_plus/branch/$selection.d.ts +127 -0
- package/esm/type_plus/branch/$selection.d.ts.map +1 -0
- package/esm/type_plus/branch/$selection.js +2 -0
- package/esm/type_plus/branch/$selection.js.map +1 -0
- package/esm/type_plus/branch/$selection_options.d.ts +37 -0
- package/esm/type_plus/branch/$selection_options.d.ts.map +1 -0
- package/esm/type_plus/branch/$selection_options.js +2 -0
- package/esm/type_plus/branch/$selection_options.js.map +1 -0
- package/esm/undefined/has_undefined.d.ts +41 -0
- package/esm/undefined/has_undefined.d.ts.map +1 -0
- package/esm/undefined/has_undefined.js +2 -0
- package/esm/undefined/has_undefined.js.map +1 -0
- package/esm/undefined/is_not_undefined.d.ts +72 -0
- package/esm/undefined/is_not_undefined.d.ts.map +1 -0
- package/esm/undefined/is_not_undefined.js +2 -0
- package/esm/undefined/is_not_undefined.js.map +1 -0
- package/esm/undefined/is_undefined.d.ts +75 -0
- package/esm/undefined/is_undefined.d.ts.map +1 -0
- package/esm/undefined/is_undefined.js +2 -0
- package/esm/undefined/is_undefined.js.map +1 -0
- package/esm/union/union.d.ts +1 -1
- package/esm/union/union.d.ts.map +1 -1
- package/esm/union/union.js.map +1 -1
- package/esm/union/union_to_intersection.d.ts.map +1 -1
- package/esm/union/union_to_intersection.js.map +1 -1
- package/esm/union_keys.d.ts.map +1 -1
- package/esm/union_keys.js.map +1 -1
- package/esm/unknown/is_not_unknown.d.ts +53 -0
- package/esm/unknown/is_not_unknown.d.ts.map +1 -0
- package/esm/unknown/is_not_unknown.js +2 -0
- package/esm/unknown/is_not_unknown.js.map +1 -0
- package/esm/unknown/is_unknown.d.ts +53 -0
- package/esm/unknown/is_unknown.d.ts.map +1 -0
- package/esm/unknown/is_unknown.js +2 -0
- package/esm/unknown/is_unknown.js.map +1 -0
- package/esm/unknown/not_unknown_or.d.ts +30 -0
- package/esm/unknown/not_unknown_or.d.ts.map +1 -0
- package/esm/unknown/not_unknown_or.js +2 -0
- package/esm/unknown/not_unknown_or.js.map +1 -0
- package/esm/unknown/unknown.d.ts +55 -0
- package/esm/unknown/unknown.d.ts.map +1 -0
- package/esm/unknown/unknown.js +2 -0
- package/esm/unknown/unknown.js.map +1 -0
- package/esm/unpartial.d.ts.map +1 -1
- package/esm/unpartial.js.map +1 -1
- package/esm/utils/Widen.d.ts.map +1 -1
- package/esm/utils/Widen.js.map +1 -1
- package/esm/utils/as.d.ts.map +1 -1
- package/esm/utils/as.js.map +1 -1
- package/esm/utils/index.d.ts +0 -2
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/inspect.d.ts.map +1 -1
- package/esm/utils/inspect.js.map +1 -1
- package/esm/utils/options.d.ts +0 -13
- package/esm/utils/options.d.ts.map +1 -1
- package/esm/utils/options.js.map +1 -1
- package/esm/void/is_not_void.d.ts +78 -0
- package/esm/void/is_not_void.d.ts.map +1 -0
- package/esm/void/is_not_void.js +2 -0
- package/esm/void/is_not_void.js.map +1 -0
- package/esm/void/is_void.d.ts +79 -0
- package/esm/void/is_void.d.ts.map +1 -0
- package/esm/void/is_void.js +2 -0
- package/esm/void/is_void.js.map +1 -0
- package/package.json +27 -19
- package/readme.md +161 -160
- package/src/any/any.ts +46 -0
- package/src/any/is_any.ts +59 -0
- package/src/any/is_not_any.ts +59 -0
- package/src/any/readme.md +104 -0
- package/src/array/array.at.ts +40 -0
- package/src/array/array.entries.ts +28 -0
- package/src/array/array.find_last.ts +31 -0
- package/src/array/array_plus.common_prop_keys.ts +38 -0
- package/src/array/array_plus.drop_match.ts +16 -0
- package/src/array/array_plus.element_match.ts +61 -0
- package/src/array/array_plus.filter.ts +52 -0
- package/src/array/array_plus.find.ts +71 -0
- package/src/array/array_plus.index_at.ts +169 -0
- package/src/array/array_plus.is_index_out_of_bound.ts +24 -0
- package/src/array/array_plus.is_readonly.ts +50 -0
- package/src/array/array_plus.split_at.ts +79 -0
- package/src/array/find_first.ts +73 -0
- package/src/array/head.ts +45 -0
- package/src/array/is_array.ts +116 -0
- package/src/array/is_not_array.ts +114 -0
- package/src/array/last.ts +42 -0
- package/src/array/loose_array_type.ts +71 -0
- package/src/array/readme.md +567 -0
- package/src/assertion/assert_type.ts +117 -0
- package/src/bigint/is_bigint.ts +114 -0
- package/src/bigint/is_bigint_literal.ts +100 -0
- package/src/bigint/is_not_bigint.ts +110 -0
- package/src/bigint/is_not_bigint_literal.ts +101 -0
- package/src/bigint/readme.md +109 -0
- package/src/boolean/is_boolean.ts +126 -0
- package/src/boolean/is_false.ts +85 -0
- package/src/boolean/is_not_boolean.ts +109 -0
- package/src/boolean/is_not_false.ts +86 -0
- package/src/boolean/is_not_true.ts +86 -0
- package/src/boolean/is_true.ts +85 -0
- package/src/boolean/readme.md +430 -0
- package/src/class/AnyConstructor.ts +1 -0
- package/src/class/isConstructor.ts +34 -0
- package/src/equal/equal.ts +135 -0
- package/src/function/is_function.ts +62 -0
- package/src/function/is_not_function.ts +75 -0
- package/src/function/is_not_strict_function.ts +40 -0
- package/src/function/is_strict_function.ts +43 -0
- package/src/functional/Maybe.ts +22 -0
- package/src/functional/compose.ts +18 -0
- package/src/functional/context.ts +66 -0
- package/src/index.ts +139 -0
- package/src/math/abs.ts +23 -0
- package/src/math/greater_than.ts +12 -0
- package/src/math/index.ts +7 -0
- package/src/math/max.ts +13 -0
- package/src/math/numeric_struct.ts +656 -0
- package/src/mix_types/box.ts +74 -0
- package/src/mix_types/exclude.ts +18 -0
- package/src/mix_types/is_any_or_never.ts +31 -0
- package/src/mix_types/merge.ts +61 -0
- package/src/mix_types/readme.md +87 -0
- package/src/never/is_never.ts +62 -0
- package/src/never/is_not_never.ts +62 -0
- package/src/never/never.ts +78 -0
- package/src/never/readme.md +148 -0
- package/src/nominal/brand.ts +41 -0
- package/src/nominal/flavor.ts +51 -0
- package/src/nominal/nominal_match.ts +21 -0
- package/src/null/is_not_null.ts +79 -0
- package/src/null/is_null.ts +83 -0
- package/src/null/readme.md +107 -0
- package/src/number/is_not_number.ts +99 -0
- package/src/number/is_not_number_literal.ts +101 -0
- package/src/number/is_number.ts +103 -0
- package/src/number/is_number_literal.ts +100 -0
- package/src/number/number_plus.ts +13 -0
- package/src/number/readme.md +225 -0
- package/src/numeric/is_integer.ts +48 -0
- package/src/numeric/is_negative.ts +51 -0
- package/src/numeric/is_not_integer.ts +49 -0
- package/src/numeric/is_not_negative.ts +49 -0
- package/src/numeric/is_not_numeric.ts +21 -0
- package/src/numeric/is_not_positive.ts +50 -0
- package/src/numeric/is_numeric.ts +20 -0
- package/src/numeric/is_positive.ts +51 -0
- package/src/numeric/numeric_plus.ts +10 -0
- package/src/numeric/numeric_type.ts +10 -0
- package/src/object/KeysWithDiffType.ts +9 -0
- package/src/object/Required.ts +7 -0
- package/src/object/RequiredKeys.ts +8 -0
- package/src/object/forEachKey.ts +9 -0
- package/src/object/index.ts +38 -0
- package/src/object/is_not_object.ts +132 -0
- package/src/object/is_object.ts +119 -0
- package/src/object/left_join.ts +10 -0
- package/src/object/merge.ts +117 -0
- package/src/object/omit.ts +220 -0
- package/src/object/optional_key.ts +38 -0
- package/src/object/split.ts +202 -0
- package/src/object/typeOverrideIncompatible.ts +8 -0
- package/src/predicates/CanAssign.ts +61 -0
- package/src/predicates/Extends.ts +7 -0
- package/src/predicates/assignable.ts +102 -0
- package/src/predicates/index.ts +6 -0
- package/src/predicates/literal.ts +35 -0
- package/src/predicates/not_assignable.ts +100 -0
- package/src/promise/index.ts +5 -0
- package/src/string/$extract_manipulated_string.ts +45 -0
- package/src/string/_string_type.ts +11 -0
- package/src/string/is_not_string.ts +100 -0
- package/src/string/is_not_string_literal.ts +132 -0
- package/src/string/is_not_template_literal.ts +90 -0
- package/src/string/is_string.ts +101 -0
- package/src/string/is_string_literal.ts +132 -0
- package/src/string/is_template_literal.ts +91 -0
- package/src/string/string.ts +36 -0
- package/src/string/string_plus.ts +34 -0
- package/src/symbol/is_not_symbol.ts +78 -0
- package/src/symbol/is_symbol.ts +80 -0
- package/src/testing/stub.ts +81 -0
- package/src/testing/test_type.ts +313 -0
- package/src/tuple/create_tuple.ts +42 -0
- package/src/tuple/is_not_tuple.ts +101 -0
- package/src/tuple/is_tuple.ts +99 -0
- package/src/tuple/readme.md +282 -0
- package/src/tuple/tuple_plus.common_prop_keys.ts +50 -0
- package/src/tuple/tuple_plus.find.ts +89 -0
- package/src/type/no_infer.ts +28 -0
- package/src/type-guard/is_type.ts +48 -0
- package/src/type_plus/$equality.ts +14 -0
- package/src/type_plus/$error.ts +8 -0
- package/src/type_plus/$infer_error.ts +21 -0
- package/src/type_plus/$merge_options.ts +9 -0
- package/src/type_plus/$resolve_options.ts +16 -0
- package/src/type_plus/$special_type.ts +24 -0
- package/src/type_plus/$type.ts +10 -0
- package/src/type_plus/branch/$branch.ts +27 -0
- package/src/type_plus/branch/$distributive.ts +19 -0
- package/src/type_plus/branch/$exact.ts +34 -0
- package/src/type_plus/branch/$input_options.ts +9 -0
- package/src/type_plus/branch/$is_distributive.ts +12 -0
- package/src/type_plus/branch/$override.ts +22 -0
- package/src/type_plus/branch/$resolve_branch.ts +81 -0
- package/src/type_plus/branch/$select.ts +90 -0
- package/src/type_plus/branch/$select_invert.ts +88 -0
- package/src/type_plus/branch/$select_invert_strict.ts +88 -0
- package/src/type_plus/branch/$select_strict.ts +90 -0
- package/src/type_plus/branch/$selection.ts +135 -0
- package/src/type_plus/branch/$selection_options.ts +36 -0
- package/src/type_plus/readme.md +25 -0
- package/src/undefined/has_undefined.ts +44 -0
- package/src/undefined/is_not_undefined.ts +80 -0
- package/src/undefined/is_undefined.ts +82 -0
- package/src/undefined/readme.md +140 -0
- package/src/union/readme.md +81 -0
- package/src/union/union.ts +37 -0
- package/src/unknown/is_not_unknown.ts +57 -0
- package/src/unknown/is_unknown.ts +57 -0
- package/src/unknown/not_unknown_or.ts +29 -0
- package/src/unknown/readme.md +108 -0
- package/src/unknown/unknown.ts +58 -0
- package/src/utils/index.ts +61 -0
- package/src/utils/options.ts +15 -0
- package/src/void/is_not_void.ts +90 -0
- package/src/void/is_void.ts +91 -0
- package/src/void/readme.md +108 -0
- package/esm/any/any_type.d.ts +0 -63
- package/esm/any/any_type.d.ts.map +0 -1
- package/esm/any/any_type.js +0 -2
- package/esm/any/any_type.js.map +0 -1
- package/esm/array/array_type.d.ts +0 -66
- package/esm/array/array_type.d.ts.map +0 -1
- package/esm/array/array_type.js +0 -2
- package/esm/array/array_type.js.map +0 -1
- package/esm/array/strict_array_type.d.ts +0 -66
- package/esm/array/strict_array_type.d.ts.map +0 -1
- package/esm/array/strict_array_type.js +0 -2
- package/esm/array/strict_array_type.js.map +0 -1
- package/esm/bigint/bigint_type.d.ts +0 -54
- package/esm/bigint/bigint_type.d.ts.map +0 -1
- package/esm/bigint/bigint_type.js +0 -2
- package/esm/bigint/bigint_type.js.map +0 -1
- package/esm/bigint/strict_bigint_type.d.ts +0 -56
- package/esm/bigint/strict_bigint_type.d.ts.map +0 -1
- package/esm/bigint/strict_bigint_type.js +0 -2
- package/esm/bigint/strict_bigint_type.js.map +0 -1
- package/esm/boolean/boolean_type.d.ts +0 -56
- package/esm/boolean/boolean_type.d.ts.map +0 -1
- package/esm/boolean/boolean_type.js +0 -2
- package/esm/boolean/boolean_type.js.map +0 -1
- package/esm/boolean/false_type.d.ts +0 -49
- package/esm/boolean/false_type.d.ts.map +0 -1
- package/esm/boolean/false_type.js +0 -2
- package/esm/boolean/false_type.js.map +0 -1
- package/esm/boolean/strict_boolean_type.d.ts +0 -53
- package/esm/boolean/strict_boolean_type.d.ts.map +0 -1
- package/esm/boolean/strict_boolean_type.js +0 -2
- package/esm/boolean/strict_boolean_type.js.map +0 -1
- package/esm/boolean/true_type.d.ts +0 -49
- package/esm/boolean/true_type.d.ts.map +0 -1
- package/esm/boolean/true_type.js +0 -2
- package/esm/boolean/true_type.js.map +0 -1
- package/esm/function/function_type.d.ts +0 -59
- package/esm/function/function_type.d.ts.map +0 -1
- package/esm/function/function_type.js +0 -2
- package/esm/function/function_type.js.map +0 -1
- package/esm/function/strict_function_type.d.ts +0 -49
- package/esm/function/strict_function_type.d.ts.map +0 -1
- package/esm/function/strict_function_type.js +0 -2
- package/esm/function/strict_function_type.js.map +0 -1
- package/esm/mix_types/any_or_never_type.d.ts +0 -37
- package/esm/mix_types/any_or_never_type.d.ts.map +0 -1
- package/esm/mix_types/any_or_never_type.js +0 -2
- package/esm/mix_types/any_or_never_type.js.map +0 -1
- package/esm/never/never_type.d.ts +0 -62
- package/esm/never/never_type.d.ts.map +0 -1
- package/esm/never/never_type.js +0 -2
- package/esm/never/never_type.js.map +0 -1
- package/esm/null/null_type.d.ts +0 -50
- package/esm/null/null_type.d.ts.map +0 -1
- package/esm/null/null_type.js +0 -2
- package/esm/null/null_type.js.map +0 -1
- package/esm/number/number_type.d.ts +0 -50
- package/esm/number/number_type.d.ts.map +0 -1
- package/esm/number/number_type.js +0 -2
- package/esm/number/number_type.js.map +0 -1
- package/esm/number/strict_number_type.d.ts +0 -65
- package/esm/number/strict_number_type.d.ts.map +0 -1
- package/esm/number/strict_number_type.js +0 -2
- package/esm/number/strict_number_type.js.map +0 -1
- package/esm/numeric/integer.d.ts +0 -69
- package/esm/numeric/integer.d.ts.map +0 -1
- package/esm/numeric/integer.js +0 -2
- package/esm/numeric/integer.js.map +0 -1
- package/esm/numeric/negative.d.ts +0 -70
- package/esm/numeric/negative.d.ts.map +0 -1
- package/esm/numeric/negative.js +0 -2
- package/esm/numeric/negative.js.map +0 -1
- package/esm/numeric/positive.d.ts +0 -53
- package/esm/numeric/positive.d.ts.map +0 -1
- package/esm/numeric/positive.js +0 -2
- package/esm/numeric/positive.js.map +0 -1
- package/esm/object/OptionalKeys.d.ts +0 -8
- package/esm/object/OptionalKeys.d.ts.map +0 -1
- package/esm/object/OptionalKeys.js +0 -2
- package/esm/object/OptionalKeys.js.map +0 -1
- package/esm/object/is_strict_object.d.ts +0 -10
- package/esm/object/is_strict_object.d.ts.map +0 -1
- package/esm/object/is_strict_object.js +0 -2
- package/esm/object/is_strict_object.js.map +0 -1
- package/esm/object/object_type.d.ts +0 -54
- package/esm/object/object_type.d.ts.map +0 -1
- package/esm/object/object_type.js +0 -2
- package/esm/object/object_type.js.map +0 -1
- package/esm/string/strict_string_type.d.ts +0 -61
- package/esm/string/strict_string_type.d.ts.map +0 -1
- package/esm/string/strict_string_type.js +0 -2
- package/esm/string/strict_string_type.js.map +0 -1
- package/esm/string/string_type.d.ts +0 -58
- package/esm/string/string_type.d.ts.map +0 -1
- package/esm/string/string_type.js +0 -2
- package/esm/string/string_type.js.map +0 -1
- package/esm/symbol/symbol_type.d.ts +0 -50
- package/esm/symbol/symbol_type.d.ts.map +0 -1
- package/esm/symbol/symbol_type.js +0 -2
- package/esm/symbol/symbol_type.js.map +0 -1
- package/esm/tuple/tuple_type.d.ts +0 -77
- package/esm/tuple/tuple_type.d.ts.map +0 -1
- package/esm/tuple/tuple_type.js +0 -2
- package/esm/tuple/tuple_type.js.map +0 -1
- package/esm/type_plus/cases.d.ts +0 -13
- package/esm/type_plus/cases.d.ts.map +0 -1
- package/esm/type_plus/cases.js +0 -6
- package/esm/type_plus/cases.js.map +0 -1
- package/esm/undefined/undefined_type.d.ts +0 -53
- package/esm/undefined/undefined_type.d.ts.map +0 -1
- package/esm/undefined/undefined_type.js +0 -2
- package/esm/undefined/undefined_type.js.map +0 -1
- package/esm/unknown/unknown_type.d.ts +0 -63
- package/esm/unknown/unknown_type.d.ts.map +0 -1
- package/esm/unknown/unknown_type.js +0 -2
- package/esm/unknown/unknown_type.js.map +0 -1
- package/esm/utils/NonNull.d.ts +0 -2
- package/esm/utils/NonNull.d.ts.map +0 -1
- package/esm/utils/NonNull.js +0 -2
- package/esm/utils/NonNull.js.map +0 -1
- package/esm/utils/NonUndefined.d.ts +0 -2
- package/esm/utils/NonUndefined.d.ts.map +0 -1
- package/esm/utils/NonUndefined.js +0 -2
- package/esm/utils/NonUndefined.js.map +0 -1
- package/esm/void/void_type.d.ts +0 -43
- package/esm/void/void_type.d.ts.map +0 -1
- package/esm/void/void_type.js +0 -2
- package/esm/void/void_type.js.map +0 -1
- package/ts/any/any_type.ts +0 -65
- package/ts/any/readme.md +0 -110
- package/ts/array/array.at.ts +0 -30
- package/ts/array/array.entries.ts +0 -26
- package/ts/array/array.find_last.ts +0 -29
- package/ts/array/array_plus.common_prop_keys.ts +0 -35
- package/ts/array/array_plus.drop_match.ts +0 -19
- package/ts/array/array_plus.element_match.ts +0 -61
- package/ts/array/array_plus.filter.ts +0 -49
- package/ts/array/array_plus.find.ts +0 -71
- package/ts/array/array_plus.index_at.ts +0 -69
- package/ts/array/array_plus.is_index_out_of_bound.ts +0 -22
- package/ts/array/array_plus.is_readonly.ts +0 -46
- package/ts/array/array_plus.split_at.ts +0 -74
- package/ts/array/array_type.ts +0 -75
- package/ts/array/find_first.ts +0 -71
- package/ts/array/head.ts +0 -40
- package/ts/array/last.ts +0 -40
- package/ts/array/loose_array_type.ts +0 -69
- package/ts/array/readme.md +0 -567
- package/ts/array/strict_array_type.ts +0 -75
- package/ts/assertion/assert_type.ts +0 -119
- package/ts/bigint/bigint_type.ts +0 -57
- package/ts/bigint/readme.md +0 -51
- package/ts/bigint/strict_bigint_type.ts +0 -61
- package/ts/boolean/boolean_type.ts +0 -61
- package/ts/boolean/false_type.ts +0 -53
- package/ts/boolean/readme.md +0 -85
- package/ts/boolean/strict_boolean_type.ts +0 -57
- package/ts/boolean/true_type.ts +0 -53
- package/ts/class/AnyConstructor.ts +0 -1
- package/ts/class/isConstructor.ts +0 -34
- package/ts/equal/equal.ts +0 -135
- package/ts/function/function_type.ts +0 -64
- package/ts/function/strict_function_type.ts +0 -53
- package/ts/functional/Maybe.ts +0 -22
- package/ts/functional/compose.ts +0 -17
- package/ts/functional/context.ts +0 -66
- package/ts/index.ts +0 -127
- package/ts/math/abs.ts +0 -18
- package/ts/math/greater_than.ts +0 -12
- package/ts/math/index.ts +0 -7
- package/ts/math/max.ts +0 -13
- package/ts/math/numeric_struct.ts +0 -656
- package/ts/mix_types/any_or_never_type.ts +0 -38
- package/ts/mix_types/box.ts +0 -62
- package/ts/mix_types/merge.ts +0 -61
- package/ts/mix_types/readme.md +0 -74
- package/ts/never/never_type.ts +0 -70
- package/ts/never/readme.md +0 -37
- package/ts/nominal/brand.ts +0 -43
- package/ts/nominal/flavor.ts +0 -53
- package/ts/nominal/nominal_match.ts +0 -22
- package/ts/null/null_type.ts +0 -53
- package/ts/null/readme.md +0 -24
- package/ts/number/number_plus.ts +0 -20
- package/ts/number/number_type.ts +0 -53
- package/ts/number/readme.md +0 -47
- package/ts/number/strict_number_type.ts +0 -69
- package/ts/numeric/integer.ts +0 -75
- package/ts/numeric/negative.ts +0 -101
- package/ts/numeric/numeric_plus.ts +0 -12
- package/ts/numeric/numeric_type.ts +0 -64
- package/ts/numeric/positive.ts +0 -60
- package/ts/object/KeysWithDiffType.ts +0 -9
- package/ts/object/OptionalKeys.ts +0 -9
- package/ts/object/Required.ts +0 -9
- package/ts/object/RequiredKeys.ts +0 -8
- package/ts/object/forEachKey.ts +0 -9
- package/ts/object/index.ts +0 -38
- package/ts/object/is_strict_object.ts +0 -14
- package/ts/object/left_join.ts +0 -19
- package/ts/object/merge.ts +0 -122
- package/ts/object/object_type.ts +0 -57
- package/ts/object/omit.ts +0 -222
- package/ts/object/optional_key.ts +0 -38
- package/ts/object/split.ts +0 -203
- package/ts/object/typeOverrideIncompatible.ts +0 -10
- package/ts/predicates/CanAssign.ts +0 -71
- package/ts/predicates/Extends.ts +0 -4
- package/ts/predicates/index.ts +0 -7
- package/ts/predicates/literal.ts +0 -35
- package/ts/promise/index.ts +0 -5
- package/ts/string/strict_string_type.ts +0 -65
- package/ts/string/string.ts +0 -36
- package/ts/string/string_plus.ts +0 -33
- package/ts/string/string_type.ts +0 -61
- package/ts/symbol/symbol_type.ts +0 -53
- package/ts/testing/stub.ts +0 -80
- package/ts/testing/test_type.ts +0 -317
- package/ts/tuple/create_tuple.ts +0 -42
- package/ts/tuple/readme.md +0 -282
- package/ts/tuple/tuple_plus.common_prop_keys.ts +0 -47
- package/ts/tuple/tuple_plus.find.ts +0 -88
- package/ts/tuple/tuple_type.ts +0 -106
- package/ts/type/no_infer.ts +0 -27
- package/ts/type-guard/is_type.ts +0 -52
- package/ts/type_plus/cases.ts +0 -14
- package/ts/undefined/readme.md +0 -18
- package/ts/undefined/undefined_type.ts +0 -57
- package/ts/union/readme.md +0 -81
- package/ts/union/union.ts +0 -37
- package/ts/unknown/readme.md +0 -27
- package/ts/unknown/unknown_type.ts +0 -68
- package/ts/utils/NonNull.ts +0 -1
- package/ts/utils/NonUndefined.ts +0 -1
- package/ts/utils/index.ts +0 -63
- package/ts/utils/options.ts +0 -29
- package/ts/void/readme.md +0 -26
- package/ts/void/void_type.ts +0 -50
- /package/{ts → src}/array/array.reverse.ts +0 -0
- /package/{ts → src}/array/array.some.ts +0 -0
- /package/{ts → src}/array/array_plus.concat.ts +0 -0
- /package/{ts → src}/array/array_plus.pad_start.ts +0 -0
- /package/{ts → src}/array/array_plus.ts +0 -0
- /package/{ts → src}/array/filter.ts +0 -0
- /package/{ts → src}/array/intersect_of_props.ts +0 -0
- /package/{ts → src}/array/literal_array.ts +0 -0
- /package/{ts → src}/array/pad_start.ts +0 -0
- /package/{ts → src}/array/reduce_while.ts +0 -0
- /package/{ts → src}/array/reverse.ts +0 -0
- /package/{ts → src}/array/union_of_props.ts +0 -0
- /package/{ts → src}/array/union_of_values.ts +0 -0
- /package/{ts → src}/assertion/readme.md +0 -0
- /package/{ts → src}/bigint/cast.ts +0 -0
- /package/{ts → src}/binary/Bit.ts +0 -0
- /package/{ts → src}/binary/_binary.ts +0 -0
- /package/{ts → src}/binary/index.ts +0 -0
- /package/{ts → src}/class/index.ts +0 -0
- /package/{ts → src}/composable_types.ts +0 -0
- /package/{ts → src}/equal/identity_equal.ts +0 -0
- /package/{ts → src}/equal/readme.md +0 -0
- /package/{ts → src}/function/any_function.ts +0 -0
- /package/{ts → src}/function/extract_function.ts +0 -0
- /package/{ts → src}/function/readme.md +0 -0
- /package/{ts → src}/functional/ChainFn.ts +0 -0
- /package/{ts → src}/functional/index.ts +0 -0
- /package/{ts → src}/json.ts +0 -0
- /package/{ts → src}/math/README.md +0 -0
- /package/{ts → src}/math/add.ts +0 -0
- /package/{ts → src}/math/math_plus.to_negative.ts +0 -0
- /package/{ts → src}/math/math_plus.ts +0 -0
- /package/{ts → src}/math/multiply.ts +0 -0
- /package/{ts → src}/math/subtract.ts +0 -0
- /package/{ts → src}/nodejs/index.ts +0 -0
- /package/{ts → src}/nodejs/isNodeError.ts +0 -0
- /package/{ts → src}/nominal/constants.ts +0 -0
- /package/{ts → src}/nominal/index.ts +0 -0
- /package/{ts → src}/number/cast.ts +0 -0
- /package/{ts → src}/number/number_array.ts +0 -0
- /package/{ts → src}/numeric/cast.ts +0 -0
- /package/{ts → src}/numeric/readme.md +0 -0
- /package/{ts → src}/object/ANotB.ts +0 -0
- /package/{ts → src}/object/ExcludePropType.ts +0 -0
- /package/{ts → src}/object/IsDisjoint.ts +0 -0
- /package/{ts → src}/object/IsRecord.ts +0 -0
- /package/{ts → src}/object/KeyTypes.ts +0 -0
- /package/{ts → src}/object/KeyofOptional.ts +0 -0
- /package/{ts → src}/object/KnownKeys.ts +0 -0
- /package/{ts → src}/object/Partial.ts +0 -0
- /package/{ts → src}/object/RecursiveIntersect.ts +0 -0
- /package/{ts → src}/object/RecursiveRequired.ts +0 -0
- /package/{ts → src}/object/SpreadRecord.ts +0 -0
- /package/{ts → src}/object/ValueOf.ts +0 -0
- /package/{ts → src}/object/any_record.ts +0 -0
- /package/{ts → src}/object/everyKey.ts +0 -0
- /package/{ts → src}/object/facade.ts +0 -0
- /package/{ts → src}/object/filterKey.ts +0 -0
- /package/{ts → src}/object/findKey.ts +0 -0
- /package/{ts → src}/object/getField.ts +0 -0
- /package/{ts → src}/object/hasKey.ts +0 -0
- /package/{ts → src}/object/hasProperty.ts +0 -0
- /package/{ts → src}/object/mapKey.ts +0 -0
- /package/{ts → src}/object/mapProperties.ts +0 -0
- /package/{ts → src}/object/object_plus.ts +0 -0
- /package/{ts → src}/object/pick.ts +0 -0
- /package/{ts → src}/object/properties.ts +0 -0
- /package/{ts → src}/object/readme.md +0 -0
- /package/{ts → src}/object/record.ts +0 -0
- /package/{ts → src}/object/recursive_partial.ts +0 -0
- /package/{ts → src}/object/reduceKey.ts +0 -0
- /package/{ts → src}/object/replaceProperty.ts +0 -0
- /package/{ts → src}/object/someKey.ts +0 -0
- /package/{ts → src}/predicates/If.ts +0 -0
- /package/{ts → src}/predicates/IsEmptyObject.ts +0 -0
- /package/{ts → src}/predicates/logical.ts +0 -0
- /package/{ts → src}/primitive.ts +0 -0
- /package/{ts → src}/promise/MaybePromise.ts +0 -0
- /package/{ts → src}/promise/PromiseValue.ts +0 -0
- /package/{ts → src}/promise/PromiseValueMerge.ts +0 -0
- /package/{ts → src}/promise/isPromise.ts +0 -0
- /package/{ts → src}/promise/mapSeries.ts +0 -0
- /package/{ts → src}/string/readme.md +0 -0
- /package/{ts → src}/symbol/readme.md +0 -0
- /package/{ts → src}/testing/readme.md +0 -0
- /package/{ts → src}/tuple/common_prop_keys.ts +0 -0
- /package/{ts → src}/tuple/drop.ts +0 -0
- /package/{ts → src}/tuple/tail.ts +0 -0
- /package/{ts → src}/tuple/tuple_plus.drop_match.ts +0 -0
- /package/{ts → src}/tuple/tuple_plus.filter.ts +0 -0
- /package/{ts → src}/tuple/tuple_plus.pad_start.ts +0 -0
- /package/{ts → src}/tuple/tuple_plus.ts +0 -0
- /package/{ts → src}/type/failed.ts +0 -0
- /package/{ts → src}/type/readme.md +0 -0
- /package/{ts → src}/type-guard/readme.md +0 -0
- /package/{ts → src}/union/union_to_intersection.ts +0 -0
- /package/{ts → src}/union_keys.ts +0 -0
- /package/{ts → src}/unpartial.ts +0 -0
- /package/{ts → src}/utils/Widen.ts +0 -0
- /package/{ts → src}/utils/as.ts +0 -0
- /package/{ts → src}/utils/inspect.ts +0 -0
package/readme.md
CHANGED
|
@@ -108,8 +108,9 @@ Each tag has an associated icon:
|
|
|
108
108
|
- 🩳 *shortcut*: Shortcut or convenient types
|
|
109
109
|
- 🧪 *testing*: the type or function are designed for test
|
|
110
110
|
- ⚗️ *transform*: these types transforms the input to another category
|
|
111
|
+
- 🧰 *type util*: types for building types
|
|
111
112
|
- 🦴 *utilities*: provide various functionalities
|
|
112
|
-
- 🎭 *
|
|
113
|
+
- 🎭 *predicate*: a.k.a. *predicate* or *logical*. These types perform some kind of test. If the input passes the test, it returns `true` or `false`
|
|
113
114
|
|
|
114
115
|
## Assertion Function
|
|
115
116
|
|
|
@@ -124,10 +125,10 @@ so that that type of the value can be narrowed down.
|
|
|
124
125
|
|
|
125
126
|
### assertType
|
|
126
127
|
|
|
127
|
-
[`assertType`](./
|
|
128
|
+
[`assertType`](./src/assertion/assert_type.ts) provides a generic assertion function,
|
|
128
129
|
as well as many assertion functions for builtin types.
|
|
129
130
|
|
|
130
|
-
> [`assertType<T>(subject)`](./
|
|
131
|
+
> [`assertType<T>(subject)`](./src/assertion/readme.md#asserttype)
|
|
131
132
|
|
|
132
133
|
💀 deprecated. Use `assertType.as()` instead.
|
|
133
134
|
|
|
@@ -148,90 +149,90 @@ assertType<boolean>(s, s => typeof s === 'boolean')
|
|
|
148
149
|
|
|
149
150
|
The message beautification is provided by [`tersify`](https://github.com/unional/tersify).
|
|
150
151
|
|
|
151
|
-
> [`assertType.isUndefined()`](./
|
|
152
|
+
> [`assertType.isUndefined()`](./src/assertion/readme.md#asserttype)
|
|
152
153
|
|
|
153
154
|
🚦`assertion`: assert the `subject` is `undefined`.
|
|
154
155
|
|
|
155
|
-
> [`assertType.noUndefined()`](./
|
|
156
|
+
> [`assertType.noUndefined()`](./src/assertion/readme.md#asserttype)
|
|
156
157
|
|
|
157
158
|
🚦`assertion`: assert the `subject` is not `undefined`.
|
|
158
159
|
|
|
159
|
-
> [`assertType.isNull()`](./
|
|
160
|
+
> [`assertType.isNull()`](./src/assertion/readme.md#asserttype)
|
|
160
161
|
|
|
161
162
|
🚦`assertion`: assert the `subject` is `null`.
|
|
162
163
|
|
|
163
|
-
> [`assertType.noNull()`](./
|
|
164
|
+
> [`assertType.noNull()`](./src/assertion/readme.md#asserttype)
|
|
164
165
|
|
|
165
166
|
🚦`assertion`: assert the `subject` is not `null`.
|
|
166
167
|
|
|
167
|
-
> [`assertType.isNumber()`](./
|
|
168
|
+
> [`assertType.isNumber()`](./src/assertion/readme.md#asserttype)
|
|
168
169
|
|
|
169
170
|
🚦`assertion`: assert the `subject` is `number`.
|
|
170
171
|
|
|
171
|
-
> [`assertType.noNumber()`](./
|
|
172
|
+
> [`assertType.noNumber()`](./src/assertion/readme.md#asserttype)
|
|
172
173
|
|
|
173
174
|
🚦`assertion`: assert the `subject` is not `number`.
|
|
174
175
|
|
|
175
|
-
> [`assertType.isBoolean()`](./
|
|
176
|
+
> [`assertType.isBoolean()`](./src/assertion/readme.md#asserttype)
|
|
176
177
|
|
|
177
178
|
🚦`assertion`: assert the `subject` is `boolean`.
|
|
178
179
|
|
|
179
|
-
> [`assertType.noBoolean()`](./
|
|
180
|
+
> [`assertType.noBoolean()`](./src/assertion/readme.md#asserttype)
|
|
180
181
|
|
|
181
182
|
🚦`assertion`: assert the `subject` is not `boolean`.
|
|
182
183
|
|
|
183
|
-
> [`assertType.isTrue()`](./
|
|
184
|
+
> [`assertType.isTrue()`](./src/assertion/readme.md#asserttype)
|
|
184
185
|
|
|
185
186
|
🚦`assertion`: assert the `subject` is `true`.
|
|
186
187
|
|
|
187
|
-
> [`assertType.noTrue()`](./
|
|
188
|
+
> [`assertType.noTrue()`](./src/assertion/readme.md#asserttype)
|
|
188
189
|
|
|
189
190
|
🚦`assertion`: assert the `subject` is not `true`.
|
|
190
191
|
|
|
191
|
-
> [`assertType.isFalse()`](./
|
|
192
|
+
> [`assertType.isFalse()`](./src/assertion/readme.md#asserttype)
|
|
192
193
|
|
|
193
194
|
🚦`assertion`: assert the `subject` is `false`.
|
|
194
195
|
|
|
195
|
-
> [`assertType.noFalse()`](./
|
|
196
|
+
> [`assertType.noFalse()`](./src/assertion/readme.md#asserttype)
|
|
196
197
|
|
|
197
198
|
🚦`assertion`: assert the `subject` is not `false`.
|
|
198
199
|
|
|
199
|
-
> [`assertType.isString()`](./
|
|
200
|
+
> [`assertType.isString()`](./src/assertion/readme.md#asserttype)
|
|
200
201
|
|
|
201
202
|
🚦`assertion`: assert the `subject` is `string`.
|
|
202
203
|
|
|
203
|
-
> [`assertType.noString()`](./
|
|
204
|
+
> [`assertType.noString()`](./src/assertion/readme.md#asserttype)
|
|
204
205
|
|
|
205
206
|
🚦`assertion`: assert the `subject` is not `string`.
|
|
206
207
|
|
|
207
|
-
> [`assertType.isFunction()`](./
|
|
208
|
+
> [`assertType.isFunction()`](./src/assertion/readme.md#asserttype)
|
|
208
209
|
|
|
209
210
|
🚦`assertion`: assert the `subject` is `function`.
|
|
210
211
|
|
|
211
|
-
> [`assertType.noFunction()`](./
|
|
212
|
+
> [`assertType.noFunction()`](./src/assertion/readme.md#asserttype)
|
|
212
213
|
|
|
213
214
|
🚦`assertion`: assert the `subject` is not `function`.
|
|
214
215
|
|
|
215
|
-
> [`assertType.isError()`](./
|
|
216
|
+
> [`assertType.isError()`](./src/assertion/readme.md#asserttype)
|
|
216
217
|
|
|
217
218
|
🚦`assertion`: assert the `subject` is an `Error`.
|
|
218
219
|
|
|
219
|
-
> [`assertType.noError()`](./
|
|
220
|
+
> [`assertType.noError()`](./src/assertion/readme.md#asserttype)
|
|
220
221
|
|
|
221
222
|
🚦`assertion`: assert the `subject` is not an `Error`.
|
|
222
223
|
|
|
223
|
-
> [`assertType.isConstructor()`](./
|
|
224
|
+
> [`assertType.isConstructor()`](./src/assertion/readme.md#asserttype)
|
|
224
225
|
|
|
225
226
|
💀 deprecated. It does not work in all cases.
|
|
226
227
|
|
|
227
228
|
It passes for function that can be called with `new`.
|
|
228
229
|
If the subject is an arrow function, it can still return true after compilation.
|
|
229
230
|
|
|
230
|
-
> [`assertType.isNever()`](./
|
|
231
|
+
> [`assertType.isNever()`](./src/assertion/readme.md#asserttype)
|
|
231
232
|
|
|
232
233
|
🚦`assertion`: assert the `subject` is `never`.
|
|
233
234
|
|
|
234
|
-
> [`assertType.custom()`](./
|
|
235
|
+
> [`assertType.custom()`](./src/assertion/readme.md#asserttype)
|
|
235
236
|
|
|
236
237
|
🚦`assertion`: creates a custom assertion function.
|
|
237
238
|
|
|
@@ -239,7 +240,7 @@ Using it to create a custom assertion function that provides better error messag
|
|
|
239
240
|
|
|
240
241
|
The message beautification is provided by [`tersify`](https://github.com/unional/tersify).
|
|
241
242
|
|
|
242
|
-
> [`assertType.as<T>()`](./
|
|
243
|
+
> [`assertType.as<T>()`](./src/assertion/readme.md#asserttype)
|
|
243
244
|
|
|
244
245
|
🚦`assertion`: assert the `subject` as `T` without validator.
|
|
245
246
|
|
|
@@ -249,23 +250,23 @@ This works similar to manual assertion `;(subject as T)`
|
|
|
249
250
|
|
|
250
251
|
[User-defined type guard functions][type_guard] is a function which its return type is specified as `x is T`.
|
|
251
252
|
|
|
252
|
-
> [`isType()`](./
|
|
253
|
+
> [`isType()`](./src/type-guard/readme.md#istype)
|
|
253
254
|
|
|
254
255
|
🛡️ `guard`: a generic type guard function
|
|
255
256
|
|
|
256
|
-
> [`isType.t()`](./
|
|
257
|
+
> [`isType.t()`](./src/type-guard/readme.md#istype)
|
|
257
258
|
|
|
258
259
|
💀 `deprecated`: use `testType.true()` instead.
|
|
259
260
|
|
|
260
|
-
> [`isType.f()`](./
|
|
261
|
+
> [`isType.f()`](./src/type-guard/readme.md#istype)
|
|
261
262
|
|
|
262
263
|
💀 `deprecated`: use `testType.false()` instead.
|
|
263
264
|
|
|
264
|
-
> [`isType.never()`](./
|
|
265
|
+
> [`isType.never()`](./src/type-guard/readme.md#istype)
|
|
265
266
|
|
|
266
267
|
💀 `deprecated`: use `testType.never()` instead.
|
|
267
268
|
|
|
268
|
-
> [`isType.equal()`](./
|
|
269
|
+
> [`isType.equal()`](./src/type-guard/readme.md#istype)
|
|
269
270
|
|
|
270
271
|
💀 `deprecated`: use `testType.equal()` instead.
|
|
271
272
|
|
|
@@ -364,137 +365,137 @@ Some types will have more checks, such as `boolean` has `StrictBooleanType<T>`,
|
|
|
364
365
|
|
|
365
366
|
You can learn more in their respective sections:
|
|
366
367
|
|
|
367
|
-
- [any](./
|
|
368
|
-
- [array](./
|
|
369
|
-
- [bigint](./
|
|
370
|
-
- [boolean](./
|
|
371
|
-
- [function](./
|
|
372
|
-
- [never](./
|
|
373
|
-
- [null](./
|
|
374
|
-
- [number](./
|
|
375
|
-
- [object](./
|
|
376
|
-
- [string](./
|
|
377
|
-
- [symbol](./
|
|
378
|
-
- [tuple](./
|
|
379
|
-
- [undefined](./
|
|
380
|
-
- [unknown](./
|
|
381
|
-
- [void](./
|
|
382
|
-
- [mix types](./
|
|
383
|
-
|
|
384
|
-
### [any](./
|
|
385
|
-
|
|
386
|
-
- [`AnyType`](./
|
|
387
|
-
- [`IsAny`](./
|
|
388
|
-
- [`NotAnyType`](./
|
|
389
|
-
- [`IsNotAny`](./
|
|
390
|
-
- [`AnyOrNeverType`](./
|
|
391
|
-
- [`IsAnyOrNever`](./
|
|
392
|
-
|
|
393
|
-
### [Array](./
|
|
394
|
-
|
|
395
|
-
- 🌪️[`ArrayType`](./
|
|
396
|
-
- 🎭[`IsArray`](./
|
|
397
|
-
- 🌪️[`NotArrayType`](./
|
|
398
|
-
- 🎭[`IsNotArrayType`](./
|
|
399
|
-
- 🦴[`At`](./
|
|
400
|
-
- 🦴💀[`Concat`](./
|
|
401
|
-
- 🦴🔢[`FindFirst`](./
|
|
402
|
-
- [`FindLast`](./
|
|
403
|
-
- [`Some`](./
|
|
404
|
-
- ⚗️[`Filter`](./
|
|
405
|
-
- ⚗️👽[`KeepMatch`](./
|
|
406
|
-
- 🦴🔢[`Head`](./
|
|
407
|
-
- [`IntersectOfProps`](./
|
|
408
|
-
- [`MapToProp`](./
|
|
409
|
-
- 🦴🔢[`Last`](./
|
|
410
|
-
- [`literalArray`](./
|
|
411
|
-
- [`PadStart`](./
|
|
412
|
-
- [`reduceWhile`](./
|
|
413
|
-
- [`Reverse`](./
|
|
414
|
-
- [`PropUnion`](./
|
|
415
|
-
- [`UnionOfProps`](./
|
|
416
|
-
- [`UnionOfValues`](./
|
|
417
|
-
- [`ArrayPlus.At`](./
|
|
418
|
-
- [`ArrayPlus.Concat`](./
|
|
419
|
-
- [`ArrayPlus.Entries`](./
|
|
420
|
-
- 🦴🔢[`ArrayPlus.Find`](./
|
|
421
|
-
- [`ArrayPlus.FindLast`](./
|
|
422
|
-
- [`ArrayPlus.Reverse`](./
|
|
423
|
-
- [`ArrayPlus.SplitAt`](./
|
|
424
|
-
- [`ArrayPlus.Some`](./
|
|
425
|
-
|
|
426
|
-
### [union](./
|
|
427
|
-
|
|
428
|
-
- [`IsUnion`](./
|
|
429
|
-
- [`UnionType`](./
|
|
368
|
+
- [any](./src/any/readme.md)
|
|
369
|
+
- [array](./src/array/readme.md)
|
|
370
|
+
- [bigint](./src/bigint/readme.md)
|
|
371
|
+
- [boolean](./src/boolean/readme.md)
|
|
372
|
+
- [function](./src/function/readme.md)
|
|
373
|
+
- [never](./src/never/readme.md)
|
|
374
|
+
- [null](./src/null/readme.md)
|
|
375
|
+
- [number](./src/number/readme.md)
|
|
376
|
+
- [object](./src/object/readme.md)
|
|
377
|
+
- [string](./src/string/readme.md)
|
|
378
|
+
- [symbol](./src/symbol/readme.md)
|
|
379
|
+
- [tuple](./src/tuple/readme.md)
|
|
380
|
+
- [undefined](./src/undefined/readme.md)
|
|
381
|
+
- [unknown](./src/unknown/readme.md)
|
|
382
|
+
- [void](./src/void/readme.md)
|
|
383
|
+
- [mix types](./src/mix-types/readme.md)
|
|
384
|
+
|
|
385
|
+
### [any](./src/any/readme.md)
|
|
386
|
+
|
|
387
|
+
- [`AnyType`](./src/any/readme.md#anytype)
|
|
388
|
+
- [`IsAny`](./src/any/readme.md#isany)
|
|
389
|
+
- [`NotAnyType`](./src/any/readme.md#notanytype)
|
|
390
|
+
- [`IsNotAny`](./src/any/readme.md#isnotany)
|
|
391
|
+
- [`AnyOrNeverType`](./src/mix_types/readme.md#anyornevertype)
|
|
392
|
+
- [`IsAnyOrNever`](./src/mix_types/readme.md#isanyornever)
|
|
393
|
+
|
|
394
|
+
### [Array](./src/array/readme.md)
|
|
395
|
+
|
|
396
|
+
- 🌪️[`ArrayType`](./src/array/readme.md#arraytype): Filter `T` to ensure it is an array, excluding tuple.
|
|
397
|
+
- 🎭[`IsArray`](./src/array/readme.md#isarray): Validate that `T` is an array, excluding tuple.
|
|
398
|
+
- 🌪️[`NotArrayType`](./src/array/readme.md#notarraytype): Filter `T` to ensure it is not an array, excluding tuple.
|
|
399
|
+
- 🎭[`IsNotArrayType`](./src/array/readme.md#isnotarraytype): Validate that `T` is not an array, excluding tuple.
|
|
400
|
+
- 🦴[`At`](./src/array/readme.md#at): Gets the type of the array or tuple at positive or negative index `N`.
|
|
401
|
+
- 🦴💀[`Concat`](./src/array/readme.md#concat): Concats two arrays or tuples.
|
|
402
|
+
- 🦴🔢[`FindFirst`](./src/array/readme.md#findfirst): Find the first type in the array or tuple `A` that matches `Criteria`.
|
|
403
|
+
- [`FindLast`](./src/array/readme.md#findlast)
|
|
404
|
+
- [`Some`](./src/array/readme.md#some)
|
|
405
|
+
- ⚗️[`Filter`](./src/array/readme.md#filter): Filter the array or tuple `A`, keeping entries satisfying `Criteria`.
|
|
406
|
+
- ⚗️👽[`KeepMatch`](./src/array/readme.md#keepmatch): Keeps entries satisfying `Criteria` in array or tuple `A`.
|
|
407
|
+
- 🦴🔢[`Head`](./src/array/readme.md#head): Gets the first entry in the tuple or the type of array `T`.
|
|
408
|
+
- [`IntersectOfProps`](./src/array/readme.md#intersectofprops)
|
|
409
|
+
- [`MapToProp`](./src/array/readme.md#maptoprop)
|
|
410
|
+
- 🦴🔢[`Last`](./src/array/readme.md#last): Gets the last entry in the tuple or the type of array `T`.
|
|
411
|
+
- [`literalArray`](./src/array/readme.md#literalarray)
|
|
412
|
+
- [`PadStart`](./src/array/readme.md#padstart)
|
|
413
|
+
- [`reduceWhile`](./src/array/readme.md#reducewhile)
|
|
414
|
+
- [`Reverse`](./src/array/readme.md#reverse)
|
|
415
|
+
- [`PropUnion`](./src/array/readme.md#propunion)
|
|
416
|
+
- [`UnionOfProps`](./src/array/readme.md#unionofprops)
|
|
417
|
+
- [`UnionOfValues`](./src/array/readme.md#unionofvalues)
|
|
418
|
+
- [`ArrayPlus.At`](./src/array/readme.md#arrayplusat)
|
|
419
|
+
- [`ArrayPlus.Concat`](./src/array/readme.md#arrayplusconcat)
|
|
420
|
+
- [`ArrayPlus.Entries`](./src/array/readme.md#arrayplusentries)
|
|
421
|
+
- 🦴🔢[`ArrayPlus.Find`](./src/array/readme.md#arrayplusfind): Finds the type in array `A` that matches `Criteria`.
|
|
422
|
+
- [`ArrayPlus.FindLast`](./src/array/readme.md#arrayplusfindlast)
|
|
423
|
+
- [`ArrayPlus.Reverse`](./src/array/readme.md#arrayplusreverse)
|
|
424
|
+
- [`ArrayPlus.SplitAt`](./src/array/readme.md#arrayplussplitat)
|
|
425
|
+
- [`ArrayPlus.Some`](./src/array/readme.md#arrayplussome)
|
|
426
|
+
|
|
427
|
+
### [union](./src/union/readme.md)
|
|
428
|
+
|
|
429
|
+
- [`IsUnion`](./src/union//readme.md#isunion)
|
|
430
|
+
- [`UnionType`](./src/union/readme.md#uniontype)
|
|
430
431
|
|
|
431
432
|
### bigint
|
|
432
433
|
|
|
433
|
-
> [`BigintType<T, Then = T, Else = never>`](./
|
|
434
|
+
> [`BigintType<T, Then = T, Else = never>`](./src/bigint/bigint_type.ts#L15)
|
|
434
435
|
|
|
435
436
|
↪️ `parse`: if `T` is `bigint` or bigint literal.
|
|
436
437
|
|
|
437
|
-
> [`IsBigint<T, Then = true, Else = false>`](./
|
|
438
|
+
> [`IsBigint<T, Then = true, Else = false>`](./src/bigint/bigint_type.ts#L33)
|
|
438
439
|
|
|
439
440
|
⭕ `predicate`: if `T` is `bigint` or bigint literal.
|
|
440
441
|
|
|
441
|
-
> [`NotBigintType<T, Then = T, Else = never>`](./
|
|
442
|
+
> [`NotBigintType<T, Then = T, Else = never>`](./src/bigint/bigint_type.ts#L47)
|
|
442
443
|
|
|
443
444
|
↪️ `parse`: if `T` is not `bigint` or bigint literal.
|
|
444
445
|
|
|
445
|
-
> [`IsNotBigInt<T, Then = true, Else = false>`](./
|
|
446
|
+
> [`IsNotBigInt<T, Then = true, Else = false>`](./src/bigint/bigint_type.ts#L61)
|
|
446
447
|
|
|
447
448
|
⭕ `predicate`: if `T` is not `bigint` or bigint literal.
|
|
448
449
|
|
|
449
|
-
> [`StrictBigintType<T, Then = T, Else = never>`](./
|
|
450
|
+
> [`StrictBigintType<T, Then = T, Else = never>`](./src/bigint/strict_bigint_type.ts#L15)
|
|
450
451
|
|
|
451
452
|
↪️ `parse`: if `T` is exactly `bigint`.
|
|
452
453
|
|
|
453
|
-
> [`IsStrictBigint<T, Then = true, Else = false>`](./
|
|
454
|
+
> [`IsStrictBigint<T, Then = true, Else = false>`](./src/bigint/strict_bigint_type.ts#L33)
|
|
454
455
|
|
|
455
456
|
⭕ `predicate`: if `T` is exactly `bigint`.
|
|
456
457
|
|
|
457
|
-
> [`NotStrictBigintType<T, Then = T, Else = never>`](./
|
|
458
|
+
> [`NotStrictBigintType<T, Then = T, Else = never>`](./src/bigint/strict_bigint_type.ts#L47)
|
|
458
459
|
|
|
459
460
|
↪️ `parse`: if `T` is not exactly `bigint`.
|
|
460
461
|
|
|
461
|
-
> [`IsNotStrictBigint<T, Then = true, Else = false>`](./
|
|
462
|
+
> [`IsNotStrictBigint<T, Then = true, Else = false>`](./src/bigint/strict_bigint_type.ts#L61)
|
|
462
463
|
|
|
463
464
|
⭕ `predicate`: if `T` is not exactly `bigint`.
|
|
464
465
|
|
|
465
466
|
### boolean
|
|
466
467
|
|
|
467
|
-
> [`BooleanType<T>`](./
|
|
468
|
+
> [`BooleanType<T>`](./src/boolean/readme.md#type-checking)
|
|
468
469
|
|
|
469
470
|
↪️ `parse`: `T === boolean`.
|
|
470
471
|
|
|
471
|
-
> [`IsBoolean<T>`](./
|
|
472
|
+
> [`IsBoolean<T>`](./src/boolean/readme.md#type-checking)
|
|
472
473
|
|
|
473
474
|
⭕ `predicate`: `T === boolean`
|
|
474
475
|
|
|
475
|
-
> [`NotBooleanType<T>`](./
|
|
476
|
+
> [`NotBooleanType<T>`](./src/boolean/readme.md#type-checking)
|
|
476
477
|
|
|
477
478
|
↪️ `parse`: `T !== boolean`.
|
|
478
479
|
|
|
479
|
-
> [`IsNotBoolean<T>`](./
|
|
480
|
+
> [`IsNotBoolean<T>`](./src/boolean/readme.md#type-checking)
|
|
480
481
|
|
|
481
482
|
⭕ `predicate`: `T !== boolean`
|
|
482
483
|
|
|
483
484
|
### function
|
|
484
485
|
|
|
485
|
-
> [`FunctionType<T>`](./
|
|
486
|
+
> [`FunctionType<T>`](./src/function/readme.md#type-checking)
|
|
486
487
|
|
|
487
488
|
↪️ `parse`: `T === function`.
|
|
488
489
|
|
|
489
|
-
> [`IsFunction<T>`](./
|
|
490
|
+
> [`IsFunction<T>`](./src/function/readme.md#type-checking)
|
|
490
491
|
|
|
491
492
|
⭕ `predicate`: `T === function`
|
|
492
493
|
|
|
493
|
-
> [`NotFunctionType<T>`](./
|
|
494
|
+
> [`NotFunctionType<T>`](./src/function/readme.md#type-checking)
|
|
494
495
|
|
|
495
496
|
↪️ `parse`: `T !== function`.
|
|
496
497
|
|
|
497
|
-
> [`IsNotFunction<T>`](./
|
|
498
|
+
> [`IsNotFunction<T>`](./src/function/readme.md#type-checking)
|
|
498
499
|
|
|
499
500
|
⭕ `predicate`: `T !== function`
|
|
500
501
|
|
|
@@ -516,77 +517,77 @@ You can learn more in their respective sections:
|
|
|
516
517
|
|
|
517
518
|
### never
|
|
518
519
|
|
|
519
|
-
> [`NeverType<T>`](./
|
|
520
|
+
> [`NeverType<T>`](./src/never/readme.md#type-checking)
|
|
520
521
|
|
|
521
522
|
↪️ `parse`: `T === never`.
|
|
522
523
|
|
|
523
|
-
> [`IsNever<T>`](./
|
|
524
|
+
> [`IsNever<T>`](./src/never/readme.md#type-checking)
|
|
524
525
|
|
|
525
526
|
⭕ `predicate`: `T === never`
|
|
526
527
|
|
|
527
|
-
> [`NotNeverType<T>`](./
|
|
528
|
+
> [`NotNeverType<T>`](./src/never/readme.md#type-checking)
|
|
528
529
|
|
|
529
530
|
↪️ `parse`: `T !== never`.
|
|
530
531
|
|
|
531
|
-
> [`IsNotNever<T>`](./
|
|
532
|
+
> [`IsNotNever<T>`](./src/never/readme.md#type-checking)
|
|
532
533
|
|
|
533
534
|
⭕ `predicate`: `T !== never`
|
|
534
535
|
|
|
535
536
|
### null
|
|
536
537
|
|
|
537
|
-
> [`NullType<T>`](./
|
|
538
|
+
> [`NullType<T>`](./src/null/readme.md#type-checking)
|
|
538
539
|
|
|
539
540
|
↪️ `parse`: `T === null`.
|
|
540
541
|
|
|
541
|
-
> [`IsNull<T>`](./
|
|
542
|
+
> [`IsNull<T>`](./src/null/readme.md#type-checking)
|
|
542
543
|
|
|
543
544
|
⭕ `predicate`: `T === null`
|
|
544
545
|
|
|
545
|
-
> [`NotNullType<T>`](./
|
|
546
|
+
> [`NotNullType<T>`](./src/null/readme.md#type-checking)
|
|
546
547
|
|
|
547
548
|
↪️ `parse`: `T !== null`.
|
|
548
549
|
|
|
549
|
-
> [`IsNotNull<T>`](./
|
|
550
|
+
> [`IsNotNull<T>`](./src/null/readme.md#type-checking)
|
|
550
551
|
|
|
551
552
|
⭕ `predicate`: `T !== null`
|
|
552
553
|
|
|
553
554
|
### number
|
|
554
555
|
|
|
555
|
-
> [`NumberType<T, Then = N, Else = never>`](./
|
|
556
|
+
> [`NumberType<T, Then = N, Else = never>`](./src/number/number_type.ts#L14)
|
|
556
557
|
|
|
557
558
|
↪️ `parse`: is the type `T` `number`.
|
|
558
559
|
|
|
559
|
-
> [`IsNumber<T, Then = true, Else = false>`](./
|
|
560
|
+
> [`IsNumber<T, Then = true, Else = false>`](./src/number/number_type.ts#L27)
|
|
560
561
|
|
|
561
562
|
⭕ `predicate`: is the type `T` `number`.
|
|
562
563
|
|
|
563
|
-
> [`NotNumberType<T, Then = T, Else = never>`](./
|
|
564
|
+
> [`NotNumberType<T, Then = T, Else = never>`](./src/number/number_type.ts#L40)
|
|
564
565
|
|
|
565
566
|
↪️ `parse`: is the type `T` not `number`.
|
|
566
567
|
|
|
567
|
-
> [`IsNotNumber<T, Then = true, Else = false>`](./
|
|
568
|
+
> [`IsNotNumber<T, Then = true, Else = false>`](./src/number/number_type.ts#L53)
|
|
568
569
|
|
|
569
570
|
⭕ `predicate`: is the type `T` not `number`.
|
|
570
571
|
|
|
571
|
-
> [`StrictNumberType<T, Then = N, Else = never>`](./
|
|
572
|
+
> [`StrictNumberType<T, Then = N, Else = never>`](./src/number/strict_number_type.ts#L19)
|
|
572
573
|
|
|
573
574
|
↪️ `parse`: is the type `T` exactly `number`.
|
|
574
575
|
|
|
575
|
-
> [`IsStrictNumber<T, Then = true, Else = false>`](./
|
|
576
|
+
> [`IsStrictNumber<T, Then = true, Else = false>`](./src/number/strict_number_type.ts#L41)
|
|
576
577
|
|
|
577
578
|
⭕ `predicate`: is the type `T` exactly `number`.
|
|
578
579
|
|
|
579
|
-
> [`NotStrictNumberType<T, Then = T, Else = never>`](./
|
|
580
|
+
> [`NotStrictNumberType<T, Then = T, Else = never>`](./src/number/strict_number_type.ts#L55)
|
|
580
581
|
|
|
581
582
|
↪️ `parse`: is the type `T` not exactly `number`.
|
|
582
583
|
|
|
583
|
-
> [`IsNotStrictNumber<T, Then = true, Else = false>`](./
|
|
584
|
+
> [`IsNotStrictNumber<T, Then = true, Else = false>`](./src/number/strict_number_type.ts#L69)
|
|
584
585
|
|
|
585
586
|
⭕ `predicate`: is the type `T` not exactly `number`.
|
|
586
587
|
|
|
587
588
|
### numeric
|
|
588
589
|
|
|
589
|
-
> [`Numeric`](./
|
|
590
|
+
> [`Numeric`](./src/numeric/numeric_type.ts#L4)
|
|
590
591
|
|
|
591
592
|
📘 `definition`: `number | bigint`.
|
|
592
593
|
|
|
@@ -594,55 +595,55 @@ You can learn more in their respective sections:
|
|
|
594
595
|
|
|
595
596
|
📘 `definition`: `0 | 0n`
|
|
596
597
|
|
|
597
|
-
> [`Integer<N, Then = N, Else = never>`](./
|
|
598
|
+
> [`Integer<N, Then = N, Else = never>`](./src/numeric/integer.ts#L15)
|
|
598
599
|
|
|
599
600
|
↪️ `parse`: is integer.
|
|
600
601
|
|
|
601
|
-
> [`IsInteger<N, Then = true, Else = false>`](./
|
|
602
|
+
> [`IsInteger<N, Then = true, Else = false>`](./src/numeric/integer.ts#L32)
|
|
602
603
|
|
|
603
604
|
⭕ `predicate`: is integer.
|
|
604
605
|
|
|
605
|
-
> [`NotInteger<N, Then = N, Else = never>`](./
|
|
606
|
+
> [`NotInteger<N, Then = N, Else = never>`](./src/numeric/integer.ts#L45)
|
|
606
607
|
|
|
607
608
|
↪️ `parse`: is not integer.
|
|
608
609
|
|
|
609
|
-
> [`IsNotInteger<N, Then = true, Else = false>`](./
|
|
610
|
+
> [`IsNotInteger<N, Then = true, Else = false>`](./src/numeric/integer.ts#L60)
|
|
610
611
|
|
|
611
612
|
⭕ `predicate`: is not integer.
|
|
612
613
|
|
|
613
|
-
> [`IsWhole<N, Then = true, Else = false>`](./
|
|
614
|
+
> [`IsWhole<N, Then = true, Else = false>`](./src/numeric/integer.ts#L75)
|
|
614
615
|
|
|
615
616
|
💀⭕ `deprecated`, `predicate`: is integer. Use `IsInteger` instead.
|
|
616
617
|
|
|
617
|
-
> [`Negative<N, Then = N, Else = never>`](./
|
|
618
|
+
> [`Negative<N, Then = N, Else = never>`](./src/numeric/negative.ts#L19)
|
|
618
619
|
|
|
619
620
|
↪️ `parse`: is negative.
|
|
620
621
|
|
|
621
|
-
> [`IsNegative<N, Then = true, Else = false>`](./
|
|
622
|
+
> [`IsNegative<N, Then = true, Else = false>`](./src/numeric/negative.ts#L53)
|
|
622
623
|
|
|
623
624
|
⭕ `predicate`: is negative.
|
|
624
625
|
|
|
625
|
-
> [`NonNegative<N, Then = N, Else = never>`](./
|
|
626
|
+
> [`NonNegative<N, Then = N, Else = never>`](./src/numeric/negative.ts#L69)
|
|
626
627
|
|
|
627
628
|
↪️ `parse`: is not negative.
|
|
628
629
|
|
|
629
|
-
> [`IsNonNegative<N, Then = N, Else = never>`](./
|
|
630
|
+
> [`IsNonNegative<N, Then = N, Else = never>`](./src/numeric/negative.ts#L101)
|
|
630
631
|
|
|
631
632
|
⭕ `predicate`: is not negative.
|
|
632
633
|
|
|
633
|
-
> [`Positive<N, Then = N, Else = never>`](./
|
|
634
|
+
> [`Positive<N, Then = N, Else = never>`](./src/numeric/positive.ts#15)
|
|
634
635
|
|
|
635
636
|
↪️ `parse`: is positive.
|
|
636
637
|
|
|
637
|
-
> [`IsPositive<N, Then = true, Else = false>`](./
|
|
638
|
+
> [`IsPositive<N, Then = true, Else = false>`](./src/numeric/positive.ts#L36)
|
|
638
639
|
|
|
639
640
|
⭕ `predicate`: is positive.
|
|
640
641
|
|
|
641
|
-
> [`NotPositive<N, Then = N, Else = never>`](./
|
|
642
|
+
> [`NotPositive<N, Then = N, Else = never>`](./src/numeric/positive.ts#48)
|
|
642
643
|
|
|
643
644
|
↪️ `parse`: is not positive.
|
|
644
645
|
|
|
645
|
-
> [`IsNotPositive<N, Then = true, Else = false>`](./
|
|
646
|
+
> [`IsNotPositive<N, Then = true, Else = false>`](./src/numeric/positive.ts#L60)
|
|
646
647
|
|
|
647
648
|
⭕ `predicate`: is not positive.
|
|
648
649
|
|
|
@@ -768,14 +769,14 @@ You can learn more in their respective sections:
|
|
|
768
769
|
|
|
769
770
|
### tuple
|
|
770
771
|
|
|
771
|
-
- 🌪️ [`TupleType`](./
|
|
772
|
-
- 🎭 [`IsTuple`](./
|
|
773
|
-
- 🌪️ [`NotTupleType`](./
|
|
774
|
-
- 🎭 [`IsNotTuple`](./
|
|
775
|
-
- ⚗️🔢[`CommonPropKeys`](./
|
|
772
|
+
- 🌪️ [`TupleType`](./src/tuple/readme.md#tupletype): Filter `T` to ensure it is a tuple, excluding array.
|
|
773
|
+
- 🎭 [`IsTuple`](./src/tuple/readme.md#istuple): Validate that `T` is a tuple, excluding array.
|
|
774
|
+
- 🌪️ [`NotTupleType`](./src/tuple/readme.md#nottupletype): Filter `T` to ensure it is not an tuple, excluding array.
|
|
775
|
+
- 🎭 [`IsNotTuple`](./src/tuple/readme.md#isnottupletype): Validate that `T` is not an tuple, excluding array.
|
|
776
|
+
- ⚗️🔢[`CommonPropKeys`](./src/tuple/readme.md#commonpropkeys): Gets the common property keys of the elements in tuple `T`.
|
|
776
777
|
- ⚗️💀`CommonKeys`: Deprecated. Please use `CommonPropKeys` instead.
|
|
777
|
-
- ⚗️🔢[`DropFirst`](./
|
|
778
|
-
- ⚗️🔢[`DropLast`](./
|
|
778
|
+
- ⚗️🔢[`DropFirst`](./src/tuple/readme.md#dropfirst): Drops the first entry in the tuple`T`.
|
|
779
|
+
- ⚗️🔢[`DropLast`](./src/tuple/readme.md#droplast): Drops the last entry in the tuple`T`.
|
|
779
780
|
|
|
780
781
|
> `CreateTuple<L, T>`
|
|
781
782
|
|
|
@@ -795,55 +796,55 @@ You can learn more in their respective sections:
|
|
|
795
796
|
|
|
796
797
|
### undefined
|
|
797
798
|
|
|
798
|
-
> [`UndefinedType<T>`](./
|
|
799
|
+
> [`UndefinedType<T>`](./src/undefined/readme.md#type-checking)
|
|
799
800
|
|
|
800
801
|
↪️ `parse`: `T === undefined`.
|
|
801
802
|
|
|
802
|
-
> [`IsUndefined<T>`](./
|
|
803
|
+
> [`IsUndefined<T>`](./src/undefined/readme.md#type-checking)
|
|
803
804
|
|
|
804
805
|
⭕ `predicate`: `T === undefined`
|
|
805
806
|
|
|
806
|
-
> [`NotUndefinedType<T>`](./
|
|
807
|
+
> [`NotUndefinedType<T>`](./src/undefined/readme.md#type-checking)
|
|
807
808
|
|
|
808
809
|
↪️ `parse`: `T !== undefined`.
|
|
809
810
|
|
|
810
|
-
> [`IsNotUndefined<T>`](./
|
|
811
|
+
> [`IsNotUndefined<T>`](./src/undefined/readme.md#type-checking)
|
|
811
812
|
|
|
812
813
|
⭕ `predicate`: `T !== undefined`
|
|
813
814
|
|
|
814
815
|
### unknown
|
|
815
816
|
|
|
816
|
-
> [`UnknownType<T>`](./
|
|
817
|
+
> [`UnknownType<T>`](./src/unknown/readme.md#type-checking)
|
|
817
818
|
|
|
818
819
|
↪️ `parse`: `T === unknown`.
|
|
819
820
|
|
|
820
|
-
> [`IsUnknown<T>`](./
|
|
821
|
+
> [`IsUnknown<T>`](./src/unknown/readme.md#type-checking)
|
|
821
822
|
|
|
822
823
|
⭕ `predicate`: `T === unknown`
|
|
823
824
|
|
|
824
|
-
> [`NotUnknownType<T>`](./
|
|
825
|
+
> [`NotUnknownType<T>`](./src/unknown/readme.md#type-checking)
|
|
825
826
|
|
|
826
827
|
↪️ `parse`: `T !== unknown`.
|
|
827
828
|
|
|
828
|
-
> [`IsNotUnknown<T>`](./
|
|
829
|
+
> [`IsNotUnknown<T>`](./src/unknown/readme.md#type-checking)
|
|
829
830
|
|
|
830
831
|
⭕ `predicate`: `T !== unknown`
|
|
831
832
|
|
|
832
833
|
### void
|
|
833
834
|
|
|
834
|
-
> [`VoidType<T>`](./
|
|
835
|
+
> [`VoidType<T>`](./src/void/readme.md#type-checking)
|
|
835
836
|
|
|
836
837
|
↪️ `parse`: `T === void`.
|
|
837
838
|
|
|
838
|
-
> [`IsVoid<T>`](./
|
|
839
|
+
> [`IsVoid<T>`](./src/void/readme.md#type-checking)
|
|
839
840
|
|
|
840
841
|
⭕ `predicate`: `T === void`
|
|
841
842
|
|
|
842
|
-
> [`NotVoidType<T>`](./
|
|
843
|
+
> [`NotVoidType<T>`](./src/void/readme.md#type-checking)
|
|
843
844
|
|
|
844
845
|
↪️ `parse`: `T !== void`.
|
|
845
846
|
|
|
846
|
-
> [`IsNotVoid<T>`](./
|
|
847
|
+
> [`IsNotVoid<T>`](./src/void/readme.md#type-checking)
|
|
847
848
|
|
|
848
849
|
⭕ `predicate`: `T !== void`
|
|
849
850
|
|
|
@@ -851,7 +852,7 @@ You can learn more in their respective sections:
|
|
|
851
852
|
|
|
852
853
|
[type-plus](./README.md) privides some testing utilities to help you test your types.
|
|
853
854
|
|
|
854
|
-
One of the key utilities is [`testType`](./
|
|
855
|
+
One of the key utilities is [`testType`](./src/testing/readme.md#testtype).
|
|
855
856
|
|
|
856
857
|
```ts
|
|
857
858
|
import { testType } from 'type-plus'
|
|
@@ -861,7 +862,7 @@ testType.equal<A, B>(true) // A is equal to B
|
|
|
861
862
|
testType.never<T>(false) // T is not `never`
|
|
862
863
|
```
|
|
863
864
|
|
|
864
|
-
You can learn more about them in the [docs](./
|
|
865
|
+
You can learn more about them in the [docs](./src/testing/readme.md).
|
|
865
866
|
|
|
866
867
|
## Constant Types
|
|
867
868
|
|