}
}>(mapWritableState(useOptionsStore, ['a']))
// @ts-expect-error: only defined in array
-mapWritableState(useStore, ['a']).b
+mapWritableState(useOptionsStore, ['a']).b
expectType<{
newA: {
}>(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'])