This commit is contained in:
Matt Hill
2026-03-19 11:54:28 -06:00
parent 97b3b548c0
commit 8fbcf44dec
2 changed files with 6 additions and 3 deletions

View File

@@ -247,7 +247,10 @@ 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.ZodType<SmtpSelection> = z
export const smtpShape: {
parse(data: unknown): SmtpSelection
_output: SmtpSelection
} = z
.discriminatedUnion('selection', [
z.object({
selection: z.literal('disabled'),