@kakasoo/proto-typescript
Advanced tools
Comparing version 1.27.2 to 1.27.3
@@ -14,3 +14,3 @@ import { ArrayType, Equal, NumberType } from '../types'; | ||
*/ | ||
filter<Container extends ReadonlyOrNot<any[]>, Target = any>(container: Container, predicate: ArrayType.TypePredicate<Container, Target>): Equal<Target, unknown> extends true ? boolean : Equal<Target, any> extends true ? boolean : ArrayType.Filter<Container, Target>; | ||
filter<Container extends ReadonlyOrNot<any[]>, Target = any>(container: Container, predicate: ArrayType.TypePredicate<Container, Target>): ArrayType.Filter<Container, Target>; | ||
/** | ||
@@ -17,0 +17,0 @@ * Filter `null` or `undefined` element of Array Container. |
@@ -6,4 +6,4 @@ import { NeverType } from './never.type'; | ||
export declare namespace ArrayType { | ||
export type TypePredicate<Container extends ReadonlyOrNot<any[]>, Target extends any = any> = { | ||
<Index extends number, __Target extends Target = Target>(value: ArrayType.At<Container, Index>, index?: Index, array?: Container): value is Target; | ||
export type TypePredicate<Container extends ReadonlyOrNot<any[]>, Target> = { | ||
<Index extends number, __Target extends Target = Target>(value?: ArrayType.At<Container, Index>, index?: Index, array?: Container): value is Target; | ||
}; | ||
@@ -10,0 +10,0 @@ /** |
{ | ||
"name": "@kakasoo/proto-typescript", | ||
"version": "1.27.2", | ||
"version": "1.27.3", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
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
197865