How do I get the type of a list property when using conditional types?

前端 未结 0 1547
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 10:55

Given the following types:

type Person = {
  name: string;
};

type Family = {
  parent: Person;
  children: Person[];
};

I want to define anothe

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