Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
fix: Fixed export.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Mar 13, 2022
1 parent 22415b9 commit adcf408
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 1 addition & 11 deletions 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) {
Expand Down
2 changes: 1 addition & 1 deletion 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<Icons> {
const toLoad = (options.icons ?? {}) as IconsToLoad
Expand Down
10 changes: 10 additions & 0 deletions src/types.ts
Expand Up @@ -67,6 +67,16 @@ export interface Plugins {
afterHook?: Hook<Array<webpack.WebpackPluginInstance>>
}

export interface FontAwesomeIcon {
width: number
height: number
svgPathData: string
}

export interface FontAwesomeTags {
[key: string]: string
}

export interface IconsToLoad {
[key: string]: Array<string>
}
Expand Down

0 comments on commit adcf408

Please sign in to comment.