Explorar el Código

Added return type for RNFetchblob.fs.hash typedef

vun hace 6 años
padre
commit
b48f0e7862
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      index.d.ts

+ 1
- 1
index.d.ts Ver fichero

323
      * @param path Path to the file
323
      * @param path Path to the file
324
      * @param algorithm The hash algorithm to use
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
      * Create file stream from file at `path`.
329
      * Create file stream from file at `path`.