Skip to content

Commit

Permalink
type: Fix icon type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 10, 2022
1 parent 9f8823f commit 64483a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function outputReactFile(files: string[], options: SvgToFontOptions = {})
const pathStrings = str.map((d, i) => `<path d=${d} fillRule="evenodd" />`);
const comName = isNaN(Number(name.charAt(0))) ? name : toPascalCase(fontName) + name;
fs.outputFileSync(outDistPath, reactSource(comName, fontSize, fontName, pathStrings.join(',\n')));
fs.outputFileSync(outDistPath.replace(/\.js$/, '.d.ts'), reactTypeSource(name));
fs.outputFileSync(outDistPath.replace(/\.js$/, '.d.ts'), reactTypeSource(comName));
return `export * from './${name}';`;
}),
);
Expand Down

0 comments on commit 64483a8

Please sign in to comment.