Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 215x | import { z } from "zod"; export interface BannerNotification { notifId: string; header: string; body: string; buttonText?: string; buttonLink?: string; pubDate: string; expDate?: string; disabled?: boolean; } export const BannerNotificationSchema = z.object({ notifId: z.string(), body: z.string(), header: z.string(), pubDate: z.string(), expDate: z.string(), buttonLink: z.string().optional().default(""), buttonText: z.string().optional().default(""), disabled: z.boolean().optional().default(false), }); export type ValidBannerNotification = z.infer<typeof BannerNotificationSchema>; |