ts-pattern
Advanced tools
Comparing version 5.0.0-rc.3 to 5.0.0-rc.4
@@ -20,3 +20,3 @@ import type { Override } from './Pattern.js'; | ||
currentValue | ||
]> : never : ExtractPreciseValue<ValueOf<b>, aItem> extends infer currentValue ? [currentValue] extends [never] ? never : MaybeAddReadonly<[ | ||
]> : never : ExtractPreciseValue<aItem, ValueOf<b>> extends infer currentValue ? [currentValue] extends [never] ? never : MaybeAddReadonly<[ | ||
...startOutput, | ||
@@ -23,0 +23,0 @@ ...currentValue[], |
@@ -66,3 +66,3 @@ export type ValueOf<a> = a extends readonly any[] ? a[number] : a[keyof a]; | ||
export type IsFixedSizeTuple<a extends readonly any[]> = IsLiteral<Length<a>>; | ||
export type IsTuple<a extends readonly any[]> = a extends readonly [] | readonly [any, ...any] | readonly [...any, any] ? true : false; | ||
export type IsTuple<a> = a extends readonly [] | readonly [any, ...any] | readonly [...any, any] ? true : false; | ||
export type IsStrictArray<a extends readonly any[]> = Not<IsTuple<a>>; | ||
@@ -69,0 +69,0 @@ export type IsReadonlyArray<a> = a extends readonly any[] ? a extends any[] ? false : true : false; |
{ | ||
"name": "ts-pattern", | ||
"version": "5.0.0-rc.3", | ||
"version": "5.0.0-rc.4", | ||
"description": " The exhaustive Pattern Matching library for TypeScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1486,5 +1486,7 @@ <h1 align="center">TS-Pattern</h1> | ||
content: P.string, | ||
likeCount: P.number, | ||
stars: P.number.between(1, 5).optional(), | ||
author: { | ||
name: P.string, | ||
firstName: P.string, | ||
lastName: P.string.optional(), | ||
followerCount: P.number, | ||
}, | ||
@@ -1491,0 +1493,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
471643
1612