So I have this scenario where I perform an exclude and I am left with my expected type. When I try to instantiate a class with my type I get this error from the typescript compiler Type 'MyClass' has no construct signatures
class MyClass {
}
type U = Exclude<MyClass | string, string> // U = MyClass
// ...
function example(_myClass: U) {
const instance = new _myClass();
// ts error `Type 'MyClass' has no construct signatures`
}