Skip to content

Commit

Permalink
fs: add the options param description in openAsBlob()
Browse files Browse the repository at this point in the history
PR-URL: #49308
Refs: https://github.com/nodejs/node/blob/main/doc/api/fs.md#fsopenasblobpath-options
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
LEEYS96 authored and UlisesGascon committed Sep 10, 2023
1 parent 0eea7fd commit 9fac310
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fs.js
Expand Up @@ -604,6 +604,9 @@ function openSync(path, flags, mode) {

/**
* @param {string | Buffer | URL } path
* @param {{
* type?: string;
* }} [options]
* @returns {Promise<Blob>}
*/
function openAsBlob(path, options = kEmptyObject) {
Expand Down

0 comments on commit 9fac310

Please sign in to comment.