remix-toast
Version:
Utility functions for server-side toast notifications
18 lines (15 loc) • 709 B
TypeScript
import { z } from 'zod';
declare const toastMessageSchema: z.ZodObject<{
message: z.ZodString;
description: z.ZodOptional<z.ZodString>;
duration: z.ZodOptional<z.ZodNumber>;
type: z.ZodCustom<"error" | "info" | "success" | "warning", "error" | "info" | "success" | "warning">;
}, z.core.$loose>;
declare const toastMessageWithoutTypeSchema: z.ZodObject<{
message: z.ZodString;
description: z.ZodOptional<z.ZodString>;
duration: z.ZodOptional<z.ZodNumber>;
}, z.core.$loose>;
type ToastMessage = z.infer<typeof toastMessageSchema> & {};
type ToastMessageWithoutType = z.infer<typeof toastMessageWithoutTypeSchema> & {};
export { ToastMessage as T, ToastMessageWithoutType as a };