]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: ts expect error
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 20 May 2021 21:25:34 +0000 (23:25 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 20 May 2021 21:25:34 +0000 (23:25 +0200)
src/store.ts

index 88ddf00b888b601240f9173743ca4ef5c49b1916..aa19b71eb7693348c14f5e9cf3f95ba14bca1f65 100644 (file)
@@ -411,8 +411,8 @@ export function defineStore<
     if (!storeAndDescriptor) {
       storeAndDescriptor = initStore(id, state, pinia.state.value[id])
 
-      // annoying to type
-      stores.set(id, storeAndDescriptor as any)
+      // @ts-expect-error: annoying to type
+      stores.set(id, storeAndDescriptor)
 
       store = buildStoreToUse<
         Id,