ctx-core 4.11.1 → 4.11.2
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/all/tup/index.d.ts +6 -14
- package/package.json +1 -1
package/all/tup/index.d.ts
CHANGED
|
@@ -17,17 +17,9 @@ export type TupleRest<T extends unknown[]> =
|
|
|
17
17
|
: (((...b:T)=>void) extends (a:unknown, ...b:infer I)=>void ? I : [])
|
|
18
18
|
export type TupleFirst<T extends unknown[]> =
|
|
19
19
|
T['length'] extends 0 ? undefined : T[0]
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
T
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
E,
|
|
27
|
-
TupleExclude<
|
|
28
|
-
// @ts-expect-error TS2344
|
|
29
|
-
TupleRest<T>,
|
|
30
|
-
E
|
|
31
|
-
>
|
|
32
|
-
> {
|
|
33
|
-
}
|
|
20
|
+
// @ts-expect-error TS2456
|
|
21
|
+
type _TupleExclude<T extends unknown[], E> =
|
|
22
|
+
// @ts-expect-error TS2315
|
|
23
|
+
[Exclude<TupleFirst<T>, E>, ..._TupleExclude<TupleRest<T>, E>]
|
|
24
|
+
// @ts-expect-error TS2315
|
|
25
|
+
export type TupleExclude<T extends unknown[], E> = _TupleExclude<T, E>
|