Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
portikM committed Dec 12, 2024
1 parent c28a6c9 commit ffbb50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KToaster/ToastManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffbb50c

Please sign in to comment.