mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Add RNFetchBlobStat (#18818)
This commit is contained in:
committed by
Mohamed Hegazy
parent
b2894b6053
commit
33377cee63
14
types/react-native-fetch-blob/index.d.ts
vendored
14
types/react-native-fetch-blob/index.d.ts
vendored
@@ -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