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:
@@ -11,6 +11,8 @@ export type ToasterToast = {
|
|||||||
action?: React.ReactNode
|
action?: React.ReactNode
|
||||||
variant?: "default" | "destructive"
|
variant?: "default" | "destructive"
|
||||||
duration?: number
|
duration?: number
|
||||||
|
open?: boolean
|
||||||
|
onOpenChange?: (open: boolean) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const actionTypes = {
|
const actionTypes = {
|
||||||
|
|||||||
Reference in New Issue
Block a user