const Foo: new () => unknown = class {
constructor() {}
bar(): string {
return ‘Hello World!’;
}
};
const instance = new Foo();
I need to replace 'any' with 'unknown' below due to my configuration settings.
new () => unknown
Is there a way to define the result of Foo()?