-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from motea927/dev
fix: declare vue & @vue/runtime-core module type, prevent some editor…
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |