mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
[@types/google-cloud__storage] Fix getSignedUrl() method (#27328)
* Fix required options. * google-cloud__storage / Fix `getSignedUrl()` test.
This commit is contained in:
committed by
Wesley Wigham
parent
0bb8006e2f
commit
7720980c46
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user