fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -413,7 +413,7 @@ export class GoogleSlides implements INodeType {
`/presentations/${presentationId}/pages/${pageObjectId}`,
);
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
@@ -443,7 +443,10 @@ export class GoogleSlides implements INodeType {
});
const fileName = pageObjectId + '.png';
const binaryData = await this.helpers.prepareBinaryData(data, fileName || fileName);
const binaryData = await this.helpers.prepareBinaryData(
data as Buffer,
fileName || fileName,
);
const executionData = this.helpers.constructExecutionMetaData(
[
{
@@ -459,7 +462,7 @@ export class GoogleSlides implements INodeType {
returnData.push(...executionData);
} else {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
@@ -483,7 +486,7 @@ export class GoogleSlides implements INodeType {
responseData = await googleApiRequest.call(this, 'POST', '/presentations', body);
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
@@ -501,7 +504,7 @@ export class GoogleSlides implements INodeType {
);
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
@@ -526,7 +529,7 @@ export class GoogleSlides implements INodeType {
}
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);
@@ -569,7 +572,7 @@ export class GoogleSlides implements INodeType {
);
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject),
{ itemData: { item: i } },
);