googleapis / nodejs-storage

Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.
https://cloud.google.com/storage/
Apache License 2.0
898 stars 370 forks source link

`GetFilesResponse` not fully typed #2284

Open jared-jewitt opened 1 year ago

jared-jewitt commented 1 year ago

It would be nice to have more type definition for GetFilesResponse -- particularly for the second and third items in the tuple type.

The SDK docs don't specify that these two items exist; the only place I could find documentation about the response body (third item in the tuple) was the docs on the console.

Environment details

Steps to reproduce

  1. Observe the type definition for GetFilesResponse in node_modules
  2. Note that the second and third items in the tuple type are not fully typed
ddelgrosso1 commented 1 year ago

Hi @jared-jewitt thanks for opening an issue. We are in the process of trying to cleanup a lot of these interfaces that weren't originally typed well / typed at all. Unfortunately, since more strongly typing things is potentially a breaking change this is something we will likely have to wait to release until the next major version.