Skip to content

Commit e9c6920

Browse files
authored
chore: fix type error with newer typescript version (#2559)
1 parent fd811ee commit e9c6920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

handwritten/storage/src/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3820,7 +3820,7 @@ class File extends ServiceObject<File, FileMetadata> {
38203820
encryptionKey: optionsOrCallback,
38213821
};
38223822
} else if (typeof optionsOrCallback === 'object') {
3823-
options = optionsOrCallback;
3823+
options = optionsOrCallback as EncryptionKeyOptions;
38243824
}
38253825

38263826
const newFile = this.bucket.file(this.id!, options);

0 commit comments

Comments
 (0)