Replies: 1 comment
-
I think this was just an issue the types (which were maintained separately) were outdated. The library is now rewritten in Typescript so this wont happen again! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help me understand how to call the mergeCells() method
Hey guys.
I can't call the .mergeCells() method
Already tried different options.
I see that in the documentation and in the code it is available.
Can you show me an example of my code what I'm doing wrong?
Thanks.
I have this code:
const doc = new GoogleSpreadsheet(<GoogleSpreadsheet_ID>)
await doc.loadInfo()
const sheetSource = doc.sheetsByIndex[0]
await sheetSource.updateProperties({ title: 'General report' })
await sheetSource.loadCells({ startRowIndex: 5, endRowIndex: 6, startColumnIndex:0, endColumnIndex: 5 })
const cellA1 = await sheetSource.getCell(1, 2)
await sheetSource.mergeCells() // <= this is not working
Beta Was this translation helpful? Give feedback.
All reactions