In my package.json
, I have the following dependencies specified:
"dependencies": {
"googleapis": "^50.0.0"
}
Within my index.ts
file, I have the following code snippet:
import {drive_v3} from "googleapis";
const {Schema$File} = drive_v3.Schema$File
console.log({x:Schema$File})
Upon running tsc
, I receive the following error message:
error TS2339: Property 'Schema$File' does not exist on type 'typeof drive_v3'.
However, I can see it declared in the .d.ts
file. How should I correctly import the type for a "Google Drive File" when utilizing the drive_v3 api?