Skip to content

Commit

Permalink
refactor isActionTypeExecutorResult again
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Oct 5, 2020
1 parent 9453c18 commit 32964a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/actions/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export interface ActionResult {

// the result returned from an action type executor function
const ActionTypeExecutorResultStatusValues = ['ok', 'error'] as const;
type ActionTypeExecutorResultStatus = typeof ActionTypeExecutorResultStatusValues[number];

export interface ActionTypeExecutorResult<Data> {
actionId: string;
status: typeof ActionTypeExecutorResultStatusValues[number];
status: ActionTypeExecutorResultStatus;
message?: string;
serviceMessage?: string;
data?: Data;
Expand Down

0 comments on commit 32964a7

Please sign in to comment.