You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if I'm missing something but why are all fields in all response models possibly undefined and nullables?
We're writing snippets of code that look like this:
try{constres=awaitdrive.files.create({ requestBody,})// Question: is it ever possible that the function above will succeed, // res.data will be defined but the id will not be?if(!res.data.id){thrownewGoogleDriveError('Create folder returned an object without an id',{ requestBody,statusText: res.statusText,status: res.status,})}returnres.data}catch(error: unknown){thrownewGoogleDriveError('Unable to create Google folder',{ requestBody,},error)}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if I'm missing something but why are all fields in all response models possibly undefined and nullables?
We're writing snippets of code that look like this:
Beta Was this translation helpful? Give feedback.
All reactions