mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Standardize how we use defineEmits in components using the composition API (no-changelog) (#9934)
This commit is contained in:
@@ -176,16 +176,12 @@ import { useI18n } from '@/composables/useI18n';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
const emit = defineEmits<{
|
||||
(value: 'saveKeyboardShortcut', event: KeyboardEvent): void;
|
||||
(value: 'valueChanged', parameterData: IUpdateInformation): void;
|
||||
(value: 'switchSelectedNode', nodeTypeName: string): void;
|
||||
(
|
||||
value: 'openConnectionNodeCreator',
|
||||
nodeTypeName: string,
|
||||
connectionType: NodeConnectionType,
|
||||
): void;
|
||||
(value: 'redrawNode', nodeName: string): void;
|
||||
(value: 'stopExecution'): void;
|
||||
saveKeyboardShortcut: [event: KeyboardEvent];
|
||||
valueChanged: [parameterData: IUpdateInformation];
|
||||
switchSelectedNode: [nodeTypeName: string];
|
||||
openConnectionNodeCreator: [nodeTypeName: string, connectionType: NodeConnectionType];
|
||||
redrawNode: [nodeName: string];
|
||||
stopExecution: [];
|
||||
}>();
|
||||
|
||||
const props = withDefaults(
|
||||
|
||||
Reference in New Issue
Block a user