Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit b1cfa1a

Browse files
ThomasdenHJustinBeckwith
authored andcommitted
Make some parameters optional (#380)
1 parent 67a387b commit b1cfa1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ class File extends ServiceObject {
13241324
* region_tag:storage_download_file_requester_pays
13251325
* Example of downloading a file where the requester pays:
13261326
*/
1327-
download(options, callback) {
1327+
download(options?, callback?) {
13281328
if (is.fn(options)) {
13291329
callback = options;
13301330
options = {};
@@ -2307,7 +2307,7 @@ class File extends ServiceObject {
23072307
* //-
23082308
* file.save(contents).then(function() {});
23092309
*/
2310-
save(data, options, callback) {
2310+
save(data, options, callback?) {
23112311
if (is.fn(options)) {
23122312
callback = options;
23132313
options = {};

0 commit comments

Comments
 (0)