Files
akmon/uni_modules/lime-file-utils/utssdk/interface.uts
2026-01-20 08:04:15 +08:00

39 lines
935 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// @ts-nocheck
export type NullableString = string | null
export type ConversionType = 'toBase64' | 'toDataURL' | 'toFile'
// #ifndef APP-HARMONY
export type ProcessFileOptions = {
type : ConversionType
path: string
filename?: string
success ?: (res : string) => void
fail ?: (res : any) => void
complete ?: (res : any) => void
}
// #endif
// #ifdef APP-HARMONY
export interface ProcessFileOptions {
type : ConversionType
path: string
filename?: string
success ?: (res : string) => void
fail ?: (res : any) => void
complete ?: (res : any) => void
}
// #endif
/**
* 错误码
* 根据uni错误码规范要求建议错误码以90开头以下是错误码示例
* - 9010001 错误信息1
* - 9010002 错误信息2
*/
export type ProcessFileErrorCode = 9010001 | 9010002;
/**
* myApi 的错误回调参数
*/
export interface ProcessFileFail extends IUniError {
errCode : ProcessFileErrorCode
};