File tree Expand file tree Collapse file tree 1 file changed +35
-4
lines changed 
packages/components/icon/src Expand file tree Collapse file tree 1 file changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,41 @@ export interface CustomIconDefinition {
1414
1515// Copied from FontAwesome so we don't rely on it as a dependency 
1616export  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 
2152export  type  IconPathData  =  string  |  string [ ] ; 
2253
2354export  interface  IconLookup  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments