Skip to content

Commit

Permalink
Correct "snake-case" vs "kebab-case" comments (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 authored Jan 15, 2025
1 parent 1d51d56 commit c6d5142
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/pick-index-signature.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion source/replace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test-d/pick-index-signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Foo = {
};

type Bar = {
['snake-case-key']: string;
['kebab-case-key']: string;
[symbolKey]: string;
foo: 'bar';
qux?: 'baz';
Expand Down

0 comments on commit c6d5142

Please sign in to comment.