@esportsplus/reactivity 0.0.7 → 0.0.8

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
@@ -2,7 +2,7 @@ import { CLEAN, CHECK, DIRTY } from './symbols';
2
2
  import Reactive from './reactive';
3
3
  type Fn = () => Promise<unknown> | unknown;
4
4
  type Infer<T> = T extends (...args: any[]) => any ? Reactive<T> : T extends Record<string, any> ? InferNested<T> : Reactive<T>;
5
- type InferNested<T> = T extends (...args: any[]) => any ? InferNested<ReturnType<T>> : T extends Record<string, any> ? {
5
+ type InferNested<T> = T extends (...args: any[]) => any ? ReturnType<T> : T extends Record<string, any> ? {
6
6
  [K in keyof T]: InferNested<T[K]>;
7
7
  } : T;
8
8
  type Scheduler = {
package/package.json CHANGED
@@ -15,5 +15,5 @@
15
15
  "prepublishOnly": "npm run build"
16
16
  },
17
17
  "types": "./build/index.d.ts",
18
- "version": "0.0.7"
18
+ "version": "0.0.8"
19
19
  }
package/src/types.ts CHANGED
@@ -13,7 +13,7 @@ type Infer<T> =
13
13
 
14
14
  type InferNested<T> =
15
15
  T extends (...args: any[]) => any
16
- ? InferNested< ReturnType<T> >
16
+ ? ReturnType<T>
17
17
  : T extends Record<string, any>
18
18
  ? { [K in keyof T]: InferNested<T[K]> }
19
19
  : T;