Skip to content

ChartResizeReasonSchema

const ChartResizeReasonSchema: ZodObject<{ current: ZodObject<{ columns: ZodNumber; rows: ZodNumber; }, $strip>; previous: ZodObject<{ columns: ZodNumber; rows: ZodNumber; }, $strip>; type: ZodLiteral<"chart_resize">; }, $strip>

Defined in: packages/protocol/src/lib/request.ts:79

Wire-format Zod parser for ChartResizeReason. Both previous and current are full ChartDimensionsSchema objects (positive integer rows + columns) — a resize event must always carry the before/after shape, not a delta.