diff --git a/libs/components/src/toast/toast.service.ts b/libs/components/src/toast/toast.service.ts index 8c519194f9..974e7546e1 100644 --- a/libs/components/src/toast/toast.service.ts +++ b/libs/components/src/toast/toast.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@angular/core"; -import { ActiveToast, IndividualConfig, ToastrService } from "ngx-toastr"; +import { IndividualConfig, ToastrService } from "ngx-toastr"; import type { ToastComponent } from "./toast.component"; import { calculateToastTimeout } from "./utils"; @@ -18,7 +18,7 @@ export type ToastOptions = { export class ToastService { constructor(private toastrService: ToastrService) {} - showToast(options: ToastOptions): ActiveToast { + showToast(options: ToastOptions): void { const toastrConfig: Partial = { payload: { message: options.message, @@ -31,7 +31,7 @@ export class ToastService { : calculateToastTimeout(options.message), }; - return this.toastrService.show(null, options.title, toastrConfig); + this.toastrService.show(null, options.title, toastrConfig); } /**