refactor(editor): Fix TypeScript issues in template code (no-changelog) (#9574)

This commit is contained in:
Elias Meire
2024-05-31 15:07:49 +02:00
committed by GitHub
parent d361b42c70
commit 1cefd488fe
11 changed files with 94 additions and 44 deletions

View File

@@ -26,7 +26,7 @@
import { onMounted, onBeforeUnmount, ref, computed, watch } from 'vue';
import { useI18n } from '@/composables/useI18n';
import { useToast } from '@/composables/useToast';
import type { IWorkflowDb } from '@/Interface';
import type { IWorkflowDb, IWorkflowTemplate } from '@/Interface';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useExecutionsStore } from '@/stores/executions.store';
@@ -34,7 +34,7 @@ const props = withDefaults(
defineProps<{
loading?: boolean;
mode?: 'workflow' | 'execution';
workflow?: IWorkflowDb;
workflow?: IWorkflowDb | IWorkflowTemplate['workflow'];
executionId?: string;
executionMode?: string;
loaderType?: 'image' | 'spinner';