diff --git a/src/components/KToaster/ToastManager.ts b/src/components/KToaster/ToastManager.ts index e54a1ab90b..20c9503390 100644 --- a/src/components/KToaster/ToastManager.ts +++ b/src/components/KToaster/ToastManager.ts @@ -51,7 +51,7 @@ export default class ToastManager { // @ts-ignore const { key, timeoutMilliseconds, appearance, message, title } = args - const toastKey: any = key || getUniqueStringId() + const toastKey: string = key || getUniqueStringId() const toastAppearance: ToasterAppearance = (appearance && Object.keys(ToasterAppearances).indexOf(appearance) !== -1) ? appearance : toasterDefaults.appearance const timer: number = this.setTimer(key, timeoutMilliseconds || toasterDefaults.timeoutMilliseconds) const toasterMessage = typeof args === 'string' ? args : message