Explorar el Código

clarify timing projection schema cast

kingwl hace 2 meses
padre
commit
c183fae6f9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/subagent/subagent/src/projection.ts

+ 2 - 2
packages/subagent/subagent/src/projection.ts

@@ -19,8 +19,8 @@ interface TimingState {
   descriptorSeen: boolean
   descriptorSeen: boolean
 }
 }
 
 
-// Cast for the optional values: under exactOptionalPropertyTypes zod infers
-// `number | undefined` where the interface declares absent-or-number fields.
+// Zod's optional output includes explicit `undefined`; with
+// exactOptionalPropertyTypes the public interface permits omission only.
 const projectionSchema = z.object({
 const projectionSchema = z.object({
   settledMs: z.number().int().nonnegative(),
   settledMs: z.number().int().nonnegative(),
   active: z.object({
   active: z.object({