add hw2
This commit is contained in:
		
							
								
								
									
										30
									
								
								node_modules/@iconify/utils/lib/icon/name.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								node_modules/@iconify/utils/lib/icon/name.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| /** | ||||
|  * Icon name | ||||
|  */ | ||||
| interface IconifyIconName { | ||||
|   readonly provider: string; | ||||
|   readonly prefix: string; | ||||
|   readonly name: string; | ||||
| } | ||||
| /** | ||||
|  * Icon source: icon object without name | ||||
|  */ | ||||
| type IconifyIconSource = Omit<IconifyIconName, 'name'>; | ||||
| /** | ||||
|  * Expression to test part of icon name. | ||||
|  * | ||||
|  * Used when loading icons from Iconify API due to project naming convension. | ||||
|  * Ignored when using custom icon sets - convension does not apply. | ||||
|  */ | ||||
| declare const matchIconName: RegExp; | ||||
| /** | ||||
|  * Convert string icon name to IconifyIconName object. | ||||
|  */ | ||||
| declare const stringToIcon: (value: string, validate?: boolean, allowSimpleName?: boolean, provider?: string) => IconifyIconName | null; | ||||
| /** | ||||
|  * Check if icon is valid. | ||||
|  * | ||||
|  * This function is not part of stringToIcon because validation is not needed for most code. | ||||
|  */ | ||||
| declare const validateIconName: (icon: IconifyIconName | null, allowSimpleName?: boolean) => boolean; | ||||
| export { IconifyIconName, IconifyIconSource, matchIconName, stringToIcon, validateIconName }; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik