Browse Source

refactor(types): use pure type symbol

Evan You 6 năm trước cách đây
mục cha
commit
c6217b4d46
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/reactivity/src/ref.ts

+ 1 - 1
packages/reactivity/src/ref.ts

@@ -5,7 +5,7 @@ import { reactive, isProxy, toRaw } from './reactive'
 import { ComputedRef } from './computed'
 import { CollectionTypes } from './collectionHandlers'
 
-const RefSymbol = Symbol()
+declare const RefSymbol: unique symbol
 
 export interface Ref<T = any> {
   /**