From ec983ef6104da348db5f5d73f4400bde0e79c814 Mon Sep 17 00:00:00 2001 From: Mikhail Shustov Date: Fri, 20 Nov 2020 17:27:37 +0300 Subject: [PATCH] do not export types from 3rd party modules as 'type' (#83803) to avoid inlining. see 9 https://www.techatbloomberg.com/blog/10-insights-adopting-typescript-at-scale/ --- packages/kbn-i18n/src/react/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/kbn-i18n/src/react/index.tsx b/packages/kbn-i18n/src/react/index.tsx index b438c44598b75..857a2b0824b55 100644 --- a/packages/kbn-i18n/src/react/index.tsx +++ b/packages/kbn-i18n/src/react/index.tsx @@ -18,9 +18,7 @@ */ import { InjectedIntl as _InjectedIntl, InjectedIntlProps as _InjectedIntlProps } from 'react-intl'; - -export type InjectedIntl = _InjectedIntl; -export type InjectedIntlProps = _InjectedIntlProps; +export type { InjectedIntl, InjectedIntlProps } from 'react-intl'; export { intlShape,