Skip to content

Commit

Permalink
Update packages/canvas-tokens/utils/formatters/formatJS.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbsmith authored Sep 29, 2023
1 parent 959e0cf commit 875818d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/canvas-tokens/utils/formatters/formatJS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const formatES6ToTypes: Formatter = ({dictionary, file}) => {
const headerContent = formatHelpers.fileHeader({file});
return Object.entries(dictionary.properties).reduce((acc: string, [key, values]) => {
return (acc +=
`export declare const ${key} = ` + JSON.stringify(values, null, 2) + ' as const;\n');
`export declare const ${key} = ` + JSON.stringify(values, null, 2) + ' as const;\n\n');
}, headerContent);
};

Expand Down

0 comments on commit 875818d

Please sign in to comment.