On this page
Uncapitalize
Prev: `Capitalize` | Up: string_manipulation | Next: type_system
Rel: string_manipulation, Conditional & Mapped Types
Ref: TypeScript Docs — Utility Types
Tags: #public #web #typescript #utility-types #string_manipulation #tier/specialized
Syntax & Overview
Uncapitalize<S>
Lowercases the first character of string literal type S.
Notes & Pitfalls
- Lowercases only the first character of a string literal type.
Example
type Field = Uncapitalize<"UserName">; // "userName"
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 Linked here; links to this page; shared tags: #typescript, #web
- tuts/typescript/type_system Linked here; 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