TypeScript Utility Types
Uncapitalize<S> — intrinsic string transformation
Uncapitalize changes the first UTF-16 code unit using lowercase conversion and leaves the remainder unchanged. It is an intrinsic implemented by the checker, not an ordinary user-defined type alias implementation. The transformation is not locale-aware; it does not change an actual string value. A broad string argument need not produce a finite literal union. Example output: "readyNow". Verified with strict TypeScript 5.8.3, ES2022 and Node.js 22.16.0. This utility affects static typing; no runtime validation or transformation is supplied by the type itself.
Formal Syntax & Structure
typescript syntaxtypescript
Uncapitalize<S>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| S | S extends string | String type or union of string types to transform. |
Working Example
Example Snippettypescript
type Label = Uncapitalize<"ReadyNow">;const label: Label = "readyNow";console.log(label);