Мне удалось исправить это с некоторыми изменениями в моей кодовой базе.
Метод предупреждения управления теперь возвращает сам тост
export function manageWarning(id, message, disableAutoClose) {
toastr.options.timeOut = disableAutoClose ? 0 : Global.MESSAGE_ERROR_DURATION;
toastr.options.extendedTimeOut = disableAutoClose ? 0 :
toastr.options.extendedTimeOut;
return toastr.warning(message);
}
Теперь потребитель может сохранить ссылку на этот тост
this.toast = manageWarning('', 'You are running on a small screen resolution, this feature it\'s only available on screens up to 1024 px, please scale up the window again', true);
Имея это в виду, теперь я могу просто позвонить
this.toast.fadeIn(); // Method to show the toast again.
this.toast.fadeOut(); // Method close the toast.