【发布时间】:2020-10-20 21:42:28
【问题描述】:
type subProp = {
id: string,
name: string
};
type ParentProps = {
subscriptions?: [
{
id: string,
items: [???Array Of subProp???]
}
]
}
这种情况在只有类型别名的打字稿中可行吗?如果是这样,该怎么做?我在网上找不到任何可行的选择。如果没有,还有什么办法?
【问题讨论】:
标签: typescript typescript-typings typescript-types