Skip to content

Commit

Permalink
fix: change properties with function value to methods (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel committed Nov 18, 2021
1 parent 669a34d commit c365254
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/bucket.ts
Expand Up @@ -629,7 +629,10 @@ class Bucket extends ServiceObject {
acl: Acl;
iam: Iam;

getFilesStream: (query?: GetFilesOptions) => Readable;
getFilesStream(query?: GetFilesOptions): Readable {
// placeholder body, overwritten in constructor
return new Readable();
}
signer?: URLSigner;

private instanceRetryValue?: boolean;
Expand Down
11 changes: 9 additions & 2 deletions src/storage.ts
Expand Up @@ -469,8 +469,15 @@ export class Storage extends Service {
*/
acl: typeof Storage.acl;

getBucketsStream: () => Readable;
getHmacKeysStream: () => Readable;
getBucketsStream(): Readable {
// placeholder body, overwritten in constructor
return new Readable();
}

getHmacKeysStream(): Readable {
// placeholder body, overwritten in constructor
return new Readable();
}

retryOptions: RetryOptions;

Expand Down

0 comments on commit c365254

Please sign in to comment.