From 1bb6672498b0142d8ebc4b9eb15322ab51c4cf43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 24 Apr 2023 13:58:22 +0200 Subject: [PATCH] refactor(editor): Combine type imports in `editor-ui` (no-changelog) (#6072) :zap: Combine type imports in `editor-ui` --- packages/editor-ui/src/stores/segment.ts | 3 +-- packages/editor-ui/src/stores/workflows.ts | 2 +- packages/editor-ui/src/utils/typeGuards.ts | 3 +-- packages/editor-ui/src/utils/userUtils.ts | 4 +++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/editor-ui/src/stores/segment.ts b/packages/editor-ui/src/stores/segment.ts index d8b106add..2191dd58b 100644 --- a/packages/editor-ui/src/stores/segment.ts +++ b/packages/editor-ui/src/stores/segment.ts @@ -6,10 +6,9 @@ import { SET_NODE_TYPE, WEBHOOK_NODE_TYPE, } from '@/constants'; -import type { ITelemetryTrackProperties } from 'n8n-workflow'; import { defineStore } from 'pinia'; import { useSettingsStore } from '@/stores/settings'; -import type { INodeTypeDescription, IRun } from 'n8n-workflow'; +import type { INodeTypeDescription, IRun, ITelemetryTrackProperties } from 'n8n-workflow'; import { useWorkflowsStore } from '@/stores/workflows'; import { useNodeTypesStore } from '@/stores/nodeTypes'; diff --git a/packages/editor-ui/src/stores/workflows.ts b/packages/editor-ui/src/stores/workflows.ts index e784a3a80..c0e66d7e5 100644 --- a/packages/editor-ui/src/stores/workflows.ts +++ b/packages/editor-ui/src/stores/workflows.ts @@ -36,6 +36,7 @@ import type { IAbstractEventMessage, IConnection, IConnections, + IDataObject, IExecutionsSummary, INode, INodeConnections, @@ -53,7 +54,6 @@ import type { ITaskData, IWorkflowSettings, } from 'n8n-workflow'; -import type { IDataObject } from 'n8n-workflow'; import { deepCopy, NodeHelpers, Workflow } from 'n8n-workflow'; import Vue from 'vue'; diff --git a/packages/editor-ui/src/utils/typeGuards.ts b/packages/editor-ui/src/utils/typeGuards.ts index 595505aff..e38edb441 100644 --- a/packages/editor-ui/src/utils/typeGuards.ts +++ b/packages/editor-ui/src/utils/typeGuards.ts @@ -1,6 +1,5 @@ -import type { NewCredentialsModal } from './../Interface'; import type { INodeParameterResourceLocator } from 'n8n-workflow'; -import type { ICredentialsResponse } from '@/Interface'; +import type { ICredentialsResponse, NewCredentialsModal } from '@/Interface'; /* Type guards used in editor-ui project diff --git a/packages/editor-ui/src/utils/userUtils.ts b/packages/editor-ui/src/utils/userUtils.ts index b745ea9c5..b9797f0a1 100644 --- a/packages/editor-ui/src/utils/userUtils.ts +++ b/packages/editor-ui/src/utils/userUtils.ts @@ -68,8 +68,10 @@ import type { IPersonalizationSurveyAnswersV4, IPersonalizationSurveyVersions, IUser, + ILogInStatus, + IRole, + IUserPermissions, } from '@/Interface'; -import type { ILogInStatus, IRole, IUserPermissions } from '@/Interface'; /* Utility functions used to handle users in n8n