clarify timing projection schema cast
This commit is contained in:
@@ -19,8 +19,8 @@ interface TimingState {
|
|||||||
descriptorSeen: boolean
|
descriptorSeen: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cast for the optional values: under exactOptionalPropertyTypes zod infers
|
// Zod's optional output includes explicit `undefined`; with
|
||||||
// `number | undefined` where the interface declares absent-or-number fields.
|
// 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({
|
||||||
|
|||||||
Reference in New Issue
Block a user