@vue/reactivity 3.2.40 → 3.2.42

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.
@@ -73,6 +73,7 @@ export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOpt
73
73
  export declare type EffectScheduler = (...args: any[]) => any;
74
74
 
75
75
  export declare class EffectScope {
76
+ detached: boolean;
76
77
  /* Excluded from this release type: active */
77
78
  /* Excluded from this release type: effects */
78
79
  /* Excluded from this release type: cleanups */
@@ -106,9 +107,7 @@ declare type IterableCollections = Map<any, any> | Set<any>;
106
107
 
107
108
  export declare const ITERATE_KEY: unique symbol;
108
109
 
109
- export declare function markRaw<T extends object>(value: T): T & {
110
- [RawSymbol]?: true;
111
- };
110
+ export declare function markRaw<T extends object>(value: T): Raw<T>;
112
111
 
113
112
  export declare function onScopeDispose(fn: () => void): void;
114
113
 
@@ -118,6 +117,10 @@ declare type Primitive = string | number | boolean | bigint | symbol | undefined
118
117
 
119
118
  export declare function proxyRefs<T extends object>(objectWithRefs: T): ShallowUnwrapRef<T>;
120
119
 
120
+ export declare type Raw<T> = T & {
121
+ [RawSymbol]?: true;
122
+ };
123
+
121
124
  declare const RawSymbol: unique symbol;
122
125
 
123
126
  /**
@@ -325,7 +328,7 @@ export declare type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends
325
328
 
326
329
  declare type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
327
330
  [RawSymbol]?: true;
328
- } ? T : T extends Array<any> ? {
331
+ } ? T : T extends ReadonlyArray<any> ? {
329
332
  [K in keyof T]: UnwrapRefSimple<T[K]>;
330
333
  } : T extends object & {
331
334
  [ShallowReactiveMarker]?: never;