Skip to content

Commit

Permalink
docs(devkit): name is returned unmodified (#9418)
Browse files Browse the repository at this point in the history
the docs for the names function say that the name is modified to hyphenated case but it's actually returned unmodified
  • Loading branch information
willyboy committed Apr 4, 2022
1 parent 1358fbf commit af37fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/generated/api-nx-devkit/index.md
Expand Up @@ -1193,7 +1193,7 @@ Examples:

```typescript
names('my-name'); // {name: 'my-name', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
names('myName'); // {name: 'my-name', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
names('myName'); // {name: 'myName', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
```

#### Parameters
Expand Down
2 changes: 1 addition & 1 deletion packages/devkit/src/utils/names.ts
Expand Up @@ -5,7 +5,7 @@
*
* ```typescript
* names("my-name") // {name: 'my-name', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
* names("myName") // {name: 'my-name', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
* names("myName") // {name: 'myName', className: 'MyName', propertyName: 'myName', constantName: 'MY_NAME', fileName: 'my-name'}
* ```
* @param name
*/
Expand Down

1 comment on commit af37fe9

@vercel
Copy link

@vercel vercel bot commented on af37fe9 Apr 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.