Code QuizAdvanced

Capitalize a name literal

Using Capitalize instead of Uppercase to fix only the first letter.

Codetypescript
type RawName = "alice" | "bob";

// Goal: "Alice" | "Bob"
type ProperName = Uppercase<RawName>;

const n: ProperName = "Alice"; // error!

What is the bug in this code?