From 7720980c46aeb47ac9b4bae8bd89834c8e4b2e55 Mon Sep 17 00:00:00 2001 From: Futa Ogawa Date: Sat, 21 Jul 2018 09:44:00 +0900 Subject: [PATCH] [@types/google-cloud__storage] Fix `getSignedUrl()` method (#27328) * Fix required options. * google-cloud__storage / Fix `getSignedUrl()` test. --- types/google-cloud__storage/google-cloud__storage-tests.ts | 2 +- types/google-cloud__storage/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/google-cloud__storage/google-cloud__storage-tests.ts b/types/google-cloud__storage/google-cloud__storage-tests.ts index dec2846f26..cd0bcaaab2 100644 --- a/types/google-cloud__storage/google-cloud__storage-tests.ts +++ b/types/google-cloud__storage/google-cloud__storage-tests.ts @@ -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); } diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index b95375e11e..4a2a2498c5 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -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;