From dc0162a413ee6e8e3ee2ef1c25e17bcf61aec6aa Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Fri, 29 Nov 2019 16:03:52 +0100 Subject: [PATCH] Migrate UiSettingsClient type to IUiSettingsClient --- .../discover/angular/doc_table/components/table_header.ts | 4 ++-- .../public/discover/angular/doc_table/components/table_row.ts | 4 ++-- .../kibana/public/discover/angular/doc_table/doc_table.ts | 4 ++-- .../core_plugins/kibana/public/discover/get_inner_angular.ts | 4 ++-- .../kibana/public/discover/helpers/build_services.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_header.ts b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_header.ts index c4312b3bc468a..055f14f164476 100644 --- a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_header.ts +++ b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_header.ts @@ -17,10 +17,10 @@ * under the License. */ import { wrapInI18nContext } from 'ui/i18n'; -import { UiSettingsClient } from 'kibana/public'; +import { IUiSettingsClient } from 'kibana/public'; import { TableHeader } from './table_header/table_header'; -export function createTableHeaderDirective(reactDirective: any, config: UiSettingsClient) { +export function createTableHeaderDirective(reactDirective: any, config: IUiSettingsClient) { return reactDirective( wrapInI18nContext(TableHeader), [ diff --git a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_row.ts b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_row.ts index 883513173187a..8ff4ab46ef532 100644 --- a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_row.ts +++ b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/components/table_row.ts @@ -19,7 +19,7 @@ import _ from 'lodash'; import $ from 'jquery'; -import { UiSettingsClient } from 'kibana/public'; +import { IUiSettingsClient } from 'kibana/public'; // @ts-ignore import rison from 'rison-node'; import '../../doc_viewer'; @@ -45,7 +45,7 @@ export function createTableRowDirective( $compile: ng.ICompileService, $httpParamSerializer: any, kbnUrl: any, - config: UiSettingsClient + config: IUiSettingsClient ) { const cellTemplate = _.template(noWhiteSpace(cellTemplateHtml)); const truncateByHeightTemplate = _.template(noWhiteSpace(truncateByHeightTemplateHtml)); diff --git a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/doc_table.ts b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/doc_table.ts index 1be87bfa1f3b2..92ebc24c6e378 100644 --- a/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/doc_table.ts +++ b/src/legacy/core_plugins/kibana/public/discover/angular/doc_table/doc_table.ts @@ -18,7 +18,7 @@ */ import _ from 'lodash'; -import { UiSettingsClient } from 'kibana/public'; +import { IUiSettingsClient } from 'kibana/public'; import html from './doc_table.html'; import './infinite_scroll'; import './components/table_header'; @@ -34,7 +34,7 @@ interface LazyScope extends ng.IScope { } export function createDocTableDirective( - config: UiSettingsClient, + config: IUiSettingsClient, getAppState: any, pagerFactory: any, $filter: any diff --git a/src/legacy/core_plugins/kibana/public/discover/get_inner_angular.ts b/src/legacy/core_plugins/kibana/public/discover/get_inner_angular.ts index 93a823a054756..3c1d41657a1d3 100644 --- a/src/legacy/core_plugins/kibana/public/discover/get_inner_angular.ts +++ b/src/legacy/core_plugins/kibana/public/discover/get_inner_angular.ts @@ -34,7 +34,7 @@ import { createEsService } from 'ui/es'; import { i18nDirective, i18nFilter, I18nProvider } from '@kbn/i18n/angular'; // @ts-ignore import { PrivateProvider } from 'ui/private/private'; -import { CoreStart, LegacyCoreStart, UiSettingsClientContract } from 'kibana/public'; +import { CoreStart, LegacyCoreStart, IUiSettingsClient } from 'kibana/public'; // @ts-ignore import { watchMultiDecorator } from 'ui/directives/watch_multi/watch_multi'; // @ts-ignore @@ -225,7 +225,7 @@ function createLocalKbnUrlModule() { .service('redirectWhenMissing', (Private: IPrivate) => Private(RedirectWhenMissingProvider)); } -function createLocalConfigModule(uiSettings: UiSettingsClientContract) { +function createLocalConfigModule(uiSettings: IUiSettingsClient) { angular .module('discoverConfig', ['discoverPrivate']) .provider('stateManagementConfig', StateManagementConfigProvider) diff --git a/src/legacy/core_plugins/kibana/public/discover/helpers/build_services.ts b/src/legacy/core_plugins/kibana/public/discover/helpers/build_services.ts index 33a099cce5fd8..51f1521504be8 100644 --- a/src/legacy/core_plugins/kibana/public/discover/helpers/build_services.ts +++ b/src/legacy/core_plugins/kibana/public/discover/helpers/build_services.ts @@ -22,7 +22,7 @@ import { CoreStart, DocLinksStart, ToastsStart, - UiSettingsClientContract, + IUiSettingsClient, } from 'kibana/public'; import * as docViewsRegistry from 'ui/registry/doc_views'; import chromeLegacy from 'ui/chrome'; @@ -61,7 +61,7 @@ export interface DiscoverServices { getSavedSearchById: (id: string) => Promise; getSavedSearchUrlById: (id: string) => Promise; State: unknown; - uiSettings: UiSettingsClientContract; + uiSettings: IUiSettingsClient; } export async function buildGlobalAngularServices() {