UNPKG

@iconify/utils

Version:

Common functions for working with Iconify icon sets used by various packages.

13 lines (10 loc) 372 B
import { IconifyJSON } from '@iconify/types'; type ParentIconsList = string[]; type ParentIconsTree = Record<string, ParentIconsList | null>; /** * Resolve icon set icons * * Returns parent icon for each icon */ declare function getIconsTree(data: IconifyJSON, names?: string[]): ParentIconsTree; export { type ParentIconsList, type ParentIconsTree, getIconsTree };