Create folder and Upload file to Google Drive from TypeScript cannot compile

Clash Royale CLAN TAG#URR8PPPCreate 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; }' is not assignable to parameter of type 'BodyResponseCallback<Schema$File>'.
Object literal may only specify known properties, and 'resource' does not exist in type 'BodyResponseCallback<Schema$File>'.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.