Selaa lähdekoodia

refactor(types): use pure type symbol

Evan You 6 vuotta sitten
vanhempi
commit
c6217b4d46
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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> {
   /**