Skip to content

Commit

Permalink
fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Oct 19, 2020
1 parent 1e0d4bb commit 9ec1a19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function create(id: string) {

return new IndexPattern({
spec: { id, type, version, timeFieldName, fields, title },
savedObjectsClient: {} as any,
fieldFormats: fieldFormatsMock,
shortDotsEnable: false,
metaFields: [],
Expand Down Expand Up @@ -200,7 +199,6 @@ describe('IndexPattern', () => {
const spec = indexPattern.toSpec();
const restoredPattern = new IndexPattern({
spec,
savedObjectsClient: {} as any,
fieldFormats: fieldFormatsMock,
shortDotsEnable: false,
metaFields: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ export class IndexPatternsService {

const indexPattern = new IndexPattern({
spec,
savedObjectsClient: this.savedObjectsClient,
fieldFormats: this.fieldFormats,
shortDotsEnable,
metaFields,
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/data/common/search/tabify/tabify_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { SearchResponse } from 'elasticsearch';
import _ from 'lodash';
import { IndexPattern } from '../../index_patterns/index_patterns';
import { DatatableColumn } from '../../../../expressions/common/expression_types/specs';
import { Datatable, DatatableColumn } from '../../../../expressions/common';

export function flattenHit(
hit: Record<string, any>,
Expand Down Expand Up @@ -77,7 +77,7 @@ export const tabifyDocs = (
esResponse: SearchResponse<unknown>,
index?: IndexPattern,
params: TabifyDocsOptions = {}
) => {
): Datatable => {
const columns: DatatableColumn[] = [];

const rows = esResponse.hits.hits
Expand Down

0 comments on commit 9ec1a19

Please sign in to comment.