Просмотр исходного кода

chore: fix typo (DistrubuteRef -> DistributeRef) (#11040)

Haoqun Jiang 1 год назад
Родитель
Сommit
3a0b463a2c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/reactivity/src/ref.ts

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

@@ -496,10 +496,10 @@ type BaseTypes = string | number | boolean
 export interface RefUnwrapBailTypes {}
 
 export type ShallowUnwrapRef<T> = {
-  [K in keyof T]: DistrubuteRef<T[K]>
+  [K in keyof T]: DistributeRef<T[K]>
 }
 
-type DistrubuteRef<T> = T extends Ref<infer V> ? V : T
+type DistributeRef<T> = T extends Ref<infer V> ? V : T
 
 export type UnwrapRef<T> =
   T extends ShallowRef<infer V>