@@ -933,7 +933,7 @@ export const number: NumberPattern = numberChainable(when(isNumber));
933
933
*
934
934
* @example
935
935
* match(value)
936
- * .with(P.bigint.between(0, 10), () => '0 <= numbers <= 10')
936
+ * .with(P.bigint.between(0, 10), () => '0 <= bigints <= 10')
937
937
*/
938
938
const betweenBigInt = <
939
939
input ,
@@ -952,7 +952,7 @@ const betweenBigInt = <
952
952
*
953
953
* @example
954
954
* match(value)
955
- * .with(P.bigint.lt(10), () => 'numbers < 10')
955
+ * .with(P.bigint.lt(10), () => 'bigints < 10')
956
956
*/
957
957
const ltBigInt = < input , const max extends bigint > (
958
958
max : max
@@ -966,7 +966,7 @@ const ltBigInt = <input, const max extends bigint>(
966
966
*
967
967
* @example
968
968
* match(value)
969
- * .with(P.bigint.gt(10), () => 'numbers > 10')
969
+ * .with(P.bigint.gt(10), () => 'bigints > 10')
970
970
*/
971
971
const gtBigInt = < input , const min extends bigint > (
972
972
min : min
@@ -1077,7 +1077,7 @@ export const symbol: SymbolPattern = chainable(when(isSymbol));
1077
1077
* [Read the documentation for `P.nullish` on GitHub](https://github.com/gvergnaud/ts-pattern#nullish-wildcard)
1078
1078
*
1079
1079
* @example
1080
- * .with(P.nullish, () => 'will match on null or undefined' )
1080
+ * .with(P.nullish, (x ) => `${x} is null or undefined` )
1081
1081
*/
1082
1082
export const nullish : NullishPattern = chainable ( when ( isNullish ) ) ;
1083
1083
@@ -1087,7 +1087,7 @@ export const nullish: NullishPattern = chainable(when(isNullish));
1087
1087
* [Read the documentation for `P.nonNullable` on GitHub](https://github.com/gvergnaud/ts-pattern#nonNullable-wildcard)
1088
1088
*
1089
1089
* @example
1090
- * .with(P.nonNullable, () => 'will match on null or undefined' )
1090
+ * .with(P.nonNullable, (x ) => `${x} isn't null nor undefined` )
1091
1091
*/
1092
1092
export const nonNullable : NonNullablePattern = chainable ( when ( isNonNullable ) ) ;
1093
1093
0 commit comments