Skip to content

Commit

Permalink
use IndexPattern instead of IIndexPattern (elastic#107198)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and vadimkibana committed Aug 8, 2021
1 parent 4642172 commit c153ec7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import React, { useRef, useEffect, useState, useCallback } from 'react';
import type { estypes } from '@elastic/elasticsearch';
import { EuiButtonEmpty } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { getServices, IIndexPattern } from '../../../kibana_services';
import { getServices, IndexPattern } from '../../../kibana_services';
import { IndexPatternField } from '../../../../../data/common';
import { SkipBottomButton } from '../../apps/main/components/skip_bottom_button';

Expand All @@ -22,7 +22,7 @@ export interface DocTableLegacyProps {
searchTitle?: string;
onFilter: (field: IndexPatternField | string, value: string, type: '+' | '-') => void;
rows: estypes.SearchHit[];
indexPattern: IIndexPattern;
indexPattern: IndexPattern;
minimumVisibleRows?: number;
onAddColumn?: (column: string) => void;
onBackToTop: () => void;
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/discover/public/application/embeddable/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
IEmbeddable,
} from 'src/plugins/embeddable/public';
import { SortOrder } from '../angular/doc_table/components/table_header/helpers';
import { Filter, IIndexPattern, TimeRange, Query } from '../../../../data/public';
import { Filter, IndexPattern, TimeRange, Query } from '../../../../data/public';
import { SavedSearch } from '../..';

export interface SearchInput extends EmbeddableInput {
Expand All @@ -27,7 +27,7 @@ export interface SearchInput extends EmbeddableInput {

export interface SearchOutput extends EmbeddableOutput {
editUrl: string;
indexPatterns?: IIndexPattern[];
indexPatterns?: IndexPattern[];
editable: boolean;
}

Expand Down
1 change: 0 additions & 1 deletion src/plugins/discover/public/kibana_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export { formatMsg, formatStack, subscribeWithScope } from '../../kibana_legacy/
// EXPORT types
export {
IndexPatternsContract,
IIndexPattern,
IndexPattern,
indexPatterns,
IndexPatternField,
Expand Down

0 comments on commit c153ec7

Please sign in to comment.