Typescript Generics: Create factory function which creates different default values based on generic type

前端 未结 0 815
囚心锁ツ
囚心锁ツ 2020-12-20 19:52

I have this interface:

interface ReturnObject {
  result: T | null;
  messages: string[];
}

and a factory function for it with which

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