initToast
Exported from
@ryfylke-react/toast
Arguments
initToast takes no arguments, but it does accept a typescript generic - which specifies your desired toast interface.
Returns
toast- Described hereuseToasts- Described hereToastProvider- Described heresubscribeToToasts- A function that takes one argument,callback: (toast: T) => void.
You can use subscribeToToasts when outside of React to listen to toast-events.