Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jul 13, 2020
1 parent 4434eb7 commit 6d86b38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plugins/data/server/search/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ import { RequestHandlerContext } from '../../../../core/server';
import { IKibanaSearchResponse, IKibanaSearchRequest } from '../../common/search';
import { IEsSearchRequest, IEsSearchResponse } from './es_search';

export interface ISearchOptions {
/**
* An `AbortSignal` that allows the caller of `search` to abort a search request.
*/
signal?: AbortSignal;
}

export interface ISearchSetup {
/**
* Extension point exposed for other plugins to register their own search
Expand All @@ -38,17 +45,10 @@ export interface ISearchStart {
search: (
context: RequestHandlerContext,
request: IKibanaSearchRequest,
options: any
options: ISearchOptions
) => Promise<IKibanaSearchResponse>;
}

export interface ISearchOptions {
/**
* An `AbortSignal` that allows the caller of `search` to abort a search request.
*/
signal?: AbortSignal;
}

/**
* Search strategy interface contains a search method that takes in a request and returns a promise
* that resolves to a response.
Expand Down

0 comments on commit 6d86b38

Please sign in to comment.