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.

index.d.ts 629B

1234567891011121314151617181920212223242526
  1. /// <reference types="node"/>
  2. declare const isSvg: {
  3. /**
  4. Check if a string or buffer is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics).
  5. @param input - The data to check.
  6. @returns Whether `input` is SVG or not.
  7. @example
  8. ```
  9. import isSvg = require('is-svg');
  10. isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
  11. //=> true
  12. ```
  13. */
  14. (input: string | Buffer): boolean;
  15. // TODO: Remove this for the next major release, refactor the whole definition to:
  16. // declare function isSvg(input: string | Buffer): boolean;
  17. // export = isSvg;
  18. default: typeof isSvg;
  19. };
  20. export = isSvg;