Skip to content

Commit

Permalink
⚡ improvement(typescript): change custom formatter method name
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed May 11, 2017
1 parent 50c8881 commit c5f043f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare namespace VueI18n {
type NumberFormatResult = string;

interface Formatter {
format(message: string, values: Values): any[];
interpolate(message: string, values: Values): any[];
}

type MissingHandler = (locale: Locale, key: Path, vm?: Vue) => void;
Expand Down
2 changes: 1 addition & 1 deletion types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const i18n = new VueI18n({
}
},
formatter: {
format(message, values) {
interpolate(message, values) {
return [message];
},
},
Expand Down

0 comments on commit c5f043f

Please sign in to comment.