ctx-core 4.11.0 → 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.
@@ -12,9 +12,14 @@ export {
12
12
  tup as tup_fn,
13
13
  }
14
14
  export type TupleRest<T extends unknown[]> =
15
- T['length'] extends 0 ? undefined :
16
- (((...b: T) => void) extends (a, ...b: infer I) => void ? I : [])
15
+ T['length'] extends 0
16
+ ? undefined
17
+ : (((...b:T)=>void) extends (a:unknown, ...b:infer I)=>void ? I : [])
17
18
  export type TupleFirst<T extends unknown[]> =
18
19
  T['length'] extends 0 ? undefined : T[0]
19
- export type TupleExclude<T extends unknown[], E> =
20
- [Exclude<TupleFirst<T>, E>, ...TupleExclude<TupleRest<T>, E>]
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",