You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
skoblenick
changed the title
completeIconSetName
completeIconSetName changes case of output
May 25, 2022
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
Using
"svg-to-ts": "8.6.1",
runningsvg-to-ts-constants
with the following setting in the./svg-to-tsrc.js
config:results in:
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 tomyiconset
The text was updated successfully, but these errors were encountered: