1 import type { ParamsExcludingFunctions } from './Utils'
2 import type { EditorRequiresClientMethods } from './EditorRequiresClientMethods'
3 import type { EditorBridgeMessageType } from './EditorBridgeMessageType'
5 export type EditorToClientGenericMessage = {
6 type: EditorBridgeMessageType.EditorToClientInvokation | EditorBridgeMessageType.EditorToClientReply
9 export type EditorToClientReplyMessage = {
12 type: EditorBridgeMessageType.EditorToClientReply
15 export type EditorToClientInvokationMessage<K extends keyof EditorRequiresClientMethods> = {
18 args: ParamsExcludingFunctions<Parameters<EditorRequiresClientMethods[K]>>
19 type: EditorBridgeMessageType.EditorToClientInvokation