Няма описание

utils-6b513b37.d.ts 785B

12345678910111213141516171819202122232425262728293031
  1. declare const IMAGE_PROCESS = "?x-oss-process=image/resize,h_350";
  2. declare const IMAGE_PROCESS_SMALL = "?x-oss-process=image/resize,h_100";
  3. declare const IMAGE_PROCESS_LARGE = "?x-oss-process=image/resize,h_500";
  4. interface AddImageProcessOptions {
  5. small?: boolean;
  6. large?: boolean;
  7. custom?: boolean;
  8. width?: string;
  9. height?: string;
  10. }
  11. declare function addImageProcess(
  12. url: string,
  13. options?: AddImageProcessOptions
  14. ): string;
  15. declare function formatMoney(input: any, fuzz?: number): any;
  16. type classSize = "small" | "normal" | "large";
  17. declare function exportStyleSizeClass(
  18. styles: any,
  19. size: classSize
  20. ): {
  21. [x: number]: boolean;
  22. };
  23. export {
  24. IMAGE_PROCESS,
  25. IMAGE_PROCESS_SMALL,
  26. IMAGE_PROCESS_LARGE,
  27. addImageProcess,
  28. formatMoney,
  29. exportStyleSizeClass
  30. };