Skip to content

Commit

Permalink
⚡ improvement(flowtype): update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Feb 10, 2019
1 parent e6f1ccd commit 44e04e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions decls/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ declare type I18nOptions = {
fallbackRoot?: boolean,
sync?: boolean,
silentTranslationWarn?: boolean,
silentFallbackWarn?: boolean,
pluralizationRules?: {
[lang: string]: (choice: number, choicesLength: number) => number,
},
Expand Down Expand Up @@ -90,6 +91,8 @@ declare interface I18n {
set formatter (formatter: Formatter): void,
get silentTranslationWarn (): boolean,
set silentTranslationWarn (silent: boolean): void,
get silentFallbackWarn (): boolean,
set silentFallbackWarn (slient: boolean): void,
getLocaleMessage (locale: Locale): LocaleMessageObject,
setLocaleMessage (locale: Locale, message: LocaleMessageObject): void,
mergeLocaleMessage (locale: Locale, message: LocaleMessageObject): void,
Expand Down

0 comments on commit 44e04e7

Please sign in to comment.