版博士V2.0程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

validate.d.ts 467 B

1234567891011121314151617
  1. import { IconifyJSON } from '@iconify/types';
  2. /**
  3. * Match character
  4. */
  5. declare const matchChar: RegExp;
  6. interface IconSetValidationOptions {
  7. fix?: boolean;
  8. prefix?: string;
  9. provider?: string;
  10. }
  11. /**
  12. * Validate icon set, return it as IconifyJSON type on success, throw error on failure
  13. */
  14. declare function validateIconSet(obj: unknown, options?: IconSetValidationOptions): IconifyJSON;
  15. export { IconSetValidationOptions, matchChar, validateIconSet };