Skip to content

Commit

Permalink
type: fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 30, 2024
1 parent 85b619c commit 9b98647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,16 @@
"@types/ejs": "~3.1.0",
"@types/fs-extra": "^11.0.1",
"@types/svg2ttf": "~5.0.1",
"@types/svgicons2svgfont": "~10.0.1",
"@types/ttf2eot": "~2.0.0",
"@types/ttf2woff": "~2.0.2",
"@types/ttf2woff2": "~6.0.0",
"tsbb": "^4.1.5"
},
"peerDependencies": {
"@types/svg2ttf": "~5.0.1",
"@types/svgicons2svgfont": "~10.0.1"
"@types/svg2ttf": "~5.0.1"
},
"peerDependenciesMeta": {
"@types/svg2ttf": {
"optional": true
},
"@types/svgicons2svgfont": {
"optional": true
}
}
}
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import path from 'path';
import fs from 'fs-extra';
import image2uri from 'image2uri';
import { SvgIcons2FontOptions } from 'svgicons2svgfont';
import { type SVGIcons2SVGFontStreamOptions } from 'svgicons2svgfont';
import color from 'colors-cli';
import { autoConf, merge, AutoConfOption } from 'auto-config-loader';
import { autoConf, merge, type AutoConfOption } from 'auto-config-loader';
import type { FontOptions } from 'svg2ttf';
import { Config } from 'svgo';
import { log } from './log';
import { generateIconsSource, generateReactIcons, generateReactNativeIcons } from './generate';
import { createSVG, createTTF, createEOT, createWOFF, createWOFF2, createSvgSymbol, copyTemplate, CSSOptions, createHTML, createTypescript, TypescriptOptions } from './utils';
import { createSVG, createTTF, createEOT, createWOFF, createWOFF2, createSvgSymbol, copyTemplate, type CSSOptions, createHTML, createTypescript, type TypescriptOptions } from './utils';

export type SvgToFontOptions = {
/** Support for .svgtofontrc and more configuration files. */
Expand Down Expand Up @@ -85,7 +85,7 @@ export type SvgToFontOptions = {
/**
* This is the setting for [svgicons2svgfont](https://github.com/nfroidure/svgicons2svgfont/tree/dd713bea4f97afa59f7dba6a21ff7f22db565bcf#api)
*/
svgicons2svgfont?: SvgIcons2FontOptions;
svgicons2svgfont?: Partial<SVGIcons2SVGFontStreamOptions>;
/** Some options can be configured with svgoOptions though it. [svgo](https://github.com/svg/svgo#configuration) */
svgoOptions?: Config;
/**
Expand Down

0 comments on commit 9b98647

Please sign in to comment.