Why can I create an object with string literals but if generics comes into place, i can't?

后端 未结 0 1188
既然无缘
既然无缘 2020-12-02 14:32

I try to create an Object with string literals.


export type MyType = {
  propFromMyType: T;
};         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题