T

ToastHandle

A handle returned when showing a toast, used to update or close it.

type ToastHandle = { … }

Members

close() => void

Plays the toast's exit animation, then removes it.

update(options: Partial<ToastOptions>) => void

Merges options into the shown toast. Does nothing once the toast is gone.