版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
745 B

  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 { LegacyIconifyInfo, convertIconSetInfo };