Skip to content

Commit c06bc97

Browse files
committed
refactor: move TriggerMeta interface to a separate types file
### Changes Made - Removed the `TriggerMeta` interface from `ActionExecutionSagas.ts` and created a new `types.ts` file to define it. - Updated imports in `ActionExecutionSagas.ts` to reference the new `types.ts` file for better organization and clarity.
1 parent 3f7204d commit c06bc97

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

app/client/src/ce/sagas/ActionExecution/ActionExecutionSagas.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ReduxActionTypes } from "ee/constants/ReduxActionConstants";
33
import type {
44
EventType,
55
ExecuteTriggerPayload,
6-
TriggerSource,
76
} from "constants/AppsmithActionConstants/ActionConstants";
87
import { TriggerKind } from "constants/AppsmithActionConstants/ActionConstants";
98
import log from "loglevel";
@@ -46,13 +45,7 @@ import type { DefaultRootState } from "react-redux";
4645
import { getAction } from "ee/selectors/entitiesSelector";
4746
import { getSourceFromTriggerMeta } from "ee/entities/AppsmithConsole/utils";
4847
import { globalFunctionLogoutUser } from "../userSagas";
49-
50-
export interface TriggerMeta {
51-
source?: TriggerSource;
52-
triggerPropertyName?: string;
53-
triggerKind?: TriggerKind;
54-
onPageLoad: boolean;
55-
}
48+
import type { TriggerMeta } from "./types";
5649

5750
/**
5851
* The controller saga that routes different trigger effects to its executor sagas
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type {
2+
TriggerKind,
3+
TriggerSource,
4+
} from "constants/AppsmithActionConstants/ActionConstants";
5+
6+
export interface TriggerMeta {
7+
source?: TriggerSource;
8+
triggerPropertyName?: string;
9+
triggerKind?: TriggerKind;
10+
onPageLoad: boolean;
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "ce/sagas/ActionExecution/ActionExecutionSagas";
2+
export * from "ce/sagas/ActionExecution/types";

0 commit comments

Comments
 (0)