【发布时间】:2021-11-26 16:08:25
【问题描述】:
如果有类似的类型
interface ParsedQs { [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[] }
如何获取上述类型的值?我想要以下
type ParsedQsValue = undefined | string | string[] | ParsedQs | ParsedQs[]
无需从ParsedQs 定义中显式复制类型。
【问题讨论】: