From 60b5c044651176f065082f979ecc82b98d64c9f2 Mon Sep 17 00:00:00 2001 From: Justin Sprigg Date: Wed, 18 Oct 2017 02:49:41 +1100 Subject: [PATCH] Update @types/google-cloud__storage (#20602) The save method in the library uses a writeable stream. See https://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback. Also consider adding `any`. --- types/google-cloud__storage/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index 55f3b0d3d2..544f2e095f 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -134,7 +134,7 @@ declare namespace Storage { makePublic(): Promise<[ApiResponse]>; move(destination: string | Bucket | File): Promise<[File, ApiResponse]>; name: string; - save(data: string, options?: WriteStreamOptions): Promise; + save(data: string | Buffer, options?: WriteStreamOptions): Promise; setEncryptionKey(encryptionKey: string | Buffer): File; setMetadata(metadata: FileMetadata): Promise<[ApiResponse]>; metadata?: FileMetadata;