mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Add RNFetchBlobStat (#18818)
This commit is contained in:
committed by
Mohamed Hegazy
parent
b2894b6053
commit
33377cee63
+11
-3
@@ -378,11 +378,11 @@ export interface FS {
|
||||
/**
|
||||
* Show statistic data of a path.
|
||||
* @param {string} path Target path
|
||||
* @return {RNFetchBlobFile}
|
||||
* @return {RNFetchBlobStat}
|
||||
*/
|
||||
stat(path: string): Promise<RNFetchBlobFile>;
|
||||
stat(path: string): Promise<RNFetchBlobStat>;
|
||||
|
||||
lstat(path: string): Promise<RNFetchBlobFile[]>;
|
||||
lstat(path: string): Promise<RNFetchBlobStat[]>;
|
||||
|
||||
/**
|
||||
* Android only method, request media scanner to scan the file.
|
||||
@@ -619,3 +619,11 @@ export interface RNFetchBlobStream {
|
||||
|
||||
export declare class RNFetchBlobFile {
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobStat {
|
||||
lastModified: string;
|
||||
size: string;
|
||||
type: "directory" | "file";
|
||||
path: string;
|
||||
filename: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user