ts-pattern
Advanced tools
Comparing version 4.0.1-rc.6 to 4.0.1-rc.7
@@ -28,3 +28,2 @@ import type { Pattern, Matchable } from './Pattern'; | ||
], Union<inferredOutput, c>, inputPattern>; | ||
with<pat extends inputPattern, pred extends (value: MatchedValue<i, InvertPattern<pat>>) => unknown, c, value extends GuardValue<pred>>(pattern: pat, predicate: pred, handler: (selections: FindSelected<value, pat>, value: value) => PickReturnValue<o, c>): Match<i, o, pred extends (value: any) => value is infer narrowed ? [...patternValueTuples, [Matchable<unknown, narrowed>, value]] : patternValueTuples, Union<inferredOutput, c>, inputPattern>; | ||
with<p1 extends inputPattern, p2 extends inputPattern, c, p extends p1 | p2, value extends p extends any ? MatchedValue<i, InvertPattern<p>> : never>(p1: p1, p2: p2, handler: (value: value) => PickReturnValue<o, c>): Match<i, o, [ | ||
@@ -57,2 +56,3 @@ ...patternValueTuples, | ||
], Union<inferredOutput, c>, inputPattern>; | ||
with<pat extends inputPattern, pred extends (value: MatchedValue<i, InvertPattern<pat>>) => unknown, c, value extends GuardValue<pred>>(pattern: pat, predicate: pred, handler: (selections: FindSelected<value, pat>, value: value) => PickReturnValue<o, c>): Match<i, o, pred extends (value: any) => value is infer narrowed ? [...patternValueTuples, [Matchable<unknown, narrowed>, value]] : patternValueTuples, Union<inferredOutput, c>, inputPattern>; | ||
/** | ||
@@ -59,0 +59,0 @@ * #### Match.when |
{ | ||
"name": "ts-pattern", | ||
"version": "4.0.1-rc.6", | ||
"version": "4.0.1-rc.7", | ||
"description": " The exhaustive Pattern Matching library for TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package