tree.d.ts 372 B

123456789101112
  1. import { IconifyJSON } from '@iconify/types';
  2. type ParentIconsList = string[];
  3. type ParentIconsTree = Record<string, ParentIconsList | null>;
  4. /**
  5. * Resolve icon set icons
  6. *
  7. * Returns parent icon for each icon
  8. */
  9. declare function getIconsTree(data: IconifyJSON, names?: string[]): ParentIconsTree;
  10. export { type ParentIconsList, type ParentIconsTree, getIconsTree };