lucid-extension-sdk 0.0.310 → 0.0.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/checks.d.ts +2 -2
- package/package.json +1 -1
package/core/checks.d.ts
CHANGED
|
@@ -119,8 +119,8 @@ export declare function isArray(val: unknown): val is unknown[];
|
|
|
119
119
|
export declare function isTypedArray<T>(typeGuard: (a: unknown) => a is T): (val: unknown) => val is T[];
|
|
120
120
|
export type Tuple<T, N extends number> = N extends N ? (number extends N ? T[] : TupleOfHelper<T, N, []>) : never;
|
|
121
121
|
type TupleOfHelper<T, N extends number, R extends unknown[]> = R['length'] extends N ? R : TupleOfHelper<T, N, [T, ...R]>;
|
|
122
|
-
export declare function isExactLength<T, N extends number>(arr: T[], exactLength: N): arr is Tuple<T, N>;
|
|
123
|
-
export declare function isAtLeastLength<T, N extends number>(arr: T[], minimumLength: N): arr is [...Tuple<T, N>, ...T[]];
|
|
122
|
+
export declare function isExactLength<T, N extends number>(arr: readonly T[], exactLength: N): arr is Tuple<T, N>;
|
|
123
|
+
export declare function isAtLeastLength<T, N extends number>(arr: readonly T[], minimumLength: N): arr is [...Tuple<T, N>, ...T[]];
|
|
124
124
|
/**
|
|
125
125
|
* Returns true if the specified value is a tuple where the first element, T, passes the tGuard function
|
|
126
126
|
* and the second element, U, passes the uGuard function
|