Skip to content

Wrong TypeScript type for Drive File Create #1598

Description

@ro-ka

Environment details

  • OS: OSX Mojave
  • Node.js version: v10.13.0
  • npm version: 6.7.0
  • googleapis version: 37.2.0

Steps to reproduce

  1. Try to upload a file to drive
  2. Docs say to use media.mimeType but the typing says media.mediaType is correct
  3. It works when using media.mimeType but fails when using media.mediaType

Check the docs example (works): https://developers.google.com/drive/api/v3/manage-uploads#convert
See code in question:

mediaType?: string;

❓ Shall I create a PR?

Metadata

Metadata

Labels

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

Fields

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