@vue/reactivity 3.4.0-beta.2 → 3.4.0-beta.3

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.
@@ -451,9 +451,7 @@ export type ShallowRef<T = any> = Ref<T> & {
451
451
  * @param value - The "inner value" for the shallow ref.
452
452
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowref}
453
453
  */
454
- export declare function shallowRef<T>(value: MaybeRef<T>): Ref<T> | ShallowRef<T>;
455
- export declare function shallowRef<T extends Ref>(value: T): T;
456
- export declare function shallowRef<T>(value: T): ShallowRef<T>;
454
+ export declare function shallowRef<T>(value: T): Ref extends T ? T extends Ref ? IfAny<T, ShallowRef<T>, T> : ShallowRef<T> : ShallowRef<T>;
457
455
  export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
458
456
  /**
459
457
  * Force trigger effects that depends on a shallow ref. This is typically used
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.4.0-beta.2",
3
+ "version": "3.4.0-beta.3",
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-beta.2"
39
+ "@vue/shared": "3.4.0-beta.3"
40
40
  }
41
41
  }