11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
import { getCurrentInstance } from 'vue';
|
|
import { extend } from '../utils';
|
|
|
|
// expose public api
|
|
export function useExpose(apis: Record<string, any>) {
|
|
const instance = getCurrentInstance();
|
|
if (instance) {
|
|
extend(instance.proxy, apis);
|
|
}
|
|
}
|