Skip to content

Commit

Permalink
Migrate UiSettingsClient type to IUiSettingsClient (elastic#51913)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Nov 29, 2019
1 parent 1c2906c commit 0ebc12e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -34,7 +34,7 @@ interface LazyScope extends ng.IScope {
}

export function createDocTableDirective(
config: UiSettingsClient,
config: IUiSettingsClient,
getAppState: any,
pagerFactory: any,
$filter: any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -61,7 +61,7 @@ export interface DiscoverServices {
getSavedSearchById: (id: string) => Promise<SavedSearch>;
getSavedSearchUrlById: (id: string) => Promise<string>;
State: unknown;
uiSettings: UiSettingsClientContract;
uiSettings: IUiSettingsClient;
}

export async function buildGlobalAngularServices() {
Expand Down

0 comments on commit 0ebc12e

Please sign in to comment.