[I18n] Update TS types in i18n engine (#23754)

* [I18n] Export i18n service type

* Add InjectedIntl export and context type
This commit is contained in:
Leanid Shutau 2018-10-04 11:30:59 +03:00 committed by GitHub
parent b2baf32fba
commit 95edbcdfbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,6 @@
* under the License.
*/
export { I18nProvider } from './provider';
export { I18nProvider, I18nServiceType } from './provider';
export { i18nFilter } from './filter';
export { i18nDirective } from './directive';

View file

@ -160,6 +160,7 @@ export function getRegisteredLocales() {
interface TranslateArguments {
values?: { [key: string]: string | number | Date };
defaultMessage?: string;
context?: string;
}
/**

View file

@ -19,6 +19,7 @@
export {
intlShape,
InjectedIntl,
FormattedDate,
FormattedTime,
FormattedRelative,