mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user