On this page
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
- Uppercases every character in a string literal type or union.
Example
type Method = Uppercase<"get" | "post">; // "GET" | "POST"
Linked from
Related notes
- tuts/typescript/utility_types/string_manipulation/Lowercase Linked here; links to this page; shared tags: #tier, #typescript, #web
- tuts/typescript/utility_types/string_manipulation Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/type_system/conditional_and_mapped_types Linked here; shared tags: #typescript, #web
- tuts/typescript/builtins/any shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/as_const shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/asserts shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/enum shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/infer shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/is shared tags: #tier, #typescript, #web
- tuts/typescript/builtins/keyof shared tags: #tier, #typescript, #web