mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
types: remove any in useExpose
This commit is contained in:
@@ -2,6 +2,8 @@ import { getCurrentInstance } from 'vue';
|
||||
|
||||
// expose public api
|
||||
export function useExpose(apis: Record<string, any>) {
|
||||
const vm = (getCurrentInstance() as any).ctx;
|
||||
Object.assign(vm, apis);
|
||||
const instance = getCurrentInstance();
|
||||
if (instance) {
|
||||
Object.assign(instance.proxy, apis);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user