@yiin/reactive-proxy-state 1.0.12 → 1.0.14
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/dist/computed.d.ts +6 -0
- package/dist/constants.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1474 -11
- package/dist/reactive.d.ts +14 -2
- package/dist/ref.d.ts +24 -7
- package/dist/state.d.ts +6 -0
- package/dist/types.d.ts +1 -1
- package/dist/watch-effect.d.ts +2 -1
- package/dist/wrap-array.d.ts +2 -2
- package/dist/wrap-map.d.ts +2 -2
- package/dist/wrap-set.d.ts +2 -2
- package/package.json +2 -2
- package/dist/computed.js +0 -58
- package/dist/reactive.js +0 -114
- package/dist/ref.js +0 -91
- package/dist/state.js +0 -211
- package/dist/types.js +0 -1
- package/dist/utils.js +0 -220
- package/dist/watch-effect.js +0 -154
- package/dist/watch.js +0 -44
- package/dist/watchEffect.d.ts +0 -54
- package/dist/watchEffect.js +0 -154
- package/dist/wrap-array.js +0 -237
- package/dist/wrap-map.js +0 -252
- package/dist/wrap-set.js +0 -182
- package/dist/wrapArray.d.ts +0 -2
- package/dist/wrapArray.js +0 -227
- package/dist/wrapMap.d.ts +0 -2
- package/dist/wrapMap.js +0 -230
- package/dist/wrapSet.d.ts +0 -2
- package/dist/wrapSet.js +0 -167
package/dist/computed.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ interface WritableComputedOptions<T> {
|
|
|
15
15
|
get: ComputedGetter<T>;
|
|
16
16
|
set: ComputedSetter<T>;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Creates a computed ref from a getter function
|
|
20
|
+
*
|
|
21
|
+
* @param getter - The getter function
|
|
22
|
+
* @returns A computed ref
|
|
23
|
+
*/
|
|
18
24
|
export declare function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>;
|
|
19
25
|
export declare function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>;
|
|
20
26
|
export declare function isComputed<T>(c: any): c is ComputedRef<T> | WritableComputedRef<T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Special symbols used to mark reactive objects and store metadata.
|
|
3
|
+
*/
|
|
4
|
+
export declare const enum ReactiveFlags {
|
|
5
|
+
RAW = "__v_raw",// reference to the original object
|
|
6
|
+
IS_REACTIVE = "__v_isReactive",// flag indicating if an object is reactive
|
|
7
|
+
SKIP = "__v_skip"
|
|
8
|
+
}
|
package/dist/index.d.ts
CHANGED