Преглед на файлове

Added return type for RNFetchblob.fs.hash typedef

vun преди 6 години
родител
ревизия
b48f0e7862
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts Целия файл

@@ -323,7 +323,7 @@ export interface FS {
323 323
      * @param path Path to the file
324 324
      * @param algorithm The hash algorithm to use
325 325
      */
326
-    hash(path: string, algorithm: HashAlgorithm);
326
+    hash(path: string, algorithm: HashAlgorithm): Promise<string>;
327 327
 
328 328
     /**
329 329
      * Create file stream from file at `path`.