]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typo (DistrubuteRef -> DistributeRef) (#11040)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 30 May 2024 10:22:11 +0000 (18:22 +0800)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 10:22:11 +0000 (18:22 +0800)
packages/reactivity/src/ref.ts

index 5f40fbb7c286cd2380163f0422275c118091f678..bd121e47d465cfe713d601e63c8704f9e32696d3 100644 (file)
@@ -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>