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.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:34:35 +00:00
parent 2851f8d03c
commit 2a70aa18b7

View File

@@ -11,6 +11,8 @@ export type ToasterToast = {
action?: React.ReactNode
variant?: "default" | "destructive"
duration?: number
open?: boolean
onOpenChange?: (open: boolean) => void
}
const actionTypes = {