]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: replace non-existent useStore with useOptionsStore (#2827)
authorNo Two <1244476905@qq.com>
Fri, 8 Nov 2024 11:29:50 +0000 (19:29 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2024 11:29:50 +0000 (12:29 +0100)
packages/pinia/test-dts/mapHelpers.test-d.ts

index c6cdd7a84c1b9dcc59a3cd0770a85009e6926864..fbb5164101eea1ba66286621f665c4c3aaebd34a 100644 (file)
@@ -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'])