validate.d.mts 472 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 { type IconSetValidationOptions, matchChar, validateIconSet };