{"version":3,"file":"index.mjs","sources":["../../../src/shared/useExpose/index.ts"],"sourcesContent":["import { getCurrentInstance } from 'vue';\n\n// expose public api\nexport function useExpose<T = Record<string, any>>(apis: T) {\n  const instance = getCurrentInstance();\n  if (instance) {\n    Object.assign(instance.proxy as object, apis);\n  }\n}\n"],"names":["useExpose","apis","instance","getCurrentInstance","Object","assign","proxy"],"mappings":";;;;;;;;AAGO,SAASA,UAAmCC,IAAS,EAAA;AAC1D,EAAA,IAAMC,WAAWC,kBAAmB,EAAA,CAAA;AACpC,EAAA,IAAID,QAAU,EAAA;IACLE,MAAA,CAAAC,MAAA,CAAOH,QAAS,CAAAI,KAAA,EAAiBL,IAAI,CAAA,CAAA;AAC9C,GAAA;AACF;;;;"}