Cannot dynamically set Toast severity #1955
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Breaking our discussion into a new separate issue as requested from:
#1856
This is my usage of toast:
With the current implementation, there's not a way to dynamically set 'severity' as typescript can't evaluate that our local variable is one of the valid options from https://github.com/primefaces/primevue/blob/master/src/components/toast/Toast.d.ts#L6.
VSCode gripes about the severity usage above with:

The text was updated successfully, but these errors were encountered: