ts-pattern
Advanced tools
Comparing version 2.1.1-next.0 to 2.1.1
@@ -39,3 +39,3 @@ import type { IsAny, Cast, Values, Flatten, IsUnion, Slice, Drop, Iterator, Next, IsPlainObject, Length } from './helpers'; | ||
*/ | ||
export declare type FindUnions<a, path extends PropertyKey[] = []> = Length<path> extends 3 ? [] : IsUnion<a> extends true ? [ | ||
export declare type FindUnions<a, path extends PropertyKey[] = []> = Length<path> extends 4 ? [] : IsUnion<a> extends true ? [ | ||
{ | ||
@@ -42,0 +42,0 @@ cases: a extends any ? { |
{ | ||
"name": "ts-pattern", | ||
"version": "2.1.1-next.0", | ||
"version": "2.1.1", | ||
"description": "Typescript pattern matching library", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -40,3 +40,3 @@ <h1 align="center">ts-pattern</h1> | ||
- Optional **exhaustive matching**, enforcing that you are matching every possible case with `.exhaustive()`. | ||
- **Expressive syntax**, with catch-all and type specific **wildcards**: `__`. | ||
- **Expressive API**, with catch-all and type specific **wildcards**: `__`. | ||
- Supports `when(<predicate>)` and `not(<pattern>)` patterns for complex cases. | ||
@@ -43,0 +43,0 @@ - Supports properties selection, via the `select(<name>)` function. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
56454