]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: add ts-expect-error
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 16:58:58 +0000 (18:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 16:58:58 +0000 (18:58 +0200)
src/mapHelpers.ts

index c8f8bd358459f09f280478af77ddb3f6a3ef6274..165c7ec695a194dd4f151c7b8e6980228cd8d798 100644 (file)
@@ -65,6 +65,7 @@ function getCachedStore<
 ): Store<Id, S, G, A> {
   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<Id, S, G, A>
 }