mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Standardize how we use defineEmits in components using the composition API (no-changelog) (#9934)
This commit is contained in:
@@ -30,7 +30,7 @@ import type { IDataObject } from 'n8n-workflow';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: 'nodeTypeSelected', _: [actionKey: string, nodeName: string] | [nodeName: string]): void;
|
||||
nodeTypeSelected: [value: [actionKey: string, nodeName: string] | [nodeName: string]];
|
||||
}>();
|
||||
const telemetry = useTelemetry();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface Props {
|
||||
}
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: 'nodeTypeSelected', nodeTypes: string[]): void;
|
||||
nodeTypeSelected: [nodeTypes: string[]];
|
||||
}>();
|
||||
|
||||
const i18n = useI18n();
|
||||
|
||||
@@ -49,8 +49,8 @@ const props = defineProps<Props>();
|
||||
const { resetViewStacks } = useViewStacks();
|
||||
const { registerKeyHook } = useKeyboardNavigation();
|
||||
const emit = defineEmits<{
|
||||
(event: 'closeNodeCreator'): void;
|
||||
(event: 'nodeTypeSelected', value: string[]): void;
|
||||
closeNodeCreator: [];
|
||||
nodeTypeSelected: [value: string[]];
|
||||
}>();
|
||||
const uiStore = useUIStore();
|
||||
const aiStore = useAIStore();
|
||||
|
||||
@@ -38,7 +38,7 @@ withDefaults(defineProps<Props>(), {
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: 'update:modelValue', value: string): void;
|
||||
'update:modelValue': [value: string];
|
||||
}>();
|
||||
|
||||
const state = reactive({
|
||||
|
||||
Reference in New Issue
Block a user