Type Alias: EmbedToHostMessage
ts
type EmbedToHostMessage =
| {
requestId: string;
state: StateValues;
type: typeof state;
}
| {
requestId: string;
stateSchema: StateSchema;
type: typeof stateSchema;
}
| {
state: StateValues;
type: typeof stateChange;
}
| {
stateSchema: StateSchema;
type: typeof ready;
}
| {
error: StateError;
type: typeof error;
};Messages the frame sends out to its host.