Skip to content

Commit c743e25

Browse files
author
Liza K
committed
ISearchInterceptor interface
1 parent 675a619 commit c743e25

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,5 @@ export class SearchInterceptor {
199199
}
200200
};
201201
}
202+
203+
export type ISearchInterceptor = PublicMethodsOf<SearchInterceptor>;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { calculateBounds, TimeRange } from '../../common/query';
2828

2929
import { IndexPatternsContract } from '../index_patterns/index_patterns';
3030
import { GetInternalStartServicesFn } from '../types';
31-
import { SearchInterceptor } from './search_interceptor';
31+
import { ISearchInterceptor, SearchInterceptor } from './search_interceptor';
3232
import {
3333
getAggTypes,
3434
getAggTypesFunctions,
@@ -54,7 +54,7 @@ interface SearchServiceStartDependencies {
5454
export class SearchService implements Plugin<ISearchSetup, ISearchStart> {
5555
private esClient?: LegacyApiCaller;
5656
private readonly aggTypesRegistry = new AggTypesRegistry();
57-
private searchInterceptor!: SearchInterceptor;
57+
private searchInterceptor!: ISearchInterceptor;
5858
private usageCollector?: SearchUsageCollector;
5959

6060
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface ISearchStartLegacy {
5555
}
5656

5757
export interface SearchEnhancements {
58-
searchInterceptor: SearchInterceptor;
58+
searchInterceptor: ISearchInterceptor;
5959
}
6060
/**
6161
* The setup contract exposed by the Search plugin exposes the search strategy extension

0 commit comments

Comments
 (0)