// $ExpectError toast.error(toastContent, { onClose: false }) toast.error(toastContent, { onClose: () => console.log('close') }) // $ExpectError const isActiveBad: number = toast.isActive(1) const isActiveGood: boolean = toast.isActive(1) // $ExpectError toast.dismiss('1') toast.dismiss() toast.dismiss(1) // $ExpectError toast.update() toast.update(1) toast.update(1, { render: toastContent }) // $ExpectError style({ width: 100 }) style({ width: '100px' }) function BadToast() { // $ExpectError return <ToastContainer position={toast.POSITION.TOPP_RIGHT} /> } function GoodToast() { return ( <ToastContainer