Skip to content

Commit

Permalink
extend DataRequestHandlerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Mar 1, 2021
1 parent 64bb608 commit fe7d6cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/plugins/data/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ export {
SearchUsage,
SearchSessionService,
ISearchSessionService,
SearchRequestHandlerContext,
} from './search';

export { DataRequestHandlerContext } from './types';
Expand Down
6 changes: 2 additions & 4 deletions x-pack/plugins/infra/server/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* 2.0.
*/

import type { RequestHandlerContext } from 'src/core/server';
import type { SearchRequestHandlerContext } from '../../../../src/plugins/data/server';
import type { DataRequestHandlerContext } from '../../../../src/plugins/data/server';
import { MlPluginSetup } from '../../ml/server';

export type MlSystem = ReturnType<MlPluginSetup['mlSystemProvider']>;
Expand All @@ -27,7 +26,6 @@ export type InfraRequestHandlerContext = InfraMlRequestHandlerContext &
/**
* @internal
*/
export interface InfraPluginRequestHandlerContext extends RequestHandlerContext {
export interface InfraPluginRequestHandlerContext extends DataRequestHandlerContext {
infra: InfraRequestHandlerContext;
search: SearchRequestHandlerContext;
}

0 comments on commit fe7d6cb

Please sign in to comment.