From e81d81c04975c0e726f9e814e5840f1d95e48796 Mon Sep 17 00:00:00 2001 From: NoTwoBoy <1244476905@qq.com> Date: Fri, 8 Nov 2024 18:09:22 +0800 Subject: [PATCH] fix(test): replace non-existent useStore with useOptionsStore --- packages/pinia/test-dts/mapHelpers.test-d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pinia/test-dts/mapHelpers.test-d.ts b/packages/pinia/test-dts/mapHelpers.test-d.ts index c6cdd7a84c..fbb5164101 100644 --- a/packages/pinia/test-dts/mapHelpers.test-d.ts +++ b/packages/pinia/test-dts/mapHelpers.test-d.ts @@ -116,7 +116,7 @@ expectType<{ } }>(mapWritableState(useOptionsStore, ['a'])) // @ts-expect-error: only defined in array -mapWritableState(useStore, ['a']).b +mapWritableState(useOptionsStore, ['a']).b expectType<{ newA: { @@ -126,9 +126,9 @@ expectType<{ }>(mapWritableState(useOptionsStore, { newA: 'a' })) // @ts-expect-error: cannot use a getter -mapWritableState(useStore, ['upper']) +mapWritableState(useOptionsStore, ['upper']) // @ts-expect-error: cannot use a getter -mapWritableState(useStore, { up: 'upper' }) +mapWritableState(useOptionsStore, { up: 'upper' }) const setupStoreWithState = mapState(useSetupStore, ['a'])