1 Star 0 Fork 0

RN鸿蒙化项目团队/ty-react-native-blob-util

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
types.js 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
export type ReactNativeBlobUtilConfig = {
Progress: any,
UploadProgress: any,
fileCache : bool,
transformFile: boolean;
path : string,
appendExt : string,
session : string,
addAndroidDownloads : any,
indicator : bool,
followRedirect : bool,
trusty : bool,
wifiOnly : bool
};
export type ReactNativeBlobUtilNative = {
// API for fetch octet-stream data
fetchBlob : (
options:fetchConfig,
taskId:string,
method:string,
url:string,
headers:any,
body:any,
callback:(err:any, ...data:any) => void
) => void,
// API for fetch form data
fetchBlobForm : (
options:fetchConfig,
taskId:string,
method:string,
url:string,
headers:any,
form:Array<any>,
callback:(err:any, ...data:any) => void
) => void,
// open file stream
readStream : (
path:string,
encode:'utf8' | 'ascii' | 'base64'
) => void,
// get system folders
getEnvironmentDirs : (dirs:any) => void,
// unlink file by path
unlink : (path:string, callback: (err:any) => void) => void,
removeSession : (paths:Array<string>, callback: (err:any) => void) => void,
ls : (path:string, callback: (err:any) => void) => void,
};
export type ReactNativeBlobUtilResponseInfo = {
taskId : string,
state : number,
headers : any,
status : number,
respType : 'text' | 'blob' | '' | 'json',
rnfbEncode : 'path' | 'base64' | 'ascii' | 'utf8'
}
export type ReactNativeBlobUtilStream = {
onData : () => void,
onError : () => void,
onEnd : () => void,
_onData : () => void,
_onEnd : () => void,
_onError : () => void,
}
export type filedescriptor = { path: string, parentFolder: string, mimeType: string }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rn-mi/ty-react-native-blob-util.git
git@gitee.com:rn-mi/ty-react-native-blob-util.git
rn-mi
ty-react-native-blob-util
ty-react-native-blob-util
master

搜索帮助