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 <[email protected]>
Reviewed-By: LiviaMedeiros <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.