Skip to content

Commit

Permalink
fix: move ComponentCustomProperties to main
Browse files Browse the repository at this point in the history
  • Loading branch information
motea927 committed Jun 19, 2023
1 parent 6a13f21 commit 11c781e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion packages/core/main.ts
Original file line number Diff line number Diff line change
@@ -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'
7 changes: 0 additions & 7 deletions packages/core/types.ts

This file was deleted.

0 comments on commit 11c781e

Please sign in to comment.