minify.d.ts 528 B

1234567891011121314151617181920
  1. import { Plugin } from "../extend";
  2. interface MinificationOptions {
  3. hex?: boolean;
  4. alphaHex?: boolean;
  5. rgb?: boolean;
  6. hsl?: boolean;
  7. name?: boolean;
  8. transparent?: boolean;
  9. }
  10. declare module "../colord" {
  11. interface Colord {
  12. /** Returns the shortest string representation of the color */
  13. minify(options?: MinificationOptions): string;
  14. }
  15. }
  16. /**
  17. * A plugin adding a color minification utilities.
  18. */
  19. declare const minifyPlugin: Plugin;
  20. export default minifyPlugin;