# Type alias PostMessageAction

PostMessageAction: {
action?: "updateHeight";
height: number;
type: "updateHeight";
} | {
action?: "focus";
focusOn: "firstElement" | "lastElement";
type: "focus";
} | {
action?: never;
hook: HookData;
type: "hook";
}

#### Type declaration

- ##### `Optional` action?: "updateHeight"

- ##### height: number

- ##### type: "updateHeight"

#### Type declaration

- ##### `Optional` action?: "focus"

- ##### focusOn: "firstElement" | "lastElement"

- ##### type: "focus"

#### Type declaration

- ##### `Optional` action?: never

- ##### hook: HookData

- ##### type: "hook"

- Defined in src/lib/types/types.ts:306