From b2ea7f8a15e9000e418e8cb20fcd48cb64ddf5e0 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Thu, 16 Apr 2020 12:55:03 -0700 Subject: [PATCH] add common/types --- x-pack/plugins/reporting/common/types.d.ts | 7 +++++++ x-pack/plugins/reporting/public/plugin.tsx | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 x-pack/plugins/reporting/common/types.d.ts diff --git a/x-pack/plugins/reporting/common/types.d.ts b/x-pack/plugins/reporting/common/types.d.ts new file mode 100644 index 000000000000000..34f0bc9ac8a366f --- /dev/null +++ b/x-pack/plugins/reporting/common/types.d.ts @@ -0,0 +1,7 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License; + * you may not use this file except in compliance with the Elastic License. + */ + +export { ConfigType } from '../server/config'; diff --git a/x-pack/plugins/reporting/public/plugin.tsx b/x-pack/plugins/reporting/public/plugin.tsx index 49997adca9ba4df..971302f97edc550 100644 --- a/x-pack/plugins/reporting/public/plugin.tsx +++ b/x-pack/plugins/reporting/public/plugin.tsx @@ -26,8 +26,8 @@ import { HomePublicPluginSetup, } from '../../../../src/plugins/home/public'; import { SharePluginSetup } from '../../../../src/plugins/share/public'; -import { ReportingConfigType } from '../../../legacy/plugins/reporting/server/config'; import { LicensingPluginSetup } from '../../licensing/public'; +import { ConfigType } from '../common/types'; import { JOB_COMPLETION_NOTIFICATIONS_SESSION_KEY } from '../constants'; import { getGeneralErrorToast } from './components'; import { ReportListing } from './components/report_listing'; @@ -38,7 +38,7 @@ import { csvReportingProvider } from './share_context_menu/register_csv_reportin import { reportingPDFPNGProvider } from './share_context_menu/register_pdf_png_reporting'; export interface ClientConfigType { - poll: ReportingConfigType['poll']; + poll: ConfigType['poll']; } interface PluginsSetup {