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
No overload matches this call.
Overload 1 of 6, '(params?: Params$Resource$Spreadsheets$Values$Update | undefined, options?: MethodOptions | undefined): GaxiosPromise<...>', gave the following error.
Object literal may only specify known properties, and 'resource' does not exist in type 'Params$Resource$Spreadsheets$Values$Update'.
Overload 2 of 6, '(callback: BodyResponseCallback<Schema$UpdateValuesResponse>): void', gave the following error.
Object literal may only specify known properties, and 'auth' does not exist in type 'BodyResponseCallback<Schema$UpdateValuesResponse>'.
Summary
Following the example on node.js, the Typescript compiler complains about incorrect types on the
update
method.Expected Behavior
Sample URL: https://github.com/googleworkspace/node-samples/blob/main/sheets/snippets/sheets_update_values.js
Description: No Typescript errors
Actual Behavior
Steps to Reproduce the Problem
update
from the docs into a project that has a JS server side, e.g. node.js or in my case, Nuxt.Workaround
Changing
resource
torequestBody
solves the issue. I suggest updating the docs.The text was updated successfully, but these errors were encountered: