type SomeType = Array<{...}>;
它定义了一个具有许多不同属性的对象数组来代替 ...
...
我想创建另一种类型,它的结构应该与 SomeType
SomeType
type SomeOtherType = {...};
有没有办法创造 SomeOtherType 基类型
SomeOtherType
基类型
这次我不想使用接口,我想知道类型是如何实现的。
我读过 this
鉴于
你可以得到类型 {...} 查找类型 :
{...}
type SomeOtherType = SomeType[0];