refactor(editor): Replace mixed style of defineProps with the new style (no-changelog) (#9787)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-06-18 09:55:10 +02:00
committed by GitHub
parent 1e8716a607
commit 08c6e9b571
27 changed files with 161 additions and 277 deletions

View File

@@ -85,9 +85,9 @@ import { toRefs } from '@vueuse/core';
// #region Props
// ---------------------------------------------------------------------------
const props = defineProps({
reportError: Boolean,
});
const props = defineProps<{
reportError: Boolean;
}>();
// #endregion

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import type { PropType } from 'vue';
import { computed } from 'vue';
import N8nHeading from 'n8n-design-system/components/N8nHeading';
import NodeIcon from '@/components/NodeIcon.vue';
@@ -17,21 +16,16 @@ import { useTelemetry } from '@/composables/useTelemetry';
import type { TemplateCredentialKey } from '@/utils/templates/templateTransforms';
// Props
const props = defineProps({
order: {
type: Number,
required: true,
const props = withDefaults(
defineProps<{
order: number;
credentials: CredentialUsages;
selectedCredentialId: string | null;
}>(),
{
selectedCredentialId: null,
},
credentials: {
type: Object as PropType<CredentialUsages>,
required: true,
},
selectedCredentialId: {
type: String,
required: false,
default: null,
},
});
);
const emit = defineEmits<{
(