合同小程序前端代码仓库
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.

27 lines
672 B

3 months ago
  1. // @ts-nocheck
  2. export type NullableString = string | null
  3. export type ConversionType = 'toBase64' | 'toDataURL' | 'toFile'
  4. export type ProcessFileOptions = {
  5. type : ConversionType
  6. path: string
  7. filename?: string
  8. success ?: (res : string) => void
  9. fail ?: (res : any) => void
  10. complete ?: (res : any) => void
  11. }
  12. /**
  13. * 错误码
  14. * 根据uni错误码规范要求,建议错误码以90开头,以下是错误码示例:
  15. * - 9010001 错误信息1
  16. * - 9010002 错误信息2
  17. */
  18. export type ProcessFileErrorCode = 9010001 | 9010002;
  19. /**
  20. * myApi 的错误回调参数
  21. */
  22. export interface ProcessFileFail extends IUniError {
  23. errCode : ProcessFileErrorCode
  24. };