Skip to content

Commit

Permalink
fix: #2658
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov committed Apr 29, 2024
1 parent 59ec609 commit 2b1b80a
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 2b1b80a

Please sign in to comment.