FileMetadata type missing null on metadata for delete #2441
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
For the property 'metadata' on type FileMetadata (which is used in places like File.setMetadata())
It is typed as Record<string, string>, but it needs to allow null too (so Record<string, string | null>)
Null is used to delete the key, as in the documentation:
https://googleapis.dev/nodejs/storage/latest/File.html#setMetadata
Thanks and let me know if you have any questions
The text was updated successfully, but these errors were encountered: