ot
ot: {
toast: (
message: string,
title?: string,
options?: {
duration?: number;
placement?:
| "top-right"
| "top-left"
| "top-center"
| "bottom-right"
| "bottom-left"
| "bottom-center";
variant?: "success"
| "danger"
| "warning";
},
) => void;
toastEl: (
el: HTMLElement | HTMLTemplateElement,
options?: { duration?: number; placement?: string },
) => void;
}
The
Windowinterface represents a window containing a DOM document; thedocumentproperty points to the DOM document loaded in that window.MDN Reference