On this page
Lowercase
Prev: `Uppercase` | Up: string_manipulation | Next: `Capitalize`
Rel: string_manipulation, Conditional & Mapped Types
Ref: TypeScript Docs — Utility Types
Tags: #public #web #typescript #utility-types #string_manipulation #tier/standard
Syntax & Overview
Lowercase<S>
Converts every character of string literal type S to lowercase.
Notes & Pitfalls
- Intrinsic string-literal transform: Lowercases every character in a string literal type or union.
Example
type Header = Lowercase<"Content-Type" | "Accept">; // "content-type" | "accept"
Linked from
Related notes
- tuts/typescript/utility_types/string_manipulation/Capitalize Linked here; links to this page; shared tags: #tier, #typescript, #web
- tuts/typescript/utility_types/string_manipulation/Uppercase 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