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;