We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: style-dictionary 3.0.2
This sample:
const StyleDictionary = require('style-dictionary'); console.log(StyleDictionary.transformGroup['scss']);
Outputs:
[ 'attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'size/rem', 'color/css' ]
That would imply transformGroup has a type of Record<string, string[]>.
transformGroup
Record<string, string[]>
However, its current definition is:
style-dictionary/types/index.d.ts
Line 64 in 6542477
And the definition of TransformGroup:
TransformGroup
style-dictionary/types/TransformGroup.d.ts
Lines 14 to 17 in 6542477
This causes an error in Typescript when you try to grab elements of that array.
The text was updated successfully, but these errors were encountered:
Thanks for raising this @isaiahtaylor I just made a PR fixing this bug, #729 if you'd like to take a look.
Sorry, something went wrong.
Fixed in #729
No branches or pull requests
Version: style-dictionary 3.0.2
This sample:
Outputs:
That would imply
transformGroup
has a type ofRecord<string, string[]>
.However, its current definition is:
style-dictionary/types/index.d.ts
Line 64 in 6542477
And the definition of
TransformGroup
:style-dictionary/types/TransformGroup.d.ts
Lines 14 to 17 in 6542477
This causes an error in Typescript when you try to grab elements of that array.
The text was updated successfully, but these errors were encountered: