mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
react-intl: more minor fixes for Travis build
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
///<reference path='../react/react.d.ts' />
|
||||
///<reference path='../react-mixin/react-mixin.d.ts' />
|
||||
///<reference path='../react-intl/react-intl.d.ts' />
|
||||
|
||||
import * as React from 'react'
|
||||
|
||||
@@ -79,7 +80,7 @@ class I18nDirect extends React.Component<I18nDirect.Props, any> {
|
||||
if (this._currentLocale !== locale) {
|
||||
|
||||
this._messages = Object.keys( MESSAGES ).reduce(
|
||||
( dic, key ) => {
|
||||
( dic: { [key: string]: string; }, key: string ) => {
|
||||
dic[ key ] = MESSAGES[ key ][ locale ]
|
||||
return dic
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user