Skip to content

Commit

Permalink
fixup! Fix(exporter-variables-scss): API change in Supernova.io SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Oct 11, 2024
1 parent 3391ad8 commit f3844f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exporters/variables-scss/src/generators/fileGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export const generateOutputFilesByThemes = async (
// Compute themed tokens for all themes in parallel
const allThemes = await Promise.all(
themes.map(async (theme) => {
// Undocumented API change and bad typings
// @ts-expect-error -- Expected 2 arguments, but got 3.
const themedTokens = sdk.tokens.computeTokensByApplyingThemes([], tokens, [theme]);

return { themedTokens, theme };
Expand Down

0 comments on commit f3844f2

Please sign in to comment.