Skip to content

Commit e9b150f

Browse files
committedMar 13, 2018
⚡ improvement(flow,typescript): update missing handler typings
1 parent 4fac87a commit e9b150f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎decls/i18n.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ declare type NumberFormats = { [key: Locale]: NumberFormat };
4848
declare type TranslateResult = string | LocaleMessages;
4949
declare type DateTimeFormatResult = string;
5050
declare type NumberFormatResult = string;
51-
declare type MissingHandler = (locale: Locale, key: Path, vm?: any) => void;
51+
declare type MissingHandler = (locale: Locale, key: Path, vm?: any) => string | void;
5252

5353
declare type I18nOptions = {
5454
locale?: Locale,

‎types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare namespace VueI18n {
4949
interpolate(message: string, values?: Values): any[];
5050
}
5151

52-
type MissingHandler = (locale: Locale, key: Path, vm?: Vue) => void;
52+
type MissingHandler = (locale: Locale, key: Path, vm?: Vue) => string | void;
5353

5454
interface IntlAvailability {
5555
dateTimeFormat: boolean;

0 commit comments

Comments
 (0)
Please sign in to comment.