From: Eduardo San Martin Morote Date: Tue, 27 Jul 2021 08:58:11 +0000 (+0200) Subject: test: mapState no getters X-Git-Tag: v2.0.0-rc.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d51abf86c5404a11dc1dcb328438f51bc52e87;p=thirdparty%2Fvuejs%2Fpinia.git test: mapState no getters Close #582 Close #581 --- diff --git a/test-dts/mapHelpers.test-d.ts b/test-dts/mapHelpers.test-d.ts index df7ecefd..9f7248cf 100644 --- a/test-dts/mapHelpers.test-d.ts +++ b/test-dts/mapHelpers.test-d.ts @@ -46,6 +46,11 @@ expectType<{ counterStore: () => CounterStore }>(computedStores) +// store with no getters +expectType<{ + n: () => number +}>(mapState(useCounter, ['n'])) + expectType<{ a: () => 'on' | 'off' upper: () => string