Quiz · Type operators and utility types · lesson 4 of 8
Quiz — a type from an array
Which type does the name Size stand for?
const sizes = ["S", "M"] as const;
type Size = (typeof sizes)[number];Which type does the name Size stand for?
const sizes = ["S", "M"] as const;
type Size = (typeof sizes)[number];