Skip to content

Commit b06bd0a

Browse files
fix(types): remove vue3 only type reference (#147)
1 parent e8a0c5e commit b06bd0a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/vue/vueQueryPlugin.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { isVue2 } from "vue-demi";
22
import { QueryClient } from "react-query/core";
33

44
import type { QueryClientConfig } from "react-query/types/core";
5-
import type { Plugin } from "vue";
65

76
import { getClientKey } from "./utils";
87

@@ -25,8 +24,8 @@ interface ClientOptions {
2524

2625
export 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;

0 commit comments

Comments
 (0)