Skip to content

Commit 65aaefe

Browse files
committed
fix: refactor codes
1 parent 5289779 commit 65aaefe

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

packages/vue-i18n-core/src/i18n.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,6 @@ import type {
6060
} from './legacy'
6161
import type { Disposer } from './types'
6262

63-
declare module 'vue' {
64-
// eslint-disable-next-line
65-
interface App<HostElement = any> {
66-
__VUE_I18N__?: I18n & I18nInternal
67-
__VUE_I18N_SYMBOL__?: InjectionKey<I18n> | string
68-
}
69-
}
70-
71-
// internal Component Instance API isCE
72-
declare module 'vue' {
73-
export interface ComponentInternalInstance {
74-
/**
75-
* @internal
76-
* is custom element?
77-
*/
78-
isCE?: boolean
79-
}
80-
}
81-
8263
/**
8364
* I18n Options for `createI18n`
8465
*

packages/vue-i18n-core/src/misc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export const VERSION: string = __VERSION__
1212

1313
/**
1414
* This is only called in esm-bundler builds.
15-
* istanbul-ignore-next
15+
* @description **Don't use this function in your application code.**
1616
*
17-
* @internal
17+
* istanbul-ignore-next
1818
*/
1919
export function initFeatureFlags(): void {
2020
if (typeof __FEATURE_FULL_INSTALL__ !== 'boolean') {
@@ -36,9 +36,9 @@ export function initFeatureFlags(): void {
3636

3737
/**
3838
* This is only called development env
39-
* istanbul-ignore-next
39+
* @description **Don't use this function in your application code.**
4040
*
41-
* @internal
41+
* istanbul-ignore-next
4242
*/
4343
export function initDev(): void {
4444
if (__BROWSER__) {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { InjectionKey } from 'vue'
2+
import type { I18n, I18nInternal } from './i18n'
3+
4+
declare module 'vue' {
5+
// eslint-disable-next-line
6+
export interface App<HostElement = any> {
7+
__VUE_I18N__?: I18n & I18nInternal
8+
__VUE_I18N_SYMBOL__?: InjectionKey<I18n> | string
9+
}
10+
}
11+
12+
// internal Component Instance API isCE
13+
declare module 'vue' {
14+
export interface ComponentInternalInstance {
15+
/**
16+
* @internal
17+
* iskk custom element?
18+
*/
19+
isCE?: boolean
20+
}
21+
}

0 commit comments

Comments
 (0)