diff --git a/types/react-native-fetch-blob/index.d.ts b/types/react-native-fetch-blob/index.d.ts index 2e668e18e8..cda116ec0c 100644 --- a/types/react-native-fetch-blob/index.d.ts +++ b/types/react-native-fetch-blob/index.d.ts @@ -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; + stat(path: string): Promise; - lstat(path: string): Promise; + lstat(path: string): Promise; /** * 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; +}