@vueuse/shared 10.7.1 → 10.7.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.
- package/index.d.cts +10 -0
- package/index.d.mts +10 -0
- package/index.d.ts +10 -0
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as vue_demi from 'vue-demi';
|
|
2
2
|
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, MaybeRef as MaybeRef$1, WatchCallback, WatchStopHandle } from 'vue-demi';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Note: If you are using Vue 3.4+, you can straight use computed instead.
|
|
6
|
+
* Because in Vue 3.4+, if computed new value does not change,
|
|
7
|
+
* computed, effect, watch, watchEffect, render dependencies will not be triggered.
|
|
8
|
+
* refer: https://github.com/vuejs/core/pull/5912
|
|
9
|
+
*
|
|
10
|
+
* @param fn effect function
|
|
11
|
+
* @param options WatchOptionsBase
|
|
12
|
+
* @returns readonly ref
|
|
13
|
+
*/
|
|
4
14
|
declare function computedEager<T>(fn: () => T, options?: WatchOptionsBase): Readonly<Ref<T>>;
|
|
5
15
|
|
|
6
16
|
interface ComputedWithControlRefExtra {
|
package/index.d.mts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as vue_demi from 'vue-demi';
|
|
2
2
|
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, MaybeRef as MaybeRef$1, WatchCallback, WatchStopHandle } from 'vue-demi';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Note: If you are using Vue 3.4+, you can straight use computed instead.
|
|
6
|
+
* Because in Vue 3.4+, if computed new value does not change,
|
|
7
|
+
* computed, effect, watch, watchEffect, render dependencies will not be triggered.
|
|
8
|
+
* refer: https://github.com/vuejs/core/pull/5912
|
|
9
|
+
*
|
|
10
|
+
* @param fn effect function
|
|
11
|
+
* @param options WatchOptionsBase
|
|
12
|
+
* @returns readonly ref
|
|
13
|
+
*/
|
|
4
14
|
declare function computedEager<T>(fn: () => T, options?: WatchOptionsBase): Readonly<Ref<T>>;
|
|
5
15
|
|
|
6
16
|
interface ComputedWithControlRefExtra {
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as vue_demi from 'vue-demi';
|
|
2
2
|
import { WatchOptionsBase, Ref, ComputedRef, WritableComputedRef, WatchSource, ComputedGetter, WritableComputedOptions, WatchOptions, InjectionKey, ShallowUnwrapRef as ShallowUnwrapRef$1, inject, provide, UnwrapNestedRefs, UnwrapRef, ToRef, ToRefs, MaybeRef as MaybeRef$1, WatchCallback, WatchStopHandle } from 'vue-demi';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Note: If you are using Vue 3.4+, you can straight use computed instead.
|
|
6
|
+
* Because in Vue 3.4+, if computed new value does not change,
|
|
7
|
+
* computed, effect, watch, watchEffect, render dependencies will not be triggered.
|
|
8
|
+
* refer: https://github.com/vuejs/core/pull/5912
|
|
9
|
+
*
|
|
10
|
+
* @param fn effect function
|
|
11
|
+
* @param options WatchOptionsBase
|
|
12
|
+
* @returns readonly ref
|
|
13
|
+
*/
|
|
4
14
|
declare function computedEager<T>(fn: () => T, options?: WatchOptionsBase): Readonly<Ref<T>>;
|
|
5
15
|
|
|
6
16
|
interface ComputedWithControlRefExtra {
|