Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate UiSettingsClient type to IUiSettingsClient #51913

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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