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
For some cases, having a proper nested object for js tokens would be preferrable over dot-notation strings:
// fine, but not optimal sometimes{'colors.gray': '#123456','colors.black': '#000000','colors.white': '#FFFFFF',}// would be better in some instances{colors: {gray: '#123456',black: '#000000',white: '#FFFFFF',}}
Would you be open to a config option to output a nested object rather than dot-notation string accessors?
The text was updated successfully, but these errors were encountered:
Oh yes! That’s a great idea. While I still feel that a flat array is a better default, I do agree that there are times when you just want to export a nested JS object like you proposed
And the nice part is, TypeScript-wise, you don’t even need to type it! It’ll just figure itself out 😄
For some cases, having a proper nested object for js tokens would be preferrable over dot-notation strings:
Would you be open to a config option to output a nested object rather than dot-notation string accessors?
The text was updated successfully, but these errors were encountered: