Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Typings are messed up #384

@ItalyPaleAle

Description

@ItalyPaleAle

When importing version 2.0.3, TypeScript types are completely messed up:

  1. It's impossible to use Promises as returned methods. Taking one method as example: exists(options: any, callback?: any): void;. The documentation says that it can be used with Promises too (and it works), but the type definition shows return type as void.
  2. Types are just wrong. In the same method, the JSDoc definition says that the first argument (options) is optional, but the method signature marks it mandatory.
  3. The library uses any as type anywhere. Options dictionaries, callbacks, etc: these are things that should be explicitly typed.
  4. The library still uses JSDoc types everywhere, which should be migrated to TypeScript definitions.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the googleapis/nodejs-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions