<T extends {new(...args:any[]):{}}>
- You are basically saying that your class need a constructor in its definition through this (new...)
<T extends {new(...args:any[]):{}}>
- You are basically saying that your class need a constructor in its definition through this (new...)