On this page
  1. Uppercase
  2. Syntax & Overview
  3. Notes & Pitfalls
  4. Example

Uppercase

Prev: string_manipulation | Up: string_manipulation | Next: `Lowercase`
Rel: string_manipulation, Conditional & Mapped Types
Ref: TypeScript Docs — Utility Types
Tags: #public #web #typescript #utility-types #string_manipulation #tier/standard


Syntax & Overview

Uppercase<S>

Converts every character of string literal type S to uppercase.

Notes & Pitfalls

Example

type Method = Uppercase<"get" | "post">; // "GET" | "POST"

Linked from

Related notes