diff --git a/packages/core/main.ts b/packages/core/main.ts index 4908dd1..0a367f6 100644 --- a/packages/core/main.ts +++ b/packages/core/main.ts @@ -1,4 +1,11 @@ -import './types' +import type { BindingObj, BindingI18nObj } from './shared' + +declare module '@vue/runtime-core' { + export interface ComponentCustomProperties { + $i18nHtml: (binding: string | BindingI18nObj) => string + $safeHtml: (binding: string | BindingObj) => string + } +} export { setGlobalOptions } from './shared' export { createI18nHtml, createSafeHtml } from './plugins' diff --git a/packages/core/types.ts b/packages/core/types.ts deleted file mode 100644 index 65b4d08..0000000 --- a/packages/core/types.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BindingObj, BindingI18nObj } from './shared' -declare module '@vue/runtime-core' { - export interface ComponentCustomProperties { - $i18nHtml: (binding: string | BindingI18nObj) => string - $safeHtml: (binding: string | BindingObj) => string - } -}