Closed yordis closed 1 year ago
@yordis yep you're right you don't need the non-null assertion ! as props.className has type string | undefined
which falls within that of type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined
Try restarting your ts server?
I am going to assume it was LSP or whatever Intellij was doing ... odd
Hey there, I need clarification on what is happening right now. I have the following piece of code:
I am getting the following issue:
I am not sure why I must use
!
now when it used to work just fine before.I do not get why this is happening. Everything seems just fine.
I really appreciate any help you can provide.