From: Eduardo San Martin Morote Date: Mon, 17 May 2021 16:58:58 +0000 (+0200) Subject: refactor: add ts-expect-error X-Git-Tag: v0.5.1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58482e1fe23f837b576b9762619598edd7a98f47;p=thirdparty%2Fvuejs%2Fpinia.git refactor: add ts-expect-error --- diff --git a/src/mapHelpers.ts b/src/mapHelpers.ts index c8f8bd35..165c7ec6 100644 --- a/src/mapHelpers.ts +++ b/src/mapHelpers.ts @@ -65,6 +65,7 @@ function getCachedStore< ): Store { const cache = '_pStores' in vm ? vm._pStores! : (vm._pStores = {}) const id = useStore.$id + // @ts-expect-error: again the Id to string fail return (cache[id] || (cache[id] = useStore(vm.$pinia))) as Store }