class MyClass { }; type MyType = {}; export const fn = () => class extends MyClass & T> { };