EditorEventData beta
TypeAlias of @v12-engine/editor
ts
export type EditorEventData<K extends EditorEventName> = EditorEvents[K] extends void ? [] : [data: EditorEvents[K]];What emit takes after the name: the event's data, or nothing for an event that has none (void)