Skip to content

Commit

Permalink
chore: fix type issue preprocessedtokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Jun 26, 2024
1 parent 9f12de9 commit ed687dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"is-mergeable-object": "^1.1.1"
},
"peerDependencies": {
"style-dictionary": "^4.0.0-prerelease.37"
"style-dictionary": "^4.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
Expand Down
4 changes: 2 additions & 2 deletions src/registerTransforms.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DesignTokens } from 'style-dictionary/types';
import type { PreprocessedTokens } from 'style-dictionary/types';

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Module '"style-dictionary/types"' has no exported member 'PreprocessedTokens'.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Could not find a declaration file for module 'style-dictionary'. '/home/runner/work/sd-transforms/sd-transforms/node_modules/style-dictionary/lib/StyleDictionary.js' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'dictionary' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (18.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Module '"style-dictionary/types"' has no exported member 'PreprocessedTokens'.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Could not find a declaration file for module 'style-dictionary'. '/home/runner/work/sd-transforms/sd-transforms/node_modules/style-dictionary/lib/StyleDictionary.js' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'dictionary' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'token' implicitly has an 'any' type.

Check failure on line 1 in src/registerTransforms.ts

View workflow job for this annotation

GitHub Actions / Verify changes (20.x)

Parameter 'token' implicitly has an 'any' type.
import StyleDictionary from 'style-dictionary';
import { transformDimension } from './transformDimension.js';
import { transformHEXRGBaForCSS } from './css/transformHEXRGBa.js';
Expand Down Expand Up @@ -38,7 +38,7 @@ export async function registerTransforms(
sd.registerPreprocessor({
name: 'tokens-studio',
preprocessor: dictionary => {
return parseTokens(dictionary, transformOpts) as DesignTokens;
return parseTokens(dictionary, transformOpts) as PreprocessedTokens;
},
});

Expand Down

0 comments on commit ed687dc

Please sign in to comment.