From 2a70aa18b79b69db25ada2632af87e300b46b11d Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 16 Mar 2025 09:34:35 +0000 Subject: [PATCH] Fix TS2353 error in use-toast.ts The 'open' property was not defined in the ToasterToast type, causing a TypeScript error. Updated the ToasterToast type definition to include the 'open' property. --- src/hooks/use-toast.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/use-toast.ts b/src/hooks/use-toast.ts index a684d4f..5e8883f 100644 --- a/src/hooks/use-toast.ts +++ b/src/hooks/use-toast.ts @@ -11,6 +11,8 @@ export type ToasterToast = { action?: React.ReactNode variant?: "default" | "destructive" duration?: number + open?: boolean + onOpenChange?: (open: boolean) => void } const actionTypes = {