This commit is contained in:
Matt Hill
2026-03-19 11:42:43 -06:00
parent 6c72a22178
commit 97b3b548c0

View File

@@ -247,7 +247,7 @@ export type SmtpSelection =
* Zod schema for persisting SMTP selection in a store file model.
* Use this instead of `smtpInputSpec.validator` to avoid cross-zod-instance issues.
*/
export const smtpShape: z.ZodCatch<z.ZodType<SmtpSelection>> = z
export const smtpShape: z.ZodType<SmtpSelection> = z
.discriminatedUnion('selection', [
z.object({
selection: z.literal('disabled'),
@@ -266,4 +266,4 @@ export const smtpShape: z.ZodCatch<z.ZodType<SmtpSelection>> = z
.catch({ provider: providerShape.parse(undefined) }),
}),
])
.catch({ selection: 'disabled' as const, value: {} })
.catch({ selection: 'disabled' as const, value: {} }) as any