From 623e5a0fe3444a4aa9c4908668927ee66f6352ba Mon Sep 17 00:00:00 2001 From: Vadim Kruglov <49036220+quiteeasy@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:51:20 +0300 Subject: [PATCH] fix(types): storeToRefs with nested refs (#2659) Co-authored-by: Vadim Kruglov --- packages/pinia/src/storeToRefs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pinia/src/storeToRefs.ts b/packages/pinia/src/storeToRefs.ts index c56ff6a83e..bf9a18059e 100644 --- a/packages/pinia/src/storeToRefs.ts +++ b/packages/pinia/src/storeToRefs.ts @@ -22,8 +22,8 @@ import type { } from './types' type ToComputedRefs = { - [K in keyof T]: ToRef extends Ref - ? ComputedRef + [K in keyof T]: ToRef extends Ref + ? ComputedRef : ToRef }