convert-info.d.ts 750 B

12345678910111213141516171819202122232425262728
  1. import { IconifyInfo } from '@iconify/types';
  2. /**
  3. * Item provided by API or loaded from collections.json, slightly different from IconifyInfo
  4. */
  5. interface LegacyIconifyInfo {
  6. name: string;
  7. total?: number;
  8. version?: string;
  9. author?: string;
  10. url?: string;
  11. license?: string;
  12. licenseURL?: string;
  13. licenseSPDX?: string;
  14. samples?: string[];
  15. height?: number | number[];
  16. displayHeight?: number;
  17. samplesHeight?: number;
  18. category?: string;
  19. palette?: 'Colorless' | 'Colorful';
  20. hidden?: boolean;
  21. }
  22. /**
  23. * Convert data to valid CollectionInfo
  24. */
  25. declare function convertIconSetInfo(data: unknown, expectedPrefix?: string): IconifyInfo | null;
  26. export { type LegacyIconifyInfo, convertIconSetInfo };