mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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`.
This commit is contained in:
+1
-1
@@ -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<void>;
|
||||
save(data: string | Buffer, options?: WriteStreamOptions): Promise<void>;
|
||||
setEncryptionKey(encryptionKey: string | Buffer): File;
|
||||
setMetadata(metadata: FileMetadata): Promise<[ApiResponse]>;
|
||||
metadata?: FileMetadata;
|
||||
|
||||
Reference in New Issue
Block a user