Skip to content

Commit

Permalink
move EventJSON export to custom module
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed Jun 17, 2024
1 parent c708fe4 commit 9859158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/types/modules/act.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {MockStep as ActMockStep, StepIdentifier as ActStepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import type {EventJSON} from '@kie/act-js/build/src/action-event/action-event.types';
import type {StepIdentifier as ActStepIdentifier, MockStep} from '@kie/act-js/build/src/step-mocker/step-mocker.types';

declare module '@kie/act-js' {
type StepIdentifier = ActStepIdentifier & {
Expand All @@ -11,7 +12,5 @@ declare module '@kie/act-js' {
inputs?: string[];
};

type MockStep = ActMockStep;

export type {StepIdentifier, MockStep};
export type {StepIdentifier, MockStep, EventJSON};
}
3 changes: 1 addition & 2 deletions workflow_tests/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {StepIdentifier} from '@kie/act-js';
import type {EventJSON} from '@kie/act-js/build/src/action-event/action-event.types';
import type {EventJSON, StepIdentifier} from '@kie/act-js';
import fs from 'fs';
import path from 'path';
import yaml from 'yaml';
Expand Down

0 comments on commit 9859158

Please sign in to comment.