Skip to content

Commit

Permalink
fixed types error
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Sep 2, 2023
1 parent 5f22bb5 commit 5069afd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
EuiDataGridCellValueElementProps,
EuiDataGridCustomBodyProps,
} from '@elastic/eui';
import { Storage } from '@kbn/kibana-utils-plugin/public';
import { act } from 'react-dom/test-utils';
import { findTestSubject } from '@elastic/eui/lib/test';
import { buildDataViewMock, deepMockedFields, esHitsMock } from '@kbn/discover-utils/src/__mocks__';
Expand Down Expand Up @@ -64,7 +65,7 @@ function getProps(): UnifiedDataTableProps {
uiSettings: services.uiSettings,
dataViewFieldEditor: services.dataViewFieldEditor,
toastNotifications: services.toastNotifications,
storage: services.storage,
storage: services.storage as unknown as Storage,
data: services.data,
theme: services.theme,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { isCompleteResponse, ISearchSource } from '@kbn/data-plugin/public';
import { SAMPLE_SIZE_SETTING, buildDataTableRecordList } from '@kbn/discover-utils';
import type { EsHitRecord } from '@kbn/discover-utils/types';
import { getSearchResponseInterceptedWarnings } from '@kbn/search-response-warnings';
import type { RecordsFetchResponse } from '../../types';
import { DISABLE_SHARD_FAILURE_WARNING } from '../../../../common/constants';
import { FetchDeps } from './fetch_all';
import { RecordsFetchResponse } from '../../types';

/**
* Requests the documents for Discover. This will return a promise that will resolve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { Datatable } from '@kbn/expressions-plugin/public';
import type { DataView } from '@kbn/data-views-plugin/common';
import { textBasedQueryStateToAstWithValidation } from '@kbn/data-plugin/common';
import type { DataTableRecord } from '@kbn/discover-utils/types';
import { RecordsFetchResponse } from '../../types';
import type { RecordsFetchResponse } from '../../types';

interface TextBasedErrorResponse {
error: {
Expand Down

0 comments on commit 5069afd

Please sign in to comment.