Skip to content

Commit dc668fa

Browse files
author
Laegel
authored
fix: Changed readBinaryFile return type (tauri-apps#116)
1 parent e559b3a commit dc668fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/api/js.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ Creates a directory if one of the path's parent components doesn't exist and the
259259
* @param {Object} [options] configuration object
260260
* @param {BaseDirectory} [options.dir] base directory
261261
*/
262-
readBinaryFile(filePath: string, options = {}): Promise<any[]>
262+
readBinaryFile(filePath: string, options = {}): Promise<number[]>
263263
```
264264

265-
Reads a file as binary
265+
Reads a file as array of bytes
266266

267267
- Arguments
268268

@@ -272,7 +272,7 @@ Reads a file as binary
272272

273273
- options: `{}`
274274

275-
- Returns `Promise<any[]>`
275+
- Returns `Promise<number[]>`
276276

277277
```ts
278278
/**

0 commit comments

Comments
 (0)