Skip to content
Quiz · Type operators and utility types · lesson 4 of 8

Quiz — a type from an array

Which type does the name Size stand for?

TypeScript
const sizes = ["S", "M"] as const;
type Size = (typeof sizes)[number];