@iconify/utils
Version:
Common functions for working with Iconify icon sets used by various packages.
13 lines (10 loc) • 396 B
TypeScript
import { IconifyJSON, ExtendedIconifyIcon } from '@iconify/types';
/**
* Get icon data, using prepared aliases tree
*/
declare function internalGetIconData(data: IconifyJSON, name: string, tree: string[]): ExtendedIconifyIcon;
/**
* Get data for icon
*/
declare function getIconData(data: IconifyJSON, name: string): ExtendedIconifyIcon | null;
export { getIconData, internalGetIconData };