Skip to content

Commit a9ae8ba

Browse files
author
Liza K
committed
ts fixes
1 parent 6561ad6 commit a9ae8ba

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/legacy/core_plugins/data/public/search/fetch/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { ISearchStart, LegacyApiCaller } from 'src/plugins/data/public';
20+
import { ISearchStart } from 'src/plugins/data/public';
2121
import { IUiSettingsClient } from '../../../../../../core/public';
2222

2323
export interface FetchOptions {

src/plugins/data/public/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export * from './field_formats_provider';
5555
export * from './index_patterns';
5656
export * from './search';
5757
export * from './query';
58-
export * from './es_client';
5958
export * from './ui';
6059
export {
6160
// es query

src/plugins/data/public/search/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ export { SYNC_SEARCH_STRATEGY } from './sync_search_strategy';
4040
export { IKibanaSearchResponse, IKibanaSearchRequest } from '../../common/search';
4141

4242
export { ISearchStart } from './search_service';
43+
44+
export { LegacyApiCaller } from './es_client';

src/plugins/data/public/search/search_service.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ describe('Search service', () => {
3333

3434
describe('setup()', () => {
3535
it('exposes proper contract', async () => {
36-
const setup = searchService.setup(mockCoreSetup);
36+
const setup = searchService.setup(mockCoreSetup, {
37+
version: '8',
38+
} as any);
3739
expect(setup).toHaveProperty('registerSearchStrategyContext');
3840
expect(setup).toHaveProperty('registerSearchStrategyProvider');
3941
});

0 commit comments

Comments
 (0)