ToastsContextType
Public TypeAlias
Signature
type ToastsContextType = {
addToast: (
toast: Omit<TLToast, 'id'> & {
id?: string
}
) => string
removeToast: (id: TLToast['id']) => string
clearToasts: () => void
toasts: TLToast[]
}