Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completeIconSetName changes case of output #176

Open
skoblenick opened this issue May 25, 2022 · 1 comment
Open

completeIconSetName changes case of output #176

skoblenick opened this issue May 25, 2022 · 1 comment

Comments

@skoblenick
Copy link

Using "svg-to-ts": "8.6.1", running svg-to-ts-constants with the following setting in the ./svg-to-tsrc.js config:

completeIconSetName: 'MyIconSet'

results in:

export const myIconSet = [

being placed in the output file. The case has been modified! I expect the value I supply in the config to be what I get back in the file, it should NOT be modified; if I wanted camelCase I would have supplied camelcase.

The same is true of MYICONSET gets transformed to myiconset

@skoblenick skoblenick changed the title completeIconSetName completeIconSetName changes case of output May 25, 2022
@paulsalmon-za
Copy link

The same happens with svg-to-ts-files, the const is being exported as myIconSet, instead of preserving what has been specified in the config.
When generating most of the type names prefixes with CamelCasing this makes the import very inconsistent from the rest of the imports that starts with an upper case. Having flag to prevent it from doing this will be very usefull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants