@@ -356,7 +356,7 @@ export interface FS {
356356 */
357357 writeFile ( path : string , data : string | number [ ] , encoding ?: Encoding ) : Promise < void > ;
358358
359- appendFile ( path : string , data : string | number [ ] , encoding ?: Encoding ) : Promise < void > ;
359+ appendFile ( path : string , data : string | number [ ] , encoding ?: Encoding | "uri" ) : Promise < number > ;
360360
361361 /**
362362 * Wrapper method of readStream.
@@ -399,6 +399,7 @@ export interface Dirs {
399399 DocumentDir : string ;
400400 CacheDir : string ;
401401 PictureDir : string ;
402+ LibraryDir : string ;
402403 MusicDir : string ;
403404 MovieDir : string ;
404405 DownloadDir : string ;
@@ -432,7 +433,7 @@ export interface RNFetchBlobReadStream {
432433 onEnd ( fn : ( ) => void ) : void ;
433434}
434435
435- type Encoding = "utf8" | "ascii" | "base64" ;
436+ export type Encoding = "utf8" | "ascii" | "base64" ;
436437
437438/* tslint:disable-next-line interface-name*/
438439export interface IOSApi {
@@ -606,11 +607,13 @@ export interface AddAndroidDownloads {
606607
607608export interface RNFetchBlobResponseInfo {
608609 taskId : string ;
609- state : number ;
610+ state : string ;
610611 headers : any ;
612+ redirects : string [ ] ;
611613 status : number ;
612614 respType : "text" | "blob" | "" | "json" ;
613615 rnfbEncode : "path" | "base64" | "ascii" | "utf8" ;
616+ timeout : boolean ;
614617}
615618
616619export interface RNFetchBlobStream {
@@ -623,8 +626,8 @@ export declare class RNFetchBlobFile {
623626}
624627
625628export declare class RNFetchBlobStat {
626- lastModified : string ;
627- size : string ;
629+ lastModified : number ;
630+ size : number ;
628631 type : "directory" | "file" ;
629632 path : string ;
630633 filename : string ;
0 commit comments