Skip to content

Commit

Permalink
chore: fix typo (DistrubuteRef -> DistributeRef) (#11040)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored May 30, 2024
1 parent 5d25850 commit 3a0b463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reactivity/src/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3a0b463

Please sign in to comment.