Skip to content

Commit 28e50ae

Browse files
authored
Merge pull request #12 from wangfengyuan/master
fix: typescript error and rebuild file
2 parents b458968 + 259fdab commit 28e50ae

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dist/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface I18nConfig {
88
}
99
export interface I18nInstance {
1010
messages: Messages;
11-
t: (key: string) => string;
11+
t: (key: string, params?: any) => string;
1212
setLocale: (locale: string) => void;
1313
getLocale: () => string;
1414
install(app: App): void;

dist/vue3-i18n.common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue3-i18n.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue3-i18n.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface I18nConfig {
1111

1212
export interface I18nInstance {
1313
messages: Messages;
14-
t: (key: string) => string;
14+
t: (key: string, params?: any) => string;
1515
setLocale: (locale: string) => void;
1616
getLocale: () => string;
1717
install(app: App): void;

0 commit comments

Comments
 (0)