How do I restrict a generic interface from accepting a specific data type in typescript?
I know that to define what data types are acceptable to be passed in a generic interface in typescript.
interface exampleInterface<T = void | any>;
but what if I want restrict my interface from accepting one or two specific data types?
Note: I have already viewed the following question and should mention that it is opposite of my question as it talks about how to define what data types ARE acceptable while I am trying to define what data types ARE NOT acceptable to be passed in this generic interface.
Restricting generic types to one of several classes in Typescript