You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

TypeScript内置对象键联合类型的官方名称是什么?

答案

你要找的这个TypeScript内置类型是PropertyKey,它的内置定义就是:

type PropertyKey = string | number | symbol;

完全符合你说的“所有可能的对象键的联合类型”的描述。

内容的提问来源于stack exchange,提问作者thecartesianman

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 05:01:33