📜  typescript 数组字符串到数组文字 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.030000             🧑  作者: Mango

代码示例1
const furniture = ['chair', 'table', 'lamp'] as const;
type Furniture = typeof furniture[number];