wiki/content/20201123103400-uncapitalize.md

21 lines
415 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:04:36 +00:00
date: 20201123
2024-05-06 20:40:05 +00:00
id: 4bb57d5a-2f23-4155-b277-9d8446d65db9
title: Uncapitalize
---
# Description
Transforms the first string character to lowercase for [string literal
types](20201123101810-typescript_template_literal_string_type).
# Syntax
``` typescript
type UncapitalizedGreeting<T extends string> = `${Uncapitalize<T>}`
type HELLO = CapitalizedGreeting<"Hello">;
// same as
// type HELLO = "hello";
```