Skip to content

Commit

Permalink
fix(icon-build-helpers): add missing declare keyword in TS builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lewandom committed Oct 30, 2023
1 parent fb95b8b commit e9307f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function writeModuleTypes(modules, outDir) {
templates.banner +
'\n' +
"import type { CarbonIconType } from './CarbonIcon';\n" +
`const ${m.name}: CarbonIconType;\n` +
`declare const ${m.name}: CarbonIconType;\n` +
`export default ${m.name}\n`;
const filename = path.resolve(outDir, m.filepath.replace(/\.js$/, '.d.ts'));
await fs.writeFile(filename, content);
Expand Down

0 comments on commit e9307f0

Please sign in to comment.