From c6d5142375c06f4e68852326149d3015db86cab9 Mon Sep 17 00:00:00 2001 From: Jake Boone <jakeboone02@gmail.com> Date: Wed, 15 Jan 2025 14:05:55 -0700 Subject: [PATCH] Correct "snake-case" vs "kebab-case" comments (#1043) --- source/pick-index-signature.d.ts | 2 +- source/replace.d.ts | 2 +- test-d/pick-index-signature.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/pick-index-signature.d.ts b/source/pick-index-signature.d.ts index 267899525..ee6e7f4d7 100644 --- a/source/pick-index-signature.d.ts +++ b/source/pick-index-signature.d.ts @@ -21,7 +21,7 @@ type Example = { [x: `embedded-${number}`]: string; // These explicitly defined keys will be removed. - ['snake-case-key']: string; + ['kebab-case-key']: string; [symbolKey]: string; foo: 'bar'; qux?: 'baz'; diff --git a/source/replace.d.ts b/source/replace.d.ts index 56c487677..f4a17daed 100644 --- a/source/replace.d.ts +++ b/source/replace.d.ts @@ -6,7 +6,7 @@ type ReplaceOptions = { Represents a string with some or all matches replaced by a replacement. Use-case: -- `snake-case-path` to `dotted.path.notation` +- `kebab-case-path` to `dotted.path.notation` - Changing date/time format: `01-08-2042` → `01/08/2042` - Manipulation of type properties, for example, removal of prefixes diff --git a/test-d/pick-index-signature.ts b/test-d/pick-index-signature.ts index 27b1281b6..cf8dd6e25 100644 --- a/test-d/pick-index-signature.ts +++ b/test-d/pick-index-signature.ts @@ -15,7 +15,7 @@ type Foo = { }; type Bar = { - ['snake-case-key']: string; + ['kebab-case-key']: string; [symbolKey]: string; foo: 'bar'; qux?: 'baz';