mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix types
This commit is contained in:
@@ -247,10 +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: {
|
||||
parse(data: unknown): SmtpSelection
|
||||
_output: SmtpSelection
|
||||
} = z
|
||||
export const smtpShape: z.ZodType<SmtpSelection> = z
|
||||
.discriminatedUnion('selection', [
|
||||
z.object({
|
||||
selection: z.literal('disabled'),
|
||||
|
||||
Reference in New Issue
Block a user