Create folder and Upload file to Google Drive from TypeScript cannot compile
Clash Royale CLAN TAG #URR8PPP Create folder and Upload file to Google Drive from TypeScript cannot compile I'm trying to create a folder in Google Drive from node.js, I found an example here that also shows how to upload a file into the new folder. I use TypeScript and my code looks like this: getAuthorizedClient().then((client) => { const drive = new drive_v3.Drive({ auth: client }); const folderMetadata = { 'name': `Order_${order.key}`, 'mimeType': 'application/vnd.google-apps.folder' }; drive.files.create({ resource: folderMetadata, fields: 'id' }) .then((folder) => { console.log('Created folder Id: ', folder.id); }) .catch(err => console.error(err)) }) .catch((error) => console.error(error)); When building the code, I get the following error: src/assets-handler.ts:110:5 - error TS2345: Argument of type '{ resource: { 'name': string; 'mimeType': string; }; fields: string;...