13. 实现InstanceType<T>

  -通过 / -执行

对于constructor function type T,InstanceType<T> 返回其instance type。

请自行实现MyInstanceType<T>

class Foo {}
type A = MyInstanceType<typeof Foo> // Foo
type B = MyInstanceType<() => string> // Error

争取5分钟以内搞定这个问题

(1)
(26)