types: Use unique symbol type for _isRef property of ref object (#118)

This commit is contained in:
Rahul Kadyan
2019-10-06 08:02:50 +05:30
committed by Evan You
parent caa9297da6
commit f58e5e96f2
3 changed files with 4 additions and 2 deletions

View File

@@ -4,9 +4,10 @@ import { isObject } from '@vue/shared'
import { reactive } from './reactive'
export const refSymbol = Symbol()
export type RefSymbol = typeof refSymbol
export interface Ref<T> {
_isRef: symbol
_isRef: RefSymbol
value: UnwrapNestedRefs<T>
}