[@types/google-cloud__storage] Fix getSignedUrl() method (#27328)

* Fix required options.

* google-cloud__storage / Fix `getSignedUrl()` test.
This commit is contained in:
Futa Ogawa
2018-07-20 17:44:00 -07:00
committed by Wesley Wigham
parent 0bb8006e2f
commit 7720980c46
2 changed files with 3 additions and 3 deletions
@@ -204,7 +204,7 @@ export class TestFile {
}
/** Get a signed URL to allow limited time access to the file */
getSignedUrl(config?: SignedUrlConfig): Promise<[string]> {
getSignedUrl(config: SignedUrlConfig): Promise<[string]> {
return this.file.getSignedUrl(config);
}
+2 -2
View File
@@ -133,7 +133,7 @@ declare namespace Storage {
get(): Promise<[File, ApiResponse]>;
getMetadata(): Promise<[FileMetadata, ApiResponse]>;
getSignedPolicy(options?: SignedPolicyOptions): Promise<[SignedPolicy]>;
getSignedUrl(config?: SignedUrlConfig): Promise<[string]>;
getSignedUrl(config: SignedUrlConfig): Promise<[string]>;
makePrivate(options?: FilePrivateOptions): Promise<[ApiResponse]>;
makePublic(): Promise<[ApiResponse]>;
move(destination: string | Bucket | File): Promise<[File, ApiResponse]>;
@@ -199,7 +199,7 @@ declare namespace Storage {
cname?: string;
contentMd5?: string;
contentType?: string;
expires?: number | string;
expires: any;
extensionHeaders?: { [key: string]: string };
promptSaveAs?: string;
responseDisposition?: string;