diff --git a/packages/core/main.ts b/packages/core/main.ts index 0a367f6..d5a425a 100644 --- a/packages/core/main.ts +++ b/packages/core/main.ts @@ -1,11 +1,19 @@ import type { BindingObj, BindingI18nObj } from './shared' -declare module '@vue/runtime-core' { +export { setGlobalOptions } from './shared' +export { createI18nHtml, createSafeHtml } from './plugins' + +export {} +declare module 'vue' { export interface ComponentCustomProperties { $i18nHtml: (binding: string | BindingI18nObj) => string $safeHtml: (binding: string | BindingObj) => string } } -export { setGlobalOptions } from './shared' -export { createI18nHtml, createSafeHtml } from './plugins' +declare module '@vue/runtime-core' { + export interface ComponentCustomProperties { + $i18nHtml: (binding: string | BindingI18nObj) => string + $safeHtml: (binding: string | BindingObj) => string + } +}