@vue/reactivity 3.4.0-rc.1 → 3.4.0-rc.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.
@@ -614,8 +614,9 @@ type BaseTypes = string | number | boolean;
614
614
  export interface RefUnwrapBailTypes {
615
615
  }
616
616
  export type ShallowUnwrapRef<T> = {
617
- [K in keyof T]: T[K] extends Ref<infer V> ? V : T[K] extends Ref<infer V> | undefined ? unknown extends V ? undefined : V | undefined : T[K];
617
+ [K in keyof T]: DistrubuteRef<T[K]>;
618
618
  };
619
+ type DistrubuteRef<T> = T extends Ref<infer V> ? V : T;
619
620
  export type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
620
621
  type UnwrapRefSimple<T> = T extends Function | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
621
622
  [RawSymbol]?: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.4.0-rc.1",
3
+ "version": "3.4.0-rc.2",
4
4
  "description": "@vue/reactivity",
5
5
  "main": "index.js",
6
6
  "module": "dist/reactivity.esm-bundler.js",
@@ -36,6 +36,6 @@
36
36
  },
37
37
  "homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
38
38
  "dependencies": {
39
- "@vue/shared": "3.4.0-rc.1"
39
+ "@vue/shared": "3.4.0-rc.2"
40
40
  }
41
41
  }