Is there a way to restrict a generic interface from accepting specific data types in TypeScript?
I understand that I can define acceptable data types for a generic interface in TypeScript.
interface exampleInterface<T = void | any>;
But what if I want to prevent my interface from accepting one or two specific data types?
Note: I have come across the following question, however it addresses defining what data types ARE allowed while my question focuses on defining what data types are NOT allowed in this generic interface.
Restricting generic types to one of several classes in Typescript