@yiin/reactive-proxy-state 1.0.12 → 1.0.13

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.
@@ -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
@@ -9,3 +9,4 @@ export * from './watch';
9
9
  export * from './watch-effect';
10
10
  export * from './ref';
11
11
  export * from './computed';
12
+ export * from './constants';