1 import type { ClientRequiresEditorMethods } from './ClientRequiresEditorMethods'
2 import type { EditorBridgeMessageType } from './EditorBridgeMessageType'
3 import type { ParamsExcludingFunctions } from './Utils'
5 export type ClientToEditorGenericMessage = {
6 type: EditorBridgeMessageType.ClientToEditorInvokation | EditorBridgeMessageType.ClientToEditorReply
9 export type ClientToEditorReplyMessage = {
12 type: EditorBridgeMessageType.ClientToEditorReply
15 export type ClientToEditorInvokationMessage<K extends keyof ClientRequiresEditorMethods> = {
18 args: ParamsExcludingFunctions<Parameters<ClientRequiresEditorMethods[K]>>
19 type: EditorBridgeMessageType.ClientToEditorInvokation