File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { isVue2 } from "vue-demi";
22import { QueryClient } from "react-query/core" ;
33
44import type { QueryClientConfig } from "react-query/types/core" ;
5- import type { Plugin } from "vue" ;
65
76import { getClientKey } from "./utils" ;
87
@@ -25,8 +24,8 @@ interface ClientOptions {
2524
2625export type VueQueryPluginOptions = ConfigOptions | ClientOptions ;
2726
28- export const VueQueryPlugin : Plugin = {
29- install : ( app , options : VueQueryPluginOptions = { } ) => {
27+ export const VueQueryPlugin = {
28+ install : ( app : any , options : VueQueryPluginOptions = { } ) => {
3029 const clientKey = getClientKey ( options . queryClientKey ) ;
3130 let client : QueryClient ;
3231
@@ -47,9 +46,7 @@ export const VueQueryPlugin: Plugin = {
4746 } ) ;
4847 } ;
4948
50- // @ts -expect-error onUnmount is not released yet
5149 if ( app . onUnmount ) {
52- // @ts -expect-error onUnmount is not released yet
5350 app . onUnmount ( cleanup ) ;
5451 } else {
5552 const originalUnmount = app . unmount ;
You can’t perform that action at this time.
0 commit comments