Skip to content

Commit ca26686

Browse files
committed
feat: update devtools-api
1 parent 716f76a commit ca26686

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

packages/pinia/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"vue2": "npm:vue@2"
7777
},
7878
"dependencies": {
79-
"@vue/devtools-api": "^6.0.0-beta.20.1",
79+
"@vue/devtools-api": "^6.0.0-beta.21",
8080
"vue-demi": "*"
8181
},
8282
"peerDependencies": {

packages/pinia/src/createPinia.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export function createPinia(): Pinia {
2828
app.config.globalProperties.$pinia = pinia
2929
/* istanbul ignore else */
3030
if (__DEV__ && IS_CLIENT) {
31-
// @ts-expect-error: weird type in devtools api
3231
registerPiniaDevtools(app, pinia)
3332
}
3433
toBeInstalled.forEach((plugin) => _p.push(plugin))

packages/pinia/src/devtools/plugin.ts

-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ export function devtoolsPlugin<
533533
}
534534

535535
addStoreToDevtools(
536-
// @ts-expect-error: should be of type App from vue
537536
app,
538537
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
539538
store as StoreGeneric

packages/pinia/src/vue2-plugin.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Pinia, piniaSymbol, setActivePinia } from './rootStore'
2323
* })
2424
* ```
2525
*
26-
* @param _Vue
26+
* @param _Vue - `Vue` imported from 'vue'.
2727
*/
2828
export const PiniaVuePlugin: Plugin = function (_Vue) {
2929
// Equivalent of
@@ -57,7 +57,6 @@ export const PiniaVuePlugin: Plugin = function (_Vue) {
5757
// installing pinia's plugin
5858
setActivePinia(pinia)
5959
if (__DEV__) {
60-
// @ts-expect-error: weird type in devtools api
6160
registerPiniaDevtools(pinia._a, pinia)
6261
}
6362
}

packages/playground/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"sourceMap": true,
1010
"resolveJsonModule": true,
1111
"esModuleInterop": true,
12-
"lib": ["esnext", "dom"]
12+
"lib": ["esnext", "dom"],
13+
"types": ["vite/client"]
1314
}
1415
// "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
1516
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"removeComments": false,
3737
"jsx": "preserve",
3838
"lib": ["esnext", "dom"],
39-
"types": ["jest", "node"]
39+
"types": ["jest", "node", "vite/client"]
4040
}
4141
}

yarn.lock

+6-1
Original file line numberDiff line numberDiff line change
@@ -2193,11 +2193,16 @@
21932193
"@vue/compiler-dom" "3.2.26"
21942194
"@vue/shared" "3.2.26"
21952195

2196-
"@vue/devtools-api@^6.0.0-beta.18", "@vue/devtools-api@^6.0.0-beta.20.1":
2196+
"@vue/devtools-api@^6.0.0-beta.18":
21972197
version "6.0.0-beta.20.1"
21982198
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.20.1.tgz#5b499647e929c35baf2a66a399578f9aa4601142"
21992199
integrity sha512-R2rfiRY+kZugzWh9ZyITaovx+jpU4vgivAEAiz80kvh3yviiTU3CBuGuyWpSwGz9/C7TkSWVM/FtQRGlZ16n8Q==
22002200

2201+
"@vue/devtools-api@^6.0.0-beta.21":
2202+
version "6.0.0-beta.21"
2203+
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.21.tgz#74d78f15d61e7da31b3ed918e955c42aa94fbf6d"
2204+
integrity sha512-97C2evr7bKxtXEmgMiSuidKyW0fjdGJ6UBIAnUIH7vu5AHgp15u5h4USkeT1qj/jxl0wyOOfcnvevPapyDGAmQ==
2205+
22012206
22022207
version "3.2.26"
22032208
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.26.tgz#6d8f20a4aa2d19728f25de99962addbe7c4d03e9"

0 commit comments

Comments
 (0)