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

// @ts-nocheck
export type NullableString = string | null
export type ConversionType = 'toBase64' | 'toDataURL' | 'toFile'
export type ProcessFileOptions = {
type : ConversionType
path: string
filename?: string
success ?: (res : string) => void
fail ?: (res : any) => void
complete ?: (res : any) => void
}
/**
* 错误码
* 根据uni错误码规范要求,建议错误码以90开头,以下是错误码示例:
* - 9010001 错误信息1
* - 9010002 错误信息2
*/
export type ProcessFileErrorCode = 9010001 | 9010002;
/**
* myApi 的错误回调参数
*/
export interface ProcessFileFail extends IUniError {
errCode : ProcessFileErrorCode
};