Строка массива TypeScript для массива буквально
const furniture = ['chair', 'table', 'lamp'] as const;
type Furniture = typeof furniture[number];
florinrelea
const furniture = ['chair', 'table', 'lamp'] as const;
type Furniture = typeof furniture[number];