Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb78c3d

Browse files
authoredJun 28, 2024
fix: .d.ts type issue and resulting type errors (#1249)
* fix: .d.ts type issue and resulting type errors * chore: switch to using TS files for local reusable type interfaces * fix: remove on token group level
1 parent 076c969 commit cb78c3d

File tree

92 files changed

+373
-347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+373
-347
lines changed
 

‎.changeset/beige-parrots-complain.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'style-dictionary': patch
3+
---
4+
5+
Update `typeDtcgDelegate` utility to remove the $type on token group level between parsing/preprocessing step.

‎__tests__/utils/typeDtcgDelegate.test.js

-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ describe('utils', () => {
5454

5555
expect(typeDtcgDelegate(tokens)).to.eql({
5656
dimension: {
57-
$type: 'dimension',
5857
scale: {
5958
$value: '2',
6059
$type: 'math',
@@ -71,9 +70,7 @@ describe('utils', () => {
7170
},
7271
},
7372
deep2: {
74-
$type: 'math',
7573
deeper: {
76-
$type: 'other',
7774
evenDeeper: {
7875
$value: '12',
7976
$type: 'math',
@@ -132,7 +129,6 @@ describe('utils', () => {
132129

133130
expect(typeDtcgDelegate(tokens)).to.eql({
134131
dimension: {
135-
$type: 'dimension',
136132
scale: {
137133
$value: '2',
138134
$type: 'math',
@@ -149,9 +145,7 @@ describe('utils', () => {
149145
},
150146
},
151147
deep2: {
152-
$type: 'math',
153148
deeper: {
154-
$type: 'other',
155149
evenDeeper: {
156150
$value: '12',
157151
$type: 'math',

0 commit comments

Comments
 (0)