Skip to content

Commit

Permalink
fix(types): nested refs storeToRefs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov authored and posva committed Jul 26, 2024
1 parent 059c76b commit b458d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pinia/src/storeToRefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import type {
} from './types'

type ToComputedRefs<T> = {
[K in keyof T]: ToRef<T[K]> extends Ref<infer U>
? ComputedRef<U>
[K in keyof T]: ToRef<T[K]> extends Ref
? ComputedRef<T[K]>
: ToRef<T[K]>
}

Expand Down

0 comments on commit b458d97

Please sign in to comment.