@esportsplus/reactivity 0.16.4 → 0.16.5

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/build/types.d.ts CHANGED
@@ -15,9 +15,6 @@ interface Computed<T> {
15
15
  subsTail: Link | null;
16
16
  value: T;
17
17
  }
18
- type Infer<T> = T extends (...args: unknown[]) => Promise<infer R> ? R | undefined : T extends (...args: any[]) => infer R ? R : T extends (infer U)[] ? Infer<U>[] : T extends ReactiveObject<any> ? T : T extends Record<PropertyKey, unknown> ? {
19
- [K in keyof T]: T[K];
20
- } : T;
21
18
  interface Link {
22
19
  dep: Signal<unknown> | Computed<unknown>;
23
20
  sub: Computed<unknown>;
@@ -32,4 +29,4 @@ type Signal<T> = {
32
29
  subsTail: Link | null;
33
30
  value: T;
34
31
  };
35
- export type { Computed, Infer, Link, Signal, ReactiveArray, ReactiveObject };
32
+ export type { Computed, Link, Signal, ReactiveArray, ReactiveObject };
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "private": false,
13
13
  "type": "module",
14
14
  "types": "build/index.d.ts",
15
- "version": "0.16.4",
15
+ "version": "0.16.5",
16
16
  "scripts": {
17
17
  "build": "tsc && tsc-alias",
18
18
  "-": "-"
package/src/types.ts CHANGED
@@ -23,19 +23,6 @@ interface Computed<T> {
23
23
  value: T;
24
24
  }
25
25
 
26
- type Infer<T> =
27
- T extends (...args: unknown[]) => Promise<infer R>
28
- ? R | undefined
29
- : T extends (...args: any[]) => infer R
30
- ? R
31
- : T extends (infer U)[]
32
- ? Infer<U>[]
33
- : T extends ReactiveObject<any>
34
- ? T
35
- : T extends Record<PropertyKey, unknown>
36
- ? { [K in keyof T]: T[K] }
37
- : T;
38
-
39
26
  interface Link {
40
27
  dep: Signal<unknown> | Computed<unknown>;
41
28
  sub: Computed<unknown>;
@@ -55,7 +42,6 @@ type Signal<T> = {
55
42
 
56
43
  export type {
57
44
  Computed,
58
- Infer,
59
45
  Link,
60
46
  Signal,
61
47
  ReactiveArray, ReactiveObject