diff --git a/src/fontAwesome.ts b/src/fontAwesome.ts index 1d7b786..db33e10 100644 --- a/src/fontAwesome.ts +++ b/src/fontAwesome.ts @@ -1,16 +1,6 @@ import { readFileSync } from 'node:fs' import { resolve } from 'node:path' -import { Icons } from './types.js' - -export interface FontAwesomeIcon { - width: number - height: number - svgPathData: string -} - -export interface FontAwesomeTags { - [key: string]: string -} +import { FontAwesomeIcon, Icons } from './types.js' function camelCase(source: any): string { if (typeof source !== 'string' || !source.length) { diff --git a/src/icons.ts b/src/icons.ts index 0e5efba..2522778 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -1,7 +1,7 @@ import { loadFontAwesomeIcons } from './fontAwesome.js' import { Icons, IconsToLoad, Options } from './types.js' -export { FontAwesomeIcon, FontAwesomeTags, generateFontAwesomeSVG, loadFontAwesomeIcons } from './fontAwesome.js' +export { generateFontAwesomeSVG, loadFontAwesomeIcons } from './fontAwesome.js' export async function loadIcons(options: Options): Promise { const toLoad = (options.icons ?? {}) as IconsToLoad diff --git a/src/types.ts b/src/types.ts index e95fd88..e1cd440 100644 --- a/src/types.ts +++ b/src/types.ts @@ -67,6 +67,16 @@ export interface Plugins { afterHook?: Hook> } +export interface FontAwesomeIcon { + width: number + height: number + svgPathData: string +} + +export interface FontAwesomeTags { + [key: string]: string +} + export interface IconsToLoad { [key: string]: Array }