diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 588f3e990..fd8ac8218 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -56,7 +56,7 @@ class RefImpl { public readonly __v_isRef = true - constructor(private _rawValue: T, public readonly _shallow = false) { + constructor(private _rawValue: T, public readonly _shallow: boolean) { this._value = _shallow ? _rawValue : convert(_rawValue) }