Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Oct 30, 2024
1 parent 8a3ccbd commit 310200f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tokens/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,12 @@ StyleDictionary.registerFormat({
name: 'typescript/es6-declarations/composite',
formatter: function ({ dictionary, options }) {
let tokens = dictionary.allTokens,
declaration = ''
declaration = '`export declare const ${options.exportName}: {\n'

if (!options.noSort) {
tokens = sortTokensByName(tokens)
}

declaration += `export declare const ${options.exportName}: {\n`
for (const token of tokens) {
let docs = `/** `
let valueKeys = '{\n'
Expand Down

0 comments on commit 310200f

Please sign in to comment.