From 98591587bf689b0c61b7aeb8a1c18b2297b069cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barbara=20Gawe=C5=82-Kucab?= Date: Mon, 17 Jun 2024 16:10:26 +0200 Subject: [PATCH] move EventJSON export to custom module --- src/types/modules/act.d.ts | 7 +++---- workflow_tests/utils/utils.ts | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/types/modules/act.d.ts b/src/types/modules/act.d.ts index da2041d430b9..43b13a47d3f0 100644 --- a/src/types/modules/act.d.ts +++ b/src/types/modules/act.d.ts @@ -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 & { @@ -11,7 +12,5 @@ declare module '@kie/act-js' { inputs?: string[]; }; - type MockStep = ActMockStep; - - export type {StepIdentifier, MockStep}; + export type {StepIdentifier, MockStep, EventJSON}; } diff --git a/workflow_tests/utils/utils.ts b/workflow_tests/utils/utils.ts index e0ff88a3a5bd..494f830fb744 100644 --- a/workflow_tests/utils/utils.ts +++ b/workflow_tests/utils/utils.ts @@ -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';