]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
test: mapState no getters
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 27 Jul 2021 08:58:11 +0000 (10:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 27 Jul 2021 08:58:11 +0000 (10:58 +0200)
Close #582

Close #581

test-dts/mapHelpers.test-d.ts

index df7ecefd0fea3dd96c84d0cd49c27f9e43ad4789..9f7248cf1629a010d2c76339be47adaf61776161 100644 (file)
@@ -46,6 +46,11 @@ expectType<{
   counterStore: () => CounterStore
 }>(computedStores)
 
+// store with no getters
+expectType<{
+  n: () => number
+}>(mapState(useCounter, ['n']))
+
 expectType<{
   a: () => 'on' | 'off'
   upper: () => string