⬆️ Update some more packages to latest version

This commit is contained in:
Jan Oberhauser
2019-12-30 13:38:55 -06:00
parent a3bc35d971
commit d726eef239
7 changed files with 16 additions and 15 deletions

View File

@@ -93,7 +93,7 @@ export class GoogleSheet {
}
);
return response.data.values;
return response.data.values as string[][] | undefined;
}
@@ -141,9 +141,9 @@ export class GoogleSheet {
async batchUpdate(updateData: ISheetUpdateData[], valueInputMode: ValueInputOption) {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.values.batchUpdate(
{
// @ts-ignore
auth: client,
spreadsheetId: this.id,
valueInputOption: valueInputMode,
@@ -163,6 +163,7 @@ export class GoogleSheet {
async setData(range: string, data: string[][], valueInputMode: ValueInputOption) {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.values.update(
{
// @ts-ignore
@@ -186,9 +187,9 @@ export class GoogleSheet {
async appendData(range: string, data: string[][], valueInputMode: ValueInputOption) {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.values.append(
{
// @ts-ignore
auth: client,
spreadsheetId: this.id,
range,