ivue 1.1.7 → 1.1.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.
@@ -1,4 +1,5 @@
1
1
  import type { ComputedRef, ExtractPropTypes, Ref, ToRef, UnwrapNestedRefs } from 'vue';
2
+ import type { Ref as DemiRef } from 'vue-demi';
2
3
  import { UnwrapRef } from 'vue';
3
4
  /** Types */
4
5
  /**
@@ -25,10 +26,8 @@ export declare type IVueRefs<T = any> = {
25
26
  /**
26
27
  * Unwraps the returned Refs of composable method T to a reactive type definition.
27
28
  */
28
- export declare type UseComposableReturn<T extends Record<string, Ref | any>> = {
29
- [K in keyof T]: T[K] extends Ref ? T[K]['value'] extends Ref ? T[K]['value']['value'] : T[K]['value'] : T[K] extends {
30
- value: any;
31
- } ? T[K]['value'] : T[K];
29
+ export declare type UseComposableReturn<T extends Record<string, Ref | any>> = T extends Ref | DemiRef ? T['value'] : {
30
+ [K in keyof T]: T[K] extends Ref | DemiRef ? T[K]['value'] extends Ref | DemiRef ? T[K]['value']['value'] : T[K]['value'] : T[K];
32
31
  };
33
32
  export declare type UseComposable<T extends (...args: any[]) => any> = UseComposableReturn<ReturnType<T>>;
34
33
  /**
@@ -32,7 +32,7 @@ class Counter {
32
32
  total: this.total
33
33
  } = iuse(useMouse()));
34
34
  const dark = iuse(useDark());
35
- dark.value
35
+ dark.
36
36
  }
37
37
  }
38
38
 
package/docs/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "eslint-plugin-import": "^2.29.1",
19
19
  "eslint-plugin-vue": "^9.14.1",
20
20
  "execa": "^8.0.0",
21
- "ivue": "^1.1.6",
21
+ "ivue": "^1.1.7",
22
22
  "typescript": "^4.5.4",
23
23
  "vite-plugin-dynamic-import": "^1.5.0",
24
24
  "vite-tsconfig-paths": "^4.3.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ivue",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Infinite Vue – Class Based Architecture for Vue 3",
5
5
  "type": "module",
6
6
  "exports": {