Skip to main content

Variable: typedStatusUpdateSchema

const typedStatusUpdateSchema: z.ZodType<StatusUpdate>

Defined in: shared/validation/statusUpdateSchemas.ts:112

NOTE: Some downstream consumers (e.g. preload bridges) rely on safeParse returning the shared StatusUpdate interface. With --isolatedDeclarations and strict settings, Zod's inferred output type for complex discriminated monitor/site unions can become noisy (e.g. optionalizing required fields). The runtime schema is the source of truth; we cast the type for ergonomic, stable typing across IPC boundaries.