node-samples icon indicating copy to clipboard operation
node-samples copied to clipboard

fix: use `requestBody` instead of `resource`

Open faheel opened this issue 2 years ago • 1 comments

The resource key was changed to requestBody in Google APIs v40 (https://github.com/googleapis/google-api-nodejs-client/pull/1149)

Though using resource still works, the TypeScript definitions in https://github.com/googleapis/google-api-nodejs-client only include requestBody, so using resource causes the TypeScript compiler to show an error.

Closes #77

faheel avatar Jan 28 '23 15:01 faheel

@jpoehnelt Can you please review this?

faheel avatar Jun 21 '23 21:06 faheel