ToastsContextType

Public TypeAlias

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

Omit, TLToast

Edit this page
Last edited on 11 May 2023
ToastsContextToastsProvider