-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict Toast/Message SeverityType to the only four valid values #2911
Conversation
Shouldn't the same be true for |
Yes, it seems that it should be the same for As for the information in TypeScript, if you are looking for general information on unions of literal types, this should be a start: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types. Though that part isn't new to the code, right? I just removed the extra, odd bit that wasn't letting TypeScript report errors. So I believe a more appropriate question would be, what was the purpose of having |
Yes that was my question how does I haven't seen that in any other Typescript code with unions of literal types. |
Wait, but I removed |
HA whoops in my mind you were adding it.... I got the lines backwards :). I totally agree then can you also put the change in for MessageSeverity here too. |
Done. I found |
Thanks. I think they keep them separate for now just seems to be a pattern in all the components. The only thing I am thinking is they left the open for people to define their own severity like |
@inad9300 can you fix |
Good catch! Done. And |
Thanks a lot for your contribution, @inad9300 ;) |
No description provided.