"vue2": "npm:vue@2"
},
"dependencies": {
- "@vue/devtools-api": "^6.0.0-beta.20.1",
+ "@vue/devtools-api": "^6.0.0-beta.21",
"vue-demi": "*"
},
"peerDependencies": {
app.config.globalProperties.$pinia = pinia
/* istanbul ignore else */
if (__DEV__ && IS_CLIENT) {
- // @ts-expect-error: weird type in devtools api
registerPiniaDevtools(app, pinia)
}
toBeInstalled.forEach((plugin) => _p.push(plugin))
}
addStoreToDevtools(
- // @ts-expect-error: should be of type App from vue
app,
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
store as StoreGeneric
* })
* ```
*
- * @param _Vue
+ * @param _Vue - `Vue` imported from 'vue'.
*/
export const PiniaVuePlugin: Plugin = function (_Vue) {
// Equivalent of
// installing pinia's plugin
setActivePinia(pinia)
if (__DEV__) {
- // @ts-expect-error: weird type in devtools api
registerPiniaDevtools(pinia._a, pinia)
}
}
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
- "lib": ["esnext", "dom"]
+ "lib": ["esnext", "dom"],
+ "types": ["vite/client"]
}
// "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
"removeComments": false,
"jsx": "preserve",
"lib": ["esnext", "dom"],
- "types": ["jest", "node"]
+ "types": ["jest", "node", "vite/client"]
}
}
"@vue/compiler-dom" "3.2.26"
"@vue/shared" "3.2.26"
-"@vue/devtools-api@^6.0.0-beta.18", "@vue/devtools-api@^6.0.0-beta.20.1":
+"@vue/devtools-api@^6.0.0-beta.18":
version "6.0.0-beta.20.1"
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.20.1.tgz#5b499647e929c35baf2a66a399578f9aa4601142"
integrity sha512-R2rfiRY+kZugzWh9ZyITaovx+jpU4vgivAEAiz80kvh3yviiTU3CBuGuyWpSwGz9/C7TkSWVM/FtQRGlZ16n8Q==
+"@vue/devtools-api@^6.0.0-beta.21":
+ version "6.0.0-beta.21"
+ resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.21.tgz#74d78f15d61e7da31b3ed918e955c42aa94fbf6d"
+ integrity sha512-97C2evr7bKxtXEmgMiSuidKyW0fjdGJ6UBIAnUIH7vu5AHgp15u5h4USkeT1qj/jxl0wyOOfcnvevPapyDGAmQ==
+
"@vue/reactivity-transform@3.2.26":
version "3.2.26"
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.26.tgz#6d8f20a4aa2d19728f25de99962addbe7c4d03e9"