|
|
@@ -1,8 +1,8 @@
|
|
|
-import { getCurrentInstance } from 'vue';
|
|
|
+import { getCurrentInstance, ComponentPublicInstance } from 'vue';
|
|
|
|
|
|
export function useExpose(apis: Record<string, any>) {
|
|
|
const instance = getCurrentInstance();
|
|
|
if (instance) {
|
|
|
- Object.assign(instance.proxy, apis);
|
|
|
+ Object.assign(instance.proxy as ComponentPublicInstance, apis);
|
|
|
}
|
|
|
}
|