utils.d.ts 374 B

1234567891011121314
  1. import { RcFile } from "antd/es/upload";
  2. /**
  3. * 可选文件类型
  4. */
  5. export declare const ACCEPT: Record<string, string>;
  6. /**
  7. * 校验文件类型
  8. */
  9. export declare const validateFileType: (file: File, accept: string) => boolean;
  10. export declare function getImageSize(file: RcFile): Promise<{
  11. width: number;
  12. height: number;
  13. }>;
  14. //# sourceMappingURL=utils.d.ts.map