Skip to content

Commit cc3634e

Browse files
committed
👽
1 parent 4dddcc5 commit cc3634e

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

‎packages/components/icon/src/models.ts‎

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,41 @@ export interface CustomIconDefinition {
1414

1515
// Copied from FontAwesome so we don't rely on it as a dependency
1616
export type IconStyle = 'solid' | 'regular' | 'light' | 'thin' | 'duotone' | 'brands' | 'semibold';
17-
18-
// Use a flexible type that matches FontAwesome's prefix pattern (fa + lowercase letters)
19-
// This prevents TypeScript errors when FontAwesome adds new prefixes
20-
export type IconPrefix = `fa${string}`;
17+
export type IconPrefix =
18+
| 'fas'
19+
| 'fass'
20+
| 'far'
21+
| 'fasr'
22+
| 'fal'
23+
| 'fasl'
24+
| 'fat'
25+
| 'fast'
26+
| 'fad'
27+
| 'fadr'
28+
| 'fadl'
29+
| 'fadt'
30+
| 'fasds'
31+
| 'fasdr'
32+
| 'fasdl'
33+
| 'fasdt'
34+
| 'fab'
35+
| 'faslr'
36+
| 'faslpr'
37+
| 'fawsb'
38+
| 'fatl'
39+
| 'fans'
40+
| 'fands'
41+
| 'faes'
42+
| 'fajr'
43+
| 'fajfr'
44+
| 'fajdr'
45+
| 'facr'
46+
| 'fausb'
47+
| 'faudsb'
48+
| 'faufsb'
49+
| 'fak'
50+
| 'fakd'
51+
| `fa${string}`; // Flexible type to match any future prefixes
2152
export type IconPathData = string | string[];
2253

2354
export interface IconLookup {

0 commit comments

Comments
 (0)