]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commit
fix(types): fix storeToRefs state return type (#2574) (#2604)
authorMikita Kamkou <44264841+nkeyy0@users.noreply.github.com>
Tue, 2 Apr 2024 12:33:21 +0000 (14:33 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2024 12:33:21 +0000 (14:33 +0200)
commitc8f727a0a2187c591134bd467efe426fb747ea40
treebcf83d21e58baec4effb3d7997ccaf46fe4e0b1d
parent205e3df77a20d18f24b8835d85e66836a009a068
fix(types): fix storeToRefs state return type (#2574) (#2604)

* fix(types): Added new mapped type to keep original ref type in the storeToRefs return type (close #2574)

* test: add types test with custom ref type

* test: add type test for an options store that returns custom ref within the state function

* fix: Fix case when store has actions

* test: add type tests for stores with actions
packages/pinia/src/storeToRefs.ts
packages/pinia/test-dts/customizations.test-d.ts