mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 18:39:29 +08:00
24 lines
771 B
Text
24 lines
771 B
Text
/**
|
|
* Icon name
|
|
*/
|
|
interface IconifyIconName {
|
|
readonly provider: string;
|
|
readonly prefix: string;
|
|
readonly name: string;
|
|
}
|
|
/**
|
|
* Icon source: icon object without name
|
|
*/
|
|
declare type IconifyIconSource = Omit<IconifyIconName, 'name'>;
|
|
/**
|
|
* Convert string to Icon object.
|
|
*/
|
|
declare const stringToIcon: (value: string, validate?: boolean | undefined, allowSimpleName?: boolean | undefined, 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 validateIcon: (icon: IconifyIconName | null, allowSimpleName?: boolean | undefined) => boolean;
|
|
|
|
export { IconifyIconName, IconifyIconSource, stringToIcon, validateIcon };
|