Skip to content

Commit

Permalink
Improve type after PR elastic#82125
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Nov 3, 2020
1 parent 484593c commit bf2789f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions x-pack/plugins/case/server/connectors/case/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export type CaseActionType = ActionType<
CaseExecutorResponse | {}
>;

export type CaseActionTypeWithoutExecutor = ActionType<CaseConfiguration, {}, CaseExecutorParams>;

export type CaseActionTypeExecutorOptions = ActionTypeExecutorOptions<
CaseConfiguration,
{},
Expand Down
8 changes: 4 additions & 4 deletions x-pack/plugins/case/server/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
} from '../services';

import { getActionType as getCaseConnector } from './case';
import { CaseActionTypeWithoutExecutor } from './case/types';

export interface GetActionTypeParams {
logger: Logger;
Expand All @@ -32,9 +31,10 @@ export interface RegisterConnectorsArgs extends GetActionTypeParams {
actionsRegisterType<
Config extends ActionTypeConfig = ActionTypeConfig,
Secrets extends ActionTypeSecrets = ActionTypeSecrets,
Params extends ActionTypeParams = ActionTypeParams
Params extends ActionTypeParams = ActionTypeParams,
ExecutorResultData = void
>(
actionType: ActionType<Config, Secrets, Params>
actionType: ActionType<Config, Secrets, Params, ExecutorResultData>
): void;
}

Expand All @@ -51,6 +51,6 @@ export const registerConnectors = ({
caseService,
caseConfigureService,
userActionService,
}) as CaseActionTypeWithoutExecutor
})
);
};

0 comments on commit bf2789f

Please sign in to comment.